Re: [PHP] file separator...

2004-02-01 Thread Don Read
On 30-Jan-2004 Dan Joseph wrote: Hi Everyone, Hoping someone can shed a light on this. I have to send a file separator in a string that I piece together to a remote system. I've been told this is x'1C' ASCII or x'22' HEX. I have no idea what to really send. I've tried several

php-general Digest 1 Feb 2004 13:10:08 -0000 Issue 2564

2004-02-01 Thread php-general-digest-help
php-general Digest 1 Feb 2004 13:10:08 - Issue 2564 Topics (messages 176469 through 176500): Perl script using Inline-octave doesn't run. 176469 by: Paulo Lagrotta Re: formated text after Submit in MySQL/PHP 176470 by: Burhan Khalid 176478 by: Matt Hedges

[PHP] HTTP request parameters do not populate variables

2004-02-01 Thread Slava Zinkovski
Hi, everybody! I've just installed PHP on my workstation and it seems as I have some trouble. The simplest code does not work! Here it is: ? print_r($HTTP_GET_VARS); print(param = . $param); ? I run it with URL like this http://localhost/myApp/test.php?param=qqq: I expect it to print

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread DvDmanDT
And once again, someone didn't search the archives before posting like you are told to do on the mailing list page (this question is answered several times daily).. The bug is called register_globals being on on you production server and off onn you development server.. Learn not to use register

Re: [PHP] HTTP request parameters do not populate variables

2004-02-01 Thread BAO RuiXian
Slava Zinkovski wrote: [snip...] I run it with URL like this http://localhost/myApp/test.php?param=qqq: I expect it to print 'param=qqq' string, though it does not! :((( Here is the output: Array ( [param] = qqq ) Notice: Undefined variable: param in d:\phptest\test.php on line 4

[PHP] modify an XML file

2004-02-01 Thread Decapode Azur
hello! What is the best solution to modify an XML file? (Modification such as change the content of a tag or of an attribute) I think there would be several methods. What is the best one for small files? (something about 20Ko) What is the best one for large files? (something about 8Mo) What

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread Slava Zinkovski
Many thanks, man. You are very helpful! I did try searching this news group. Nothing found. Will try to do my best next time to not upset you. Anyway, thanks for help. Dvdmandt wrote: And once again, someone didn't search the archives before posting like you are told to do on the mailing list page

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread DvDmanDT
lol, I'm not upset.. But follow this group a month and you'll understand.. I've been following 8 months or so... Just about everyone asks... Many ppl on php.windows as well.. Ppl in forums.. I'm thinking about suggesting the solution to this problem should be posted on the mailing-lists.php page..

Re: [PHP] modify an XML file

2004-02-01 Thread Raditha Dissanayake
Decapode Azur wrote: hello! Hi there. What is the best solution to modify an XML file? depends (Modification such as change the content of a tag or of an attribute) I think there would be several methods. you said it. What is the best one for small files? (something about 20Ko) DOM (if

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread Slava Zinkovski
I will follow, sure. The problem is that until last week i knew nothing about PHP (I used to practice java). And in a few weeks i have to be ready with a PHP application and possibly it should utilize fusebox framework. There are so many stuff to get to know in short time that sometimes it is

[PHP] Nested PHP

2004-02-01 Thread Russell Shaw
Hi, I have php code embedded in html, that is read by apache. Is nested php code allowable such as: ? $phpcode=? echo \ some html \ ?; ? ... html ... body ? echo $phpcode ? /body /html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] modify an XML file

2004-02-01 Thread Decapode Azur
What is the best one for large files? (something about 8Mo) Parse with SAX, use printf to produce output. Ok, it seems this method is defenitly a good one. I was wondering if it was a good one too, to read the XML file with fgets, and using ereg fonctions to make the modifications? --

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread DvDmanDT
Yes, I know what you mean.. :) If you use windows (or some other msn client), feel free to add me on MSN and I'll be glad to help you out if you get problems.. :) -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Slava Zinkovski [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL

