[PHP] Re: Print PHP Code in Color on Dreamweaver MX

2004-03-30 Thread Jason Barnett
Ryan Munevar wrote: Hello, Does anyone know how to actually print PHP code in Color to actual paper from Dreamweaver MX? We like to paste the code up to the wall here to get a bigger look at it. I know you can do it in BBedit, but MX is what we like. Just curios. Thanks!

[PHP] Re:

2004-03-30 Thread Richard Rojas
I think it because of the register_globals automatically set to off on PHP 4.2 up. try using $_GET["item1"] or $_POST["item1"] instead. hth - Original Message - From: "Ketvin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 4:40 PM Dear all, i just move my p

[PHP] Re: Display/Screen Size Parameters

2004-03-30 Thread Jason Barnett
James Nunnerley wrote: Is there a function within PHP that picks up the screen/display size? I know of the one in JavaScript, however I want to pick it up in PHP Thanks Nunners I assume you mean the size of a web browser's screen? I don't know of anything PHP that does that offhand. Altho

[PHP] Print PHP Code in Color on Dreamweaver MX

2004-03-30 Thread Ryan Munevar
Hello, Does anyone know how to actually print PHP code in Color to actual paper from Dreamweaver MX? We like to paste the code up to the wall here to get a bigger look at it. I know you can do it in BBedit, but MX is what we like. Just curios. Thanks!

RE: [PHP] Display/Screen Size Parameters

2004-03-30 Thread Hawkes, Richard
I had this same problem, as I wanted to resolve whether or not the device was a PDA. I couldn't see an easy way, but what I did was to have a dummy JavaScript page that grabs the screen dimensions, and then forwards on to a PHP page, with the screen size as the parameter. Something like: h

[PHP] Re: Problem of unicode ( Inserted data / Query )

2004-03-30 Thread Jason Barnett
Edward, I couldn't see either of your SQL statements. However, PHP's internal functions currently supports UTF-8, not UTF-16, so not all characters are supported. Can you post some code? [EMAIL PROTECTED] wrote: > Dear You, > > How to control php convert inserted data or query to / from MS-SQL

[PHP] Display/Screen Size Parameters

2004-03-30 Thread James Nunnerley
Is there a function within PHP that picks up the screen/display size? I know of the one in JavaScript, however I want to pick it up in PHP Thanks Nunners -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking if a website is up?

2004-03-30 Thread Chris Hayes
I am trying to check if a website is up (reachable) and I have used the standard code below: [...] $socket = @fsockopen( $host, $port, $errno, $errstr, 30 ); if (!$socket) fwrite ($socket, "HEAD ".$documentpath." HTTP/1.0\r\nHost: $host\r\n\r\n"); $http_response

[PHP] Re: Checking if a website is up?

2004-03-30 Thread Jason Barnett
Henry Grech-Cini wrote: Hi All, I am trying to check if a website is up (reachable) and I have used the standard code below: Unfortunately this works for most sites but Microsoft doesn't work most of the time even thought the site is definiately up! (Occassionally it does say it is reachable but

[PHP] Re: PHP charset encoding

2004-03-30 Thread Jason Barnett
Nabil wrote: Hi all, I have problem storing the submitted data in the database in the right encoding. I need to use UTF-8 I need to save the Arabic text in UTF-8 encoding. I have a problem with UTF-8 and windows-1256 conversion. I wish I can understand those things, coz encoding thing will take

[PHP] Checking if a website is up?

2004-03-30 Thread Henry Grech-Cini
Hi All, I am trying to check if a website is up (reachable) and I have used the standard code below: Unfortunately this works for most sites but Microsoft doesn't work most of the time even thought the site is definiately up! (Occassionally it does say it is reachable but only occassionaly and th

[PHP] upload file

2004-03-30 Thread Ketvin
Dear list, I'm using squirrelmail php as my webmail interface, my php.ini have the option of upload_max_filesize = 10M but i'm having problem for adding attachment more than 400k, where the page will hang. is there any recommended things for me to check? Thanks !

[PHP] RE:

2004-03-30 Thread Ralph Guzman
Might be a Register Globals issue: http://us4.php.net/register_globals -Original Message- From: Ketvin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 12:40 AM To: [EMAIL PROTECTED] Subject: Dear all, i just move my previous php script to a new server and found that it is no

[PHP] PHP charset encoding

2004-03-30 Thread nabil
Hi all, I have problem storing the submitted data in the database in the right encoding. I need to use UTF-8 I need to save the Arabic text in UTF-8 encoding. I have a problem with UTF-8 and windows-1256 conversion. I wish I can understand those things, coz encoding thing will take my hair off..

Re: [PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help :-)

2004-03-30 Thread Wabyan
Hi ! I do not know why I received this newsgroup infos, even if I like PHP :-) I will follow procedure unsbcribe Thanks for your reply Bye ! Ben Ramsey <[EMAIL PROTECTED]> wrote: W> I do not want to receive all these email W> W> > Please STOP W> W> Do not use the globa

Re: [PHP] help! handling form variable

2004-03-30 Thread "Miguel J. Jiménez"
If you DO NOT register globals (in php.ini) you MUST use $_POST[""] or $_GET[""] to access those variables... If you DO resgister globals you can also use $ or $. By default, register globals is set to "Off" for security reasons; so you'll need to set it "On". The line must say: register_gl

[PHP] help! handling form variable

2004-03-30 Thread Ketvin
add the $_POST, $_GET after the register_globals in php.ini ? how do i restart php service to get it running? thanks ! >Manual: Register globals. $_POST, $_GET On Tuesday 30 March 2004 09:40, Ketvin wrote: > Dear all, > > > i just move my previous php script to a new server and found that it

[PHP] Re:

2004-03-30 Thread Burhan Khalid
Ketvin wrote: Dear all, [ snip ] Forgot a subject? :| Your message was flagged as spam and sent to the trash bin because it didn't contain a subject. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:

2004-03-30 Thread Duncan Hill
On Tuesday 30 March 2004 09:40, Ketvin wrote: > Dear all, > > > i just move my previous php script to a new server and found that it is not > working on the new machine. funny thing is that previously, say i am > putting form items like > > Manual: Register globals. $_POST, $_GET -- PHP Genera

[no subject]

2004-03-30 Thread Ketvin
Dear all, i just move my previous php script to a new server and found that it is not working on the new machine. funny thing is that previously, say i am putting form items like in the form page, and then i can striaghtaway read the item1 value by using $item1 variable. but now, reading $

[PHP] Wrong IP address

2004-03-30 Thread Peter Albertsson
If your request is going through a proxy, $_SERVER["REMOTE_ADDR"] will contain the ip address for the proxy. The proxy might add a HTTP_X_FORWARDED_FOR header to the request which will contain the ip address of the client to the proxy, which should be where the request originated. It is possible fo

<    1   2