[PHP] GetImageSize problem
I have a bunch of images living on one ISP's server which I want to use on another page on another ISP's server, with GetImageSize. I RTFM, and see "The filename needs to be either relative to the current document, or an absolute filesystem path. Thus absolute URL paths will not work." which is absolutely correct - I get an error msg "cannot open file". $DOCUMENT_ROOT is obviously no use to me - does anyone know any way round this? TIA, Sue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GetImageSize problem
Thanks Rom - I can get the pics with an img src tag, which is why I assumed that GetImageSize would also work - but now I'm told it only works on the local machine, so I guess I'll have to live with text jumping about while pics download. :( Romulo Roberto Pereira wrote: > > Hello! > > First - some ISP block you from get files from their server by a httpd > request (that is what php does... I think!). To be sure if this is set or > not, in the other ISP (not the one that the images are) write a simple html > like this: > > loading images between servers > > http://Domain/ImagesDir/ImagesName.gif"> > > > In "http://Domain/ImagesDir/ImagesName.gif" be sure to put the correct > domain and location of the image. > > This should show the image... If not you could have two problems: the link > is wrong or the filter is set. > > Imagine this - I have a web site in an ISP with my domain like: > http://www.mydomain.com and all the paths are gting the images from a free > server like geocities.com so I don;t expend money on buying large amounts of > bandwith for my site... If you think this way you know why they do that. > > if this works, just use thi path "http://Domain/ImagesDir/ImagesName.gif" in > all your scripts for getimagesize... > > I expect that this helps. > > Rom > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simple question!!!
I'm sure there are more officially correct ways of doing it, but I've always echoed /body /html before the die happens. Sue - Original Message - From: Ricardo D'Aguiar <[EMAIL PROTECTED]> > Imagine the following script: > > > Some Title > > $var = 1; > if ($var == 1) { > die ("I'm dead"); > } > echo "I'm alive"; > ?> > > > > If I try to execute via Internet Explorer ("5.x") apparently every thing > works fine. > It shows the string "I'm dead". > > But if I use the Netscape 4.7x, I get a blank screen. > When I view the Source Code ("HTML code in Netscape") it shows: > > > Some Title > > I'm dead > > Netscape can't render the page if its missing the and > tags in the end. > I already used 'return' end 'exit' functions but with the same result. > > There is some configuration parameter to the PHP server to send the rest > of HTML code after exit the script or workaround? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]