Re: [PHP] Nested PHP

2004-02-01 Thread John Nichel
Russell Shaw wrote: Hi, I have php code embedded in html, that is read by apache. Is nested php code allowable such as: ? $phpcode=? echo \ some html \ ?; ? ... html ... body ? echo $phpcode ? /body /html Yes. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

[PHP] Re: HTTP request parameters do not populate variables

2004-02-01 Thread Slava Zinkovski
OK! Thanks! Dvdmandt wrote: Yes, I know what you mean.. :) If you use windows (or some other msn client), feel free to add me on MSN and I'll be glad to help you out if you get problems.. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stristr

2004-02-01 Thread Liam
I've been trying to make this error logger for hours now, I get my webserver to forward all errors to error.php?message=404 etc.. The source can be found here http://the-bronze.me.uk/ID/error.txt Now Im at my wits end, I want all errors that come internaly eg from the-bronze.me.uk to be put

Re: [PHP] Nested PHP

2004-02-01 Thread Robby Russell
Russell Shaw wrote: Hi, I have php code embedded in html, that is read by apache. Is nested php code allowable such as: ? $phpcode=? echo \ some html \ ?; ? ... html ... body ? echo $phpcode ? /body /html Not sure what you're trying to do there. You can do this: ?php $phpcode =

[PHP] VERY URGENT.....

2004-02-01 Thread Mr JAMES OKORO
Mr JAMES OKORO Bank Of The North, Victoria Island Branch, Lagos, Nigeria. ATTN: MD/CEO I am Mr JAMES OKORO , Branch Manager with Bank of the North, Victoria Island Branch, Lagos, Nigeria. I have an urgent and very profitable business proposition for you that should be handled with extreme

[PHP] Re: Nested PHP

2004-02-01 Thread DvDmanDT
I think you are looking for the function eval()... Or preg_replace('!e!e',$phpcode,'e'); -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Russell Shaw [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, I have php code embedded in html, that is read by apache.

[PHP] Passing of querystrings

2004-02-01 Thread Ryan Francis
Hi, I am new to php and trying to learn it for some university work. The problem I am having is this: I have read on a webmonkey tutorial that when you call a php file and name-value querystrings are automatically created into variables in your script. I have a example url :

Re: [PHP] Passing of querystrings

2004-02-01 Thread Liam
The variable is infact created, but rather than being $id the variable will be $_GET['id'] because it is part of the $_GET array, so if you had output2.php?name=fred the variable to acsses the word fred would be $_GET['name'] Hope that helps Liam - Original Message - From: Ryan Francis

Re: [PHP] search.php

2004-02-01 Thread John Taylor-Johnston
Where or what recursive function would I need to get all sub-directories? If not, can someone suggest another script? Much appreciated, John Taylor-Johnston - Université de Sherbrooke http://compcanlit.ca/ Mike Brum

Re: [PHP] modify an XML file

2004-02-01 Thread Marek Kilimajer
Decapode Azur wrote: What is the best one for large files? (something about 8Mo) Parse with SAX, use printf to produce output. Ok, it seems this method is defenitly a good one. I was wondering if it was a good one too, to read the XML file with fgets, and using ereg fonctions to make the

Re: [PHP] VERY URGENT.....

2004-02-01 Thread Ryan A
GREAT! The last time I went for the millions, my turn is over...so whose turn is it now? Cheers, -Ryan Mr JAMES OKORO Bank Of The North, Victoria Island Branch, Lagos, Nigeria. ATTN: MD/CEO I am Mr JAMES OKORO , Branch Manager with Bank of the North, Victoria Island Branch, Lagos,

[PHP] Directory Browse Concept

2004-02-01 Thread Paul Furman
I'm beginning to learn PHP to rebuild my web site in such a way that I can update it more easily (...and add some other dynamic features ...and utilize a database). I like the idea of a simple directory structure and it's a sensible way to organize my various projects and topics. So what I

Re: [PHP] PHP not working with Apache

2004-02-01 Thread Paul Furman
The php installer doesn't do everything for a windows installation. You'll need to edit php.ini httpd.config for apache, as described in the installation guide. Raditha Dissanayake wrote: Yes sounds like you have not read the installation guide. Mark Mark wrote: I am running Apache 1.3.29

[PHP] Can't delete cookies

2004-02-01 Thread Andrew Wood
Can anyone fathom out why I can't get the setcookie function to delete a cookie? I'm calling it with the same arguments as I used to set it originally, but with a null string value an expiry time in the past but the cookie persistently remains in the browser. This how I set it: setcookie

[PHP] colisions writing in a file?

2004-02-01 Thread Decapode Azur
Hello, Are Problems of colisions with a script writing in a file possible? For exemple for a PHP script reading a file, and rewriting it with modifications, when it is called a lot of times simultaneously, are conflicts possible? (over-writing the modifications) or does each session of this

RE: [PHP] VERY URGENT.....

2004-02-01 Thread Martin Towell
Ooo! Ooo! Me, Me! Can I be scammed this time? :/ -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Monday, 2 February 2004 7:02 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] VERY URGENT. GREAT! The last time I went for the millions, my turn is over...so whose

