Ask a Question related to PHP Development, Design and Development.
-
Micah Montoy #1
seeing strange things?
A couple more things and I'll stop bugging everyone. I'm trying to get the
file name of the string. If it includes the extension that's fine as well.
I thought the code below would do this but its not.
$filevalue = str_replace("\\\\", "/", $filevalue);
//get specific file name
$parts = explode("/",$filevalue);
$file_name = $parts[count($parts)]; //line 42
Its giving me error:
Notice: Undefined offset: 6 in
c:\inetpub\wwwroot\webpage10\example\u_images\act_ load_imgs.php on line 42
One other thing, after the results, I get on my output screen at the top the
word "Array", yet I don't have this anywhere in my output. Even after I
remove the above code to get rid of the error message, I get this. Anyone
have any ideas of how I can get rid of this?
thanks
Micah Montoy Guest
-
strange things happening..
Contribute acting strange.. Using Contribute for 3 years now, and on some pages it randomly decides to stop letting people ?paste? in the... -
Strange Things
I had functioning, working applications under Flash Comm?s ?application? directory previously before I reformatted my computer. However now only a... -
IIS Security strange things
I have intranet application based on ASP.NET on Win2000AS (Framework 1.1). Website uses an Integrated Windows Authentication as Authentication... -
Strange things in Opera...
Hi All... I have a small and rather odd problem that I've not encountered before, and from what I can see it could be browser specific. We... -
[PHP] seeing strange things?
> -----Original Message----- This is because count() returns the number of elements in the array, but because the indexes start at zero the... -
Micah Montoy #2
Re: seeing strange things?
OK. I think Imp the strange thing seeing things are and I don't think they
are. Anyway, disregard the last part about the Array. I had an echo
statement that I was using for testing buried in the code.
"Micah Montoy" <montmica@isu.edu> wrote in message
news:20030709003745.66766.qmail@pb1.pair.com...the> A couple more things and I'll stop bugging everyone. I'm trying to getwell.> file name of the string. If it includes the extension that's fine asthe> I thought the code below would do this but its not.
>
> $filevalue = str_replace("\\\\", "/", $filevalue);
>
> //get specific file name
> $parts = explode("/",$filevalue);
> $file_name = $parts[count($parts)]; //line 42
>
> Its giving me error:
> Notice: Undefined offset: 6 in
> c:\inetpub\wwwroot\webpage10\example\u_images\act_ load_imgs.php on line 42
>
> One other thing, after the results, I get on my output screen at the top> word "Array", yet I don't have this anywhere in my output. Even after I
> remove the above code to get rid of the error message, I get this. Anyone
> have any ideas of how I can get rid of this?
>
> thanks
>
>
Micah Montoy Guest
-
Marek Kilimajer #3
Re: [PHP] seeing strange things?
Micah Montoy wrote:
pathinfo() should do the job for you.> A couple more things and I'll stop bugging everyone. I'm trying to get the
> file name of the string. If it includes the extension that's fine as well.
Marek Kilimajer Guest



Reply With Quote

