[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 for

[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 input type=text name=item1 in the form page, and then i can striaghtaway read the item1 value by using $item1

[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 input type=text name=item1 Manual: Register globals. $_POST,

[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] 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 is

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[post_var] or $_GET[get_var] to access those variables... If you DO resgister globals you can also use $post_var or $get_var. By default, register globals is set to Off for security reasons; so you'll need to set it On. The line

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 global list

[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

[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

[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] 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

[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] 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

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] 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

[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 (

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:

[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!

[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.

[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 previous

[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!

Re: [PHP] Crash in PHP5RC1 but can't find where

2004-03-30 Thread Jason Barnett
Red Wingate wrote: Hi David, same thing i reported to the PHP-DEV List some time ago ( before RC1 was released ). The problem is the Win32/Apache2 Combination you are using. I am using the same setup as well, if any of you find a solution to this I would appreciate hearing about it. I've

Re: [PHP] Crash in PHP5RC1 but can't find where

2004-03-30 Thread Red Wingate
Maybe give it a try, haven't much time to do so at the moment, took me about 4 hours to find the problem that caused the crashing of my code and build those reproduction code :-) http://download.erisx.de/crash.txt Maybe try adding other test-cases and see wether it crashes or not if it does then

RE: [PHP] Namespaces in PHP

2004-03-30 Thread Robert Cummings
On Mon, 2004-03-29 at 23:10, Justin Palmer wrote: Hey listen Rob, I was not trying to give you a hard time (or split hairs). In fact I am grateful for your answer and your want to explain even more in depth than some of the one line answers on the list. The reason that I was splitting

[PHP] describe.php - PHP Extensions, Classes, Objects and Functions

2004-03-30 Thread Jason Barnett
I just sent this to one person and realized that others might find this useful. This code will ONLY work for PHP 5, comments are in the code. ?php /** * This is a class that can be used to describe classes, objects, methods, * functions, parameters, properties, and even extensions. *

[PHP] Re: describe.php - PHP Extensions, Classes, Objects and Functions

2004-03-30 Thread Jason Barnett
Darnit... I forgot I changed the error handler in my own scripts. Use this instead, sorry for posting bad code the first time around: ?php /** * This is a class that can be used to describe classes, objects, methods, * functions, parameters, properties, and even extensions. * Example usage:

Re: [PHP] upload file

2004-03-30 Thread Marek Kilimajer
Ketvin wrote: 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? post_max_size,

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread William Lovaton
Hi Manuel, Well, I'am aware of that but the application is already made and it is big and development continue, so change it will be a huge task and we have no resources available for it. Tux used to perform very well here, but unfortunatelly there is no other user space competitor that offers

[PHP] passing a variable value of PHP into the alert of JavaScript.

2004-03-30 Thread Prabu Subroto
Dear my friends... I want to make an alert which can display a value from the database. I am meaning : how can I pass a value of a variable from PHP into JavaScript alert ( alert($Firstname, $LastName and $Address); Is it possible? --

[PHP] Re: passing a variable value of PHP into the alert of JavaScript.

2004-03-30 Thread Jason Barnett
Prabu Subroto wrote: Dear my friends... I want to make an alert which can display a value from the database. I am meaning : how can I pass a value of a variable from PHP into JavaScript alert ( alert($Firstname, $LastName and $Address); Is it possible? Sure. Probably the easiest way I can think

Re: [PHP] PHP charset encoding

2004-03-30 Thread Rob Ellis
On Tue, Mar 30, 2004 at 11:23:03AM +0300, 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

Re: [PHP] Re: passing a variable value of PHP into the alert of JavaScript.

2004-03-30 Thread Prabu Subroto
Akh... thank you my friend It's solved. May I ask another question? Can I call a function of PHP code from HTML tag just the same as I call a function of JavaScript from HTML tag? I meant, Like this a Onclick='warning()'CustID/a; - Original Message - From: Jason Barnett [EMAIL

Re[2]: [PHP] Re: passing a variable value of PHP into the alert of JavaScript.

2004-03-30 Thread Richard Davey
Hello Prabu, Tuesday, March 30, 2004, 3:18:09 PM, you wrote: PS Can I call a function of PHP code from HTML tag just the same PS as I call a function of JavaScript from HTML tag? PS I meant, Like this a Onclick='warning()'CustID/a; No, but it'd be lovely if you could :) (Actually the .NET

Re: [PHP] How to send SMS

2004-03-30 Thread Raditha Dissanayake
How to send sms with PHP and Mysql and mobil phone Nokia 5110? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php kannel.org Been out of touch with the list for a while. SO please accept my appologies if someone has already pointed

Re: [PHP] upload file

2004-03-30 Thread Raditha Dissanayake
Marek Kilimajer wrote: Ketvin wrote: 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?

[PHP] parsing entities

2004-03-30 Thread Decapode Azur
hello, I am parsing an xhtml template throught the php xml expat parser. But the problem is that it removes all entities from the xhtml template such as nbsp; or amp; (in href anchors attributes) The entities can't be handle with xml_set_default_handler because some entities are inside an

Re: [PHP] Re: passing a variable value of PHP into the alert of

2004-03-30 Thread Jason Barnett
Prabu Subroto wrote: Akh... thank you my friend It's solved. May I ask another question? Can I call a function of PHP code from HTML tag just the same as I call a function of JavaScript from HTML tag? I meant, Like this a Onclick='warning()'CustID/a; Well, what do you mean exactly? If

[PHP] Passing form values to PHP

2004-03-30 Thread Ciemny, Jessica
Hey every, I'm new to the group and to PHP (3 days now) and I would like to ask a question. I purchased a book on PHP a day or so ago and as I'm going through the book it comes to a point where it talks about passing html form values to PHP. So I type up the examples from the book, both the html

RE: [PHP] Passing form values to PHP

2004-03-30 Thread Jay Blanchard
[snip] Anyone have any ideas as to what's up. I hope its just something silly that I'm missing being a newby to PHP and all. [/snip] There is a feature in the php.ini called register_globals. If you look in your php.ini you will see that it is off by default and some of the books may have missed

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

2004-03-30 Thread Curt Zirzow
* Thus wrote Henry Grech-Cini ([EMAIL PROTECTED]): Hi All, I am trying to check if a website is up (reachable) and I have used the standard code below: else { fwrite ($socket, HEAD .$documentpath. HTTP/1.0\r\nHost: $host\r\n\r\n); $http_response =

Re: [PHP] Passing form values to PHP

2004-03-30 Thread Burhan Khalid
Ciemny, Jessica wrote: Hey every, I'm new to the group and to PHP (3 days now) and I would like to ask a question. I purchased a book on PHP a day or so ago and as I'm going through the book it comes to a point where it talks about passing html form values to PHP. So I type up the examples from

RE: [PHP] Passing form values to PHP

2004-03-30 Thread Vishal Patel
Try this: extract($_POST); extract -- Import variables into the current symbol table from an array All of my forms have worked without $_POST or $_GET. Is there a reason for inavailability of variables??? Its a good practice to use $_POST for security reasons. Vishal. -Original

[PHP] Re: parsing entities

2004-03-30 Thread Jason Barnett
First of all, if you have the option to upgrade you might want to check out PHP5. SimpleXML really makes it easy to parse xml files. If PHP4 is your platform of choice, check out PEAR's XML_Parser package. The entities can't be handle with xml_set_default_handler because some entities are

[PHP] Grabbing the STDOUT

2004-03-30 Thread Brent Clark
Hi all Ive been try for sometime now, and too tried googling for an answer, to grab the STDOUT of a command. In this case the binary command is readbar The general output of readbar executed on its own is as so: Code 39-10005802 IATA 2 of 5-2 IATA 2 of 5-8 1 barcodes found I

[PHP] running php in sequence

2004-03-30 Thread Edward Peloke
I am using php in combination with ant to create a small automated build process. Will php run sequentially? What I mean is I have a series of modules or tasks: Example: //check out files include(modules/checkout.php) //zip up the files include (modules/zip.php) etc Will php wait to execute

[PHP] Re: Simple one I think

2004-03-30 Thread Ben Ramsey
DC Thanks for the help but adding curly dose not seem to work. DC Any ideas why ? DC DC I get and output of [0][0][0][1][1][1][2][2][2] why ? DC BR Try putting curly braces around your variables. Like this: BR BR {$val[name][$i]} Please reply to the list so that others can help you out, as

[PHP] Re: Grabbing the STDOUT

2004-03-30 Thread Jason Barnett
Brent Clark wrote: Hi all Ive been try for sometime now, and too tried googling for an answer, to grab the STDOUT of a command. In this case the binary command is readbar The general output of readbar executed on its own is as so: Code 39-10005802 IATA 2 of 5-2 IATA 2 of 5-8 1

Re: [PHP] running php in sequence

2004-03-30 Thread Ben Joyce
I'd recommend that you build a set of functions (or a class) to do your bits and pieces, rather than include blocks of code. That way you can ZIP depending on the outcome of your CHECKOUT code. function checkoutStuff() { //if checkout code executes ok return true; } if(checkoutStuff())

[PHP] Re: running php in sequence

2004-03-30 Thread Jason Barnett
I am using php in combination with ant to create a small automated build process. Will php run sequentially? What I mean is I have a series of modules or tasks: Example: //check out files include(modules/checkout.php) //zip up the files include (modules/zip.php) etc Will php wait to execute the

Re: [PHP] Namespaces in PHP

2004-03-30 Thread Justin Patrin
-{ Rene Brehmer }- wrote: At 00:59 30-03-2004, Justin Patrin wrote: Richard Davey wrote: Hello Justin, Tuesday, March 30, 2004, 12:42:12 AM, you wrote: JP P.S. Why do a lot of people email off list? I get doubles. They are too lazy to remove your email when doing a reply-to-all basically.

Re[2]: [PHP] Namespaces in PHP

2004-03-30 Thread Richard Davey
Hello Justin, Tuesday, March 30, 2004, 6:27:20 PM, you wrote: JP I also have no idea what Agent 2 is It's a Windows based news-reader (the free version is called FreeAgent) - think tin with knobs on. Oh and to the OP: Agent 2 is OUT and available, has been for a short while now -- Best

[PHP] Really Annoying Require/Include Error

2004-03-30 Thread Mike R
I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require

Re: [PHP] Really Annoying Require/Include Error

2004-03-30 Thread Richard Davey
Hello Mike, Tuesday, March 30, 2004, 6:33:46 PM, you wrote: MR require MR (/home/sites/site111/web/news/settings/newsletter.settings.inc.php); MR Before I totally lose my mind, can someone point out to me why I would be MR getting the error? The file is there, and named correctly. I had two

Re: [PHP] Really Annoying Require/Include Error

2004-03-30 Thread Chris Boget
Nothing visibly wrong with your code or path, so time to look out of the box and instead focus on the newsletter.settings.inc.php file - could there be a syntax error (or similar) in there causing this? Swap the file for one that does nothing but echo out included and see what happens?

[PHP] Re: Really Annoying Require/Include Error

2004-03-30 Thread Jason Barnett
Mike R wrote: I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require

[PHP] web statistics

2004-03-30 Thread Elliot J. Balanza
Does any one knows of a good gnu php web statistics software? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] web statistics

2004-03-30 Thread Jay Blanchard
[snip] Does any one knows of a good gnu php web statistics software? [/snip] [smart-ass alert] Yes and no depending on your definition of good. [/smart-ass alert] What kind of features are you looking for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Really Annoying Require/Include Error

2004-03-30 Thread Mike R
-Original Message- I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code:

[PHP] PHP alternative to Browser Hawk?

2004-03-30 Thread Richard Davey
Hi all, Does anyone know of a good solid PHP alternative to the very good (but very expensive!) BrowserHawk? (http://www.cyscape.com/) It's basically a very well featured browser detection script that can pull out the full monty, from Flash/PDF support to supported SSL key sizes. -- Best

Re: [PHP] Re: Really Annoying Require/Include Error

2004-03-30 Thread Jason Barnett
Yes, Linux. I checked the permission - set the whole directory to 777, no change in the problem. Is there anything in the compiling of php or ini settings that would affect include or require statements? :) Thanks, -Mike OK, try setting the error_reporting = E_ALL, and just try to execute

Re: [PHP] Namespaces in PHP

2004-03-30 Thread Jason Barnett
Richard Davey wrote: Hello Justin, Tuesday, March 30, 2004, 6:27:20 PM, you wrote: JP I also have no idea what Agent 2 is It's a Windows based news-reader (the free version is called FreeAgent) - think tin with knobs on. Oh and to the OP: Agent 2 is OUT and available, has been for a short

Re: [PHP] Re: Really Annoying Require/Include Error

2004-03-30 Thread Jason Barnett
Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require (/home/sites/site111/web/news/settings/newsletter.settings.inc.php);

Re[2]: [PHP] Namespaces in PHP

2004-03-30 Thread Richard Davey
Hello Jason, Tuesday, March 30, 2004, 7:23:27 PM, you wrote: JB I can understand personal preferences, but I can tell you that I'm using JB Thunderbird right now on my windows laptop to post to this newsgroup :) And I'm using The Bat! (email client) :) Each to their own, aye? In all fairness,

Re: [PHP] Namespaces in PHP

2004-03-30 Thread Justin Patrin
Jason Barnett wrote: Richard Davey wrote: Hello Justin, Tuesday, March 30, 2004, 6:27:20 PM, you wrote: JP I also have no idea what Agent 2 is It's a Windows based news-reader (the free version is called FreeAgent) - think tin with knobs on. Oh and to the OP: Agent 2 is OUT and available,

[PHP] blocking warning: Warning: fclose()

2004-03-30 Thread Ryan A
Hi, I am using fopen to query my site from the clients site and then display the output of the query. The problem is when the query does not succeed it outputs this: Warning: fclose(): supplied argument is not a valid stream resource in c:\php\www\test-scripts\index.php on line 42 is there any

Re: [PHP] Really Annoying Require/Include Error

2004-03-30 Thread James E Hicks III
On Tuesday 30 March 2004 12:33 pm, Mike R wrote: I am getting this error: You came to the right place. Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in include_path='' says that your php.ini does not have default

[PHP] Re: blocking warning: Warning: fclose()

2004-03-30 Thread Justin Patrin
Ryan A wrote: Hi, I am using fopen to query my site from the clients site and then display the output of the query. The problem is when the query does not succeed it outputs this: Warning: fclose(): supplied argument is not a valid stream resource in c:\php\www\test-scripts\index.php on line 42

RE: [PHP] OT- Namespaces in PHP

2004-03-30 Thread Justin Palmer
Wow this post has really stirred up the pot. Regards, Justin Palmer -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:29 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Namespaces in PHP Jason Barnett wrote: Richard Davey wrote: Hello

[PHP] Re: web statistics

2004-03-30 Thread Kim Steinhaug
Hmm.. Several good sollutions out there, but if you are looking for some of the best you might look into Deepmetrix LiveStats. This has to be the best system Ive come across. http://www.deepmetrix.com/ Then again if money is a factor, you might look for other sollutions like aw-stats, which I

RE: [PHP] blocking warning: Warning: fclose()

2004-03-30 Thread Rick Fletcher
The problem is when the query does not succeed it outputs this: Warning: fclose(): supplied argument is not a valid stream resource in c:\php\www\test-scripts\index.php on line 42 is there any way to block just this warning while keeping all other error handling as is? Yes, the error

[PHP] multi-dimentional array from db results

2004-03-30 Thread motorpsychkill
I'm trying to re-create the following multi-dimentional array from a database query, where the indices 5, 7 and 21 are order_id and my table is food_orders(order_id, food, cooked): ?php $food_array = array( 5=array('steak','rare'),

[PHP] Re: PHP alternative to Browser Hawk?

2004-03-30 Thread Kim Steinhaug
Well, youre probably looking for the full monty, all I got is this to help you out. Its only some detection schemes for the browser. There is another really cool browser detection available aswell from dynamicdrive.com developed by brothercake. This javascript is really good and is actively

[PHP] Re: multi-dimentional array from db results

2004-03-30 Thread Jason Barnett
Motorpsychkill wrote: I'm trying to re-create the following multi-dimentional array from a database query, where the indices 5, 7 and 21 are order_id and my table is food_orders(order_id, food, cooked): ?php $food_array = array( 5=array('steak','rare'),

RE: [PHP] Re: multi-dimentional array from db results

2004-03-30 Thread motorpsychkill
-Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 11:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: multi-dimentional array from db results Motorpsychkill wrote: I'm trying to re-create the following multi-dimentional array from

[PHP] PHP Seg Faults, How to Trackdown?

2004-03-30 Thread Tim Schaab
Greetings, I need help tracking down a crash in PHP. I have not been able to work out a test case where it will crash reliably, so I have been hesitant to fill out a bug report. Here's the kit I have running: PHP4 - Latest Stable Snapshot as of 30/Mar/2004 12:18 Apache - 1.3.29 mod_ssl -

Re: [PHP] PHP alternative to Browser Hawk?

2004-03-30 Thread Matt Matijevich
snip Does anyone know of a good solid PHP alternative to the very good (but very expensive!) BrowserHawk? (http://www.cyscape.com/) /snip Dont know if this has all of the features you are looking for, but it has a bunch of them http://phpsniff.sourceforge.net/ -- PHP General Mailing List

[PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon(user,pw,zed.alpeh0) and connect fine, but on a remote server I try

[PHP] Re: ocilogon

2004-03-30 Thread Jason Barnett
Adam Williams wrote: Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon(user,pw,zed.alpeh0) and connect fine, but on a remote server I

Re: [PHP] ocilogon

2004-03-30 Thread William Lovaton
You need the Oracle cliente libraries installed where you have PHP for this to work. the third parameter in OCILogon() is the connection string configured in tnsnames.ora ($ORACLE_HOME/network/admin) Let's say that you make connection to Oracle using sqlplus: User: scott pass: tiger dbstring:

Re: [PHP] TUX web server replacement

2004-03-30 Thread William Lovaton
Hi Alister, Thanx for the links and the example. This link is very useful too: [] http://ftp.ucr.ac.cr/solrhe/chap28sec231.html I have it working now with good results. Regards, -William El mar, 30-03-2004 a las 16:35, Alister escribió: On 29 Mar 2004 15:28:38 -0500 William Lovaton

[PHP] Re: ocilogon

2004-03-30 Thread Justin Patrin
Adam Williams wrote: Hi, what is the syntax for using ocilogon() to connect to a remote server? The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the database is zed.aleph0. Locally on zed I can do ociogon(user,pw,zed.alpeh0) and connect fine, but on a remote server I

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, I have the client libraries on the computer I have PHP on. My connect line is $conn = ocilogon(user,pw,zed.aleph0); and I can connect usning sqlplus. When I look at the listener log, it doesn't show my computer with PHP on it trying to connect using PHP, but when I tnsping zed.aleph0,

[PHP] File Download link not working in PHP 4.3.4

2004-03-30 Thread Andrew Hauger
I have a script that dynamically generates a CSV file for downloading to MS Excel. The script works fine in PHP 4.3.3 on a Windows machine using Apache 2, and the exact same script does not work in PHP 4.3.4 on Solaris 9 using Apache 1.3.29. A script with essentially the same header commands works

Re: [PHP] ocilogon

2004-03-30 Thread Adam Williams
Hi, I figured out what was wrong, I had php_oci8.dll uncommented in php.ini but not php_oracle.dll. Fixed that and now I get an ORA-12705 error, which looking on google has something to do with NLS. Going to do more reading, thanks :) -- PHP General Mailing List (http://www.php.net/) To

Re[2]: [PHP] Really Annoying Require/Include Error

2004-03-30 Thread Richard Davey
Hello James, Tuesday, March 30, 2004, 7:37:33 PM, you wrote: JEHI so PHP is looking for your require file in this directory. JEHI /home/sites/site111/web/news/forms/home/sites/site111/web/news/forms/ Sorry, but I don't believe it is. The leading slash dictates from the system level root,

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread Manuel Lemos
Hello, On 03/30/2004 09:38 AM, William Lovaton wrote: Well, I'am aware of that but the application is already made and it is big and development continue, so change it will be a huge task and we have no resources available for it. Tux used to perform very well here, but unfortunatelly there is no

[PHP] imagecreatefromjpeg

2004-03-30 Thread Bruno Santos
Hello all. Im developing a page, and need to create a thumb of some images. i've compiled PHP 4.3.5 with the built-in support of GD, even having installed the GD library. the problem is that i call the imagecreatefromjpeg function, and PHP returns a fatal error when in run time i've even

[PHP] Having trouble formatting width using printf() and default spaces

2004-03-30 Thread David Scott
I'm using a for() loop to generate random die rolls. I'd like the numbers to be formatted in a grid. for ($i = 0; $i 100; $i++) { if (!($i % 5)) { print(br /); } printf(%'.10u, rand(1,$sides)); } Currently, I'm padding with '.', but I'd like to pad with

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread William Lovaton
Hi Manuel, El mar, 30-03-2004 a las 17:38, Manuel Lemos escribió: Hello, On 03/30/2004 09:38 AM, William Lovaton wrote: Well, I'am aware of that but the application is already made and it is big and development continue, so change it will be a huge task and we have no resources

Re: [PHP] Re: TUX web server replacement

2004-03-30 Thread Manuel Lemos
Hello, On 03/30/2004 07:55 PM, William Lovaton wrote: Well, I'am aware of that but the application is already made and it is big and development continue, so change it will be a huge task and we have no resources available for it. Tux used to perform very well here, but unfortunatelly there is no

[PHP] Extracting Output from File...

2004-03-30 Thread Russell P Jones
Basically there is a php page... lets say http://www.myserver.com/outputpage.php that picks up some info from a database and echos it out as plain text to the browser. I want to use php in a different file to go pick up whatever is printed out to that file and save it to a variable.. basically

RE: [PHP] Extracting Output from File...

2004-03-30 Thread Martin Towell
You should be able to use any of the file commands. eg. $contents = file(http://www.myserver.com/outputpage.php;); fopen(), etc should all work too. Martin -Original Message- From: Russell P Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 9:25 AM To: [EMAIL

Re: [PHP] PHP Seg Faults, How to Trackdown?

2004-03-30 Thread Rasmus Lerdorf
3 of those are putenv() crashes. Whenever I see that I always think thread safety issues. In your case you are linking against the NTPL-aware libc on Redhat (/lib/tls/libc.so.6). Could you try doing this: LD_PRELOAD=/lib/i686/libc.so.6 in your Apache startup script and let me know if it

[PHP] Re: Having trouble formatting width using printf() and default spaces

2004-03-30 Thread Jason Barnett
David Scott wrote: I'm using a for() loop to generate random die rolls. I'd like the numbers to be formatted in a grid. In a grid... like an HTML table? You could something like: $row = 20; $col = 5; echo 'table'; for ($i = 1; $i $row; $i++) { echo 'tr'; for ($j = 1; $j $col; $j++) {

[PHP] Re: imagecreatefromjpeg

2004-03-30 Thread Jason Barnett
Bruno Santos wrote: Hello all. Im developing a page, and need to create a thumb of some images. i've compiled PHP 4.3.5 with the built-in support of GD, even having installed the GD library. the problem is that i call the imagecreatefromjpeg function, and PHP returns a fatal error when in

[PHP] .doc file

2004-03-30 Thread Anthony Ritter
Greets, I've been able to open a remote URL, read it and then lop off everything except the last line and break it into an array with its' tabs - /t . The data will then be inserted into a table. However, the following URL shows reservoir storage and is a .doc file. I am unable to run the same

[PHP] Re: imagecreatefromjpeg

2004-03-30 Thread Jason Barnett
From http://www.php.net/manual/en/function.imagecreatefromjpeg.php To all those having trouble with a message to the effect of:br CreateImageFromJpeg() not supported in this PHP buildbr Start by adding --with-jpeg-dir to your ./configure options as I left this out (not knowing I needed it) and I

[PHP] Re: .doc file

2004-03-30 Thread Jason Barnett
Anthony Ritter wrote: Greets, I've been able to open a remote URL, read it and then lop off everything except the last line and break it into an array with its' tabs - /t . The data will then be inserted into a table. However, the following URL shows reservoir storage and is a .doc file. I am

[PHP] Re: .doc file

2004-03-30 Thread Jason Barnett
Actually, why don't you just use plain text like this. Sheesh, sometimes I forget the easy answer :) STORAGE The actual combined contents for the New York City Reservoirs in the Delaware River Basin for December 1, 2003-March 29, 2004. Date Pepacton Cannon. Never. Actual Drought

[PHP] mysql - can't use the copy/paste function

2004-03-30 Thread Five
Windows 98 se When using the dos window command line for mysql commands everything works fine except if I try to use the paste function to paste pre-typed commands, the window freezes. This is aaannnoooyyyiiinnnggg. advance thanks Dale -- PHP General Mailing List (http://www.php.net/) To

  1   2   >