[PHP] PHP, Windows 2000/IIS MySQL

2004-02-01 Thread S Gex
I'm trying to install PHP on my system. I know absolutely nothing about it. I installed MySQL and PHP, (PHP said that it configured IIS) When I attempt to write a PHP statement and an HTML statement, the HTML statement runs, but the PHP does not...Any suggestions? Thank You -- PHP General

[PHP] comparing dates

2004-02-01 Thread Ryan A
Hi, Am a bit confused as to how to do this, I have some dates in the database as expire_login timestamp(14). I am entering dates 1 day,11 hours,59 minutes in advance. The user can sign in anytime and it should display how many days, hours and mins before his account expires... I am selecting the

[PHP] php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
Hi all, It seems that the version on my local apache installation is more strict than the version on my production server. How can i counteract this without potentially having to upgrade 300+ pages in my entire app? is there a setting in php.ini that i could locally kill some of this debugging

[PHP] Re: php version difference - local installation very strict

2004-02-01 Thread DvDmanDT
Yes.. error_reporting=E_ALL ~E_NOTICE in php.ini is most likely what your server uses.. :p Also, register_globals might give you problems.. :p -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Phillip Jackson [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi all,

RE: [PHP] comparing dates

2004-02-01 Thread Martin Towell
Is it possible to pull that dates out as unix time stamps? Then all you need to do is subtract one from the other, convert the results to days/hours/minutes and Bob's your uncle. If not, then you'll need to do some string manipulation to get the string into a format that strtotime() understands

[PHP] Re: php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
i don't use register_globals - i have a function that massages data that mimics register globals' behaivior via dynamically named variables. which one should i set it to - E_NOTICE? ~Phillip Jackson Dvdmandt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes..

Re: [PHP] comparing dates

2004-02-01 Thread Justin French
On Monday, February 2, 2004, at 10:04 AM, Ryan A wrote: which gives me two 14 numberic characters strings like: 20040202091212 20040201070500 How do I compare it to display something like this to the visitor: You have $xdays day/s, $xhours hours and $xmins minutes before your account expires

Re: [PHP] modify an XML file

2004-02-01 Thread Raditha Dissanayake
Decapode Azur wrote: What is the best one for large files? (something about 8Mo) Parse with SAX, use printf to produce output. Ok, it seems this method is defenitly a good one. I was wondering if it was a good one too, to read the XML file with fgets, and using ereg fonctions to make

Re: [PHP] php version difference - local installation very strict

2004-02-01 Thread Justin French
On Monday, February 2, 2004, at 10:14 AM, Phillip Jackson wrote: these errors are foreign to me as i have combed my code 100's of times before i deployed my app online 3 months ago. do i NEED this newer,stricter version or can i install a deprecated one? It's not newer and stricter, and it's

Re: [PHP] colisions writing in a file?

2004-02-01 Thread Michal Migurski
Are Problems of colisions with a script writing in a file possible? Absolutely. For exemple for a PHP script reading a file, and rewriting it with modifications, when it is called a lot of times simultaneously, are conflicts possible? (over-writing the modifications) or does each session of

Re: [PHP] php version difference - local installation very strict

2004-02-01 Thread Phillip Jackson
That's great advice... the only questions i have then: I only need to call session_start ONCE in my entire application per instance of a session? when i published the application months ago to my production server i had errors on every page notifying me that a session had not been started so i

php-general Digest 2 Feb 2004 01:12:52 -0000 Issue 2565

2004-02-01 Thread php-general-digest-help
php-general Digest 2 Feb 2004 01:12:52 - Issue 2565 Topics (messages 176501 through 176538): HTTP request parameters do not populate variables 176501 by: Slava Zinkovski 176502 by: DvDmanDT 176503 by: BAO RuiXian 176505 by: Slava Zinkovski 176506 by:

Re: [PHP] php version difference - local installation very strict

2004-02-01 Thread DvDmanDT
Once on every page... I include one file once, on each page, and in that one I have session_start()... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Phillip Jackson [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] That's great advice... the only questions i have

Re: [PHP] Nested PHP

2004-02-01 Thread Russell Shaw
Robby Russell wrote: Russell Shaw wrote: Hi, I have php code embedded in html, that is read by apache. Is nested php code allowable such as: ? $phpcode=? echo \ some html \ ?; ? ... html ... body ? echo $phpcode ? /body /html Not sure what you're trying to do there. I am generating

Re: [PHP] stristr

2004-02-01 Thread Russell Shaw
Liam wrote: I've been trying to make this error logger for hours now, I get my webserver to forward all errors to error.php?message=404 etc.. The source can be found here http://the-bronze.me.uk/ID/error.txt Now Im at my wits end, I want all errors that come internaly eg from the-bronze.me.uk

Re: [PHP] PHP, Windows 2000/IIS MySQL

2004-02-01 Thread Russell Shaw
S Gex wrote: I'm trying to install PHP on my system. I know absolutely nothing about it. I installed MySQL and PHP, (PHP said that it configured IIS) When I attempt to write a PHP statement and an HTML statement, the HTML statement runs, but the PHP does not...Any suggestions? If you embed the php

Re: [PHP] Re: php version difference - local installation very strict

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 08:03, Phillip Jackson wrote: i don't use register_globals - i have a function that massages data that mimics register globals' behaivior via dynamically named variables. which one should i set it to - E_NOTICE? error_reporting = E_ALL display_errors = Off

Re: [PHP] VERY URGENT.....

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 04:01, Ryan A wrote: GREAT! The last time I went for the millions, my turn is over...so whose turn is it now? Please do not respond to spam -- and trim your posts! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

[PHP] Pulling unique data from database

2004-02-01 Thread Richard Kurth
I am pulling data from a database that list the Language a person speaks. It is in a format like this. English||Spanish English English||Portuguese||Finnish English||Japanese||German English English German each time it looks at a new record it list all the languages that that person speaks

[PHP] Help with files

2004-02-01 Thread Mr. Austin
Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. ?php $buff =

Re: [PHP] Pulling unique data from database

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 10:26, Richard Kurth wrote: What I need to do is find all the unique languages so I can generate a list of languages that do not have any repeats in it. so the list above would be English,Portuguese,Finnish,Japanese,German,Spanish in any order explode() and

Re: [PHP] Pulling unique data from database

2004-02-01 Thread Raditha Dissanayake
Hello Richard, Normally the distinct calause in sql serves this purpose but it seems that the way your DB is designed you cannot make use of it. The bad news is that you might have to read all the rows split them by the pipe symbol and insert them into a list manually. ouch! Richard Kurth

RE: [PHP] Pulling unique data from database

2004-02-01 Thread Jonathan Rosenberg
Here's some skeleton code showing one way (untested, no error checking shown): $query = 'SELECT Language FROM whatever'; $result = mysql_query($query); $languages = array(); while ($row=mysql_fetch_object($result)) $languages =

Re: [PHP] Help with files

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 10:33, Mr. Austin wrote: $buff = fopen(sample.txt, r+); ^ ---+ RTFM to see what other options you can use. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators *

Re: [PHP] Pulling unique data from database

2004-02-01 Thread Adam Bregenzer
On Sun, 2004-02-01 at 21:26, Richard Kurth wrote: each time it looks at a new record it list all the languages that that person speaks with a double pipe in between each language. What I need to do is find all the unique languages so I can generate a list of languages that do not have any

Re: [PHP] Help with files

2004-02-01 Thread Mr. Austin
I'm not entirely sure why it is that you assume I did not read the manual or the online documentation (which is very thorough). I'll find my answers elsewhere. Thank you, Mr. Austin - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 01,

Re: [PHP] comparing dates

2004-02-01 Thread Ryan A
Hey, Thanks for replying. I did find an easier way, but only after going through what you sent me...the way i found was using substr. I do read the manual, but not the online one, I have a downloaded windows helpfile copy, its much faster and easier to access but one disadvantage is...it does not

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. ?php $buff

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: I'm not entirely sure why it is that you assume I did not read the manual or the online documentation (which is very thorough). I'm sure Jason has made that assumption because the answer to your question is right there in the manual...under one of the functions you're using.

RE: [PHP] Help with files

2004-02-01 Thread Martin Towell
Instead of using r+, use w This will clear the file for you :) -Original Message- From: Mr. Austin [mailto:[EMAIL PROTECTED] Sent: Monday, 2 February 2004 1:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with files I'm not entirely sure why it is that you assume I did not

[PHP] Re: Sessions not working.

2004-02-01 Thread The.Rock
If your on IIS, you need to set the session.save_path option in php.ini file. Then make sure that IIS can actually write to the directory. Jeff McKeon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Pulling my hair out here. I've got an IIS5 webserver running a php website just fine.

[PHP] search.php

2004-02-01 Thread John Taylor-Johnston
Can anyone give me a heads up on how to recurse for sub-directories please? What function can I use? I'm still kind of new at this, John 1) set $which_one to the directory you want to search. 2) create a recursive funtion (many on php.net) to get all subdirectories under it and build an

Re: [PHP] search.php

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 13:07, John Taylor-Johnston wrote: Can anyone give me a heads up on how to recurse for sub-directories please? What function can I use? I'm still kind of new at this, The user comments in the online manual for the chapter Directory functions should prove useful. --

[PHP] Pulling two field from mysql table into an array

2004-02-01 Thread Richard Kurth
What is the best way to pull two fields from a mysql database and add the two fields to an array for each record in the table field_name user_id I need it so iI can access the array with $key and $value -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] search.php

2004-02-01 Thread Raditha Dissanayake
Hi John, This is the third or fourth thread on this topic that you have started. As jason has pointed out you need to start reading. While people in this list will be happy to help you overcome specific problems no one has the time to code for you. John Taylor-Johnston wrote: Can anyone give

Re: [PHP] search.php

2004-02-01 Thread John Taylor-Johnston
Second actually. Thanks for the answer Jason, John Raditha Dissanayake wrote: Hi John, This is the third or fourth thread on this topic that you have started. As jason has pointed out you need to start reading. While people in this list will be happy to help you overcome specific problems