[PHP] include and imagejpg() weird behavior - maybe header?

2003-07-29 Thread Oli
); imagedestroy($im); return $newim; } ? and the calling script: ?php include 'image.php'; $image = resize('Capri.jpg',200,'Capri'); imagejpeg($image); imagedestroy($image); ? Any ideas? Oli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: include and imagejpg() weird behavior - maybe header?

2003-07-30 Thread Oli
Nobe, the image.php script starts with ? as the absolute first characters. Also if I comment out the header function I don't get the header error but I get the gobbledygook (the picture data I guess). Combine the code in one script and all is fine, with or without the header function. Oli Rob

Re: [PHP] Getting browser resolution??

2003-08-22 Thread Oli
Use javascript and pass to php: script language=JavaScript var SCRwidth = window.screen.width; var SCRheight = window.screen.height; /script Regards, Oli Thijs Lensselink [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is done by JavaScript or some other client side

Re: [PHP] IF or SWITCH

2006-04-06 Thread Oli Howson
The main perk to using switch over if statements is speed speed of development and ease of reading. Otherwise, it all ends up the same under the bonnet afaik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems downloading e-mail

2005-12-13 Thread Oli Howson
. Anyone got any suggestions for this? Oli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MIME E-mail message

2005-12-14 Thread Oli Howson
someone gave me the other day, it inspired me to just connect to the pop3 server using a raw socket, SO much easier!!! Cheers Oli

RE: [PHP] Re: MIME E-mail message

2005-12-14 Thread Oli Howson
Oh and cheers for the info someone gave me the other day, it inspired me to just connect to the pop3 server using a raw socket, SO much easier!!! share the code please, I'm interested :) Ok... It's a bit rough and ready, never expected anyone else to want to look at this (at least not

Re: [PHP] MIME E-mail message

2005-12-15 Thread Oli Howson
Than what? The imap extension is faster and has parsing functionality built in. True, but the parsing is to be done at a completely different time, and then imap extension can't be that much faster, when you consider that my method is doing very little processing, and basically getting the

Re: [PHP] MIME E-mail message

2005-12-15 Thread Oli Howson
I would imagine it would be significantly faster, and you must be doing some processing to extract the email body. I'll run some tests (when I can be bothered!) and post the results ;) Not sure exactly how accurate they'll be though, cos the IMAP routines won't let you retrieve just the whole

Re: [PHP] upload path

2005-12-16 Thread Oli Howson
Allow them to browse the server (up to a limited level), saving the current selected path within the $_GET string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can anyone recommend a hosting company

2005-12-16 Thread Oli Howson
I've been using www.wehostwebpages.com for about 4 years, been good to me :) Can anyone recommend a fair priced, reliable hosting company that would best meet my needs as follows: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Oli Howson
The ? And : are a shortcut for ifelse, that could also be written If (isset($_GET['page']) { $page = $_GET['page']; } else { $page = null; } The shortcut is a lot quicker to write (if you understand it) but not as readable. isset just returns true if a variable has been set, false if not :)

[PHP] Till Drawers

2006-02-03 Thread Oli Howson
I'm interested in the possibility of connecting a computer running A PHP server to a till drawer and have the server able to open the drawer. Anyone know how this would work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system('bell'); ?

2006-02-06 Thread Oli Howson
each of the terminals could then use a web based POS interface but there was only a single cash drawer. It would also be possible to have each 'till' running a copy of apache server, and communicating with a central database server. I can't for the life of me think of any way the client

Re: [PHP] How to output multiple tables nicely(!) from PHP in Excel format?

2006-02-08 Thread Oli Howson
of that. If anyone can tell me how to go about this, it would be greatly appreciated... Cheers! Olafo -- /'''\ | Oli Howson, BSc, MBCS | | www.londonis.co.uk | | Internet Development | \,,,/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Curl With Certificates As Strings

2006-02-09 Thread Oli Howson
curl_setopt($Curl, CURLOPT_SSLCERT, /tmp/cert.pem); Never used it, but possibly... curl_setopt($Curl, CURLOPT_SSLCERT, /some/php/file/to/echo/cert/from/db.php); just a thought :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] socket_read

2006-02-09 Thread Oli Howson
I want to read the content from a socket that is sending XML. IIRC, you just read in a loop while there's still stuff to read. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php