RE: [PHP] Is there any substitute for header function?

2002-05-29 Thread Balaji Ankem
Hi Martin, I have tried with full URL. But no use. Again displayed the error alert. Thanks and Regards Balaji -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 11:37 AM To: 'Balaji Ankem'; [EMAIL PROTECTED] Subject: RE: [PHP] Is there any

Re: [PHP] Is there any substitute for header function?

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 14:14, Balaji Ankem wrote: Hi Martin, I have tried with full URL. But no use. Again displayed the error alert. Try searching on http://bugs.php.net to see whether there are any known problems with header() under Windows. Try re-installing php. -- Jason Wong -

[PHP] mysql_fetch_object in a class

2002-05-29 Thread Philipp Melab
I'm trying to create a server-side tree-menue. Therefore I wrote a class Does anybody know why it doesnt work? there is a mysql_table named menue with the cols 'menue_id', 'name', 'parent_id'. $open is a global array with entries who tell me which menue-points where clicked. class

[PHP] PHP command for redirect?

2002-05-29 Thread Tim Thorburn
Hi, I'm setting up an error checking element to a registration site and would like to redirect the user to a certain page if they missed any fields on the previous registration page ... the problem is I can't seem to find a redirect command for PHP. I was using the header command, but its

Re: [PHP] PHP command for redirect?

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 15:37, Tim Thorburn wrote: Hi, I'm setting up an error checking element to a registration site and would like to redirect the user to a certain page if they missed any fields on the previous registration page ... the problem is I can't seem to find a redirect

Re: [PHP] eregi() against a binary file?

2002-05-29 Thread Miguel Cruz
According to the manual, the ereg functions are not binary safe. The superior-in-every-way preg functions are. Perhaps you could try using preg_grep instead. $result = preg_grep('/' . preg_quote($imagename) . '/', $file); You may find that strstr or something is even simpler. miguel On Tue,

Re: [PHP] PHP command for redirect?

2002-05-29 Thread Tim Thorburn
The error the header() command is giving me now is: Warning: Cannot add header information - headers already sent by (output started at \registrations\reg_mudfling.php:5) I've moved the header command around (line position) and still nothing ... not sure why its suddenly not working. I've

Re: [PHP] Login determines content on page

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002, Dr. Indera wrote: I'd to know how difficult it is to achieve the following: Create login page, when the submit button is clicked, the user info is checked against a database as to whether is login info is valid. if it is valid, a page is displayed that lists all of the

Re: [PHP] PHP command for redirect?

2002-05-29 Thread Miguel Cruz
On Wed, 29 May 2002, Tim Thorburn wrote: The error the header() command is giving me now is: Warning: Cannot add header information - headers already sent by (output started at \registrations\reg_mudfling.php:5) I've moved the header command around (line position) and still nothing ...

Re: [PHP] can I use regex for this?

2002-05-29 Thread Miguel Cruz
If it's just a date you want to convert, why not use the functions already provided? $output = date('d-m-y', strtotime($input)); miguel On Wed, 29 May 2002, Martin Towell wrote: I have a string which is a date - eg 01-JUL-02 I want to convert the month bit to it's corresponding number, so

RE: [PHP] Time release type question

2002-05-29 Thread David Freeman
This is an example of what I'm talking about. Week 1 pages would be visible starting June 3rd Week 2 pages would be visible starting June 10th Week 3 pages would be visible starting June 17th Use a database. Store information about each file in the database, including a release

[PHP] Re indent

2002-05-29 Thread Laurent Drouet
Does anybody know a good tool (if possible freeware) to automatically Re-indent PHP code running on windows ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odd class/session/db behaviour

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've been wrestling with a problem that has, as far as I'm aware, no reason to be happening unless php handling of OOP and Sessions is to blame. This note looks long, but has been *seriously* condensed! I have an application set up like this

[PHP] Relative beginner in dire need of help!

2002-05-29 Thread DragonPsyche2
I really hope someone can help me here!! LOL!! I'm in the process of moving a site that utilises PHP and MySQL to another server. The move has gone well, and I have successfully edited most of the scripts, or rewritten them to work in their new location... however... I am having a problem

[PHP] header solved

2002-05-29 Thread Tim Thorburn
Hi, Just wanted to thank you for your responses ... I solved my header problem - I wasn't using the full address (I left out the http:// bit) Thanks again ... must be working at 3.30am thats not so good for the brain ... -Tim -- PHP General Mailing List (http://www.php.net/) To

[PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread DragonPsyche2
I really hope someone can help me here!! LOL!! I'm in the process of moving a site that utilises PHP and MySQL to another server. The move has gone well, and I have successfully edited most of the scripts, or rewritten them to work in their new location... however... I am having a problem

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared Warning: Unable to create '../specialoffer_images/specoffpicone.jpg': Permission denied in /home/virtual/loverskey/home/httpd/html/specialoffer_admin/special_off ers_changed.php on line 45 The

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
Thanks Nick... thing is I have actually set the permissions at 777 several times today. I'll try it again though, just in case. Any thoughts on the header issue? Cheers, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared Thanks Nick... thing is I have actually set the permissions at 777 several times today. H what is /inside/ that directory? I'll try it again though, just in case. Any thoughts on the header

[PHP] odd class/session/db behaviour

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've been wrestling with a php problem that has, as far as I'm aware, no reason to be happening unless php handling of OOP and Sessions is to blame. This note looks long, but has been *seriously* condensed! I have an application set up like

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
In a message dated 5/29/02 4:46:53 AM Eastern Daylight Time, [EMAIL PROTECTED] pronoucnes to the naive PHP'er: H what is /inside/ that directory? Inside it? Right now, it holds three jpgs. There's no further files or dir structure. Thank you again! Greg

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared H what is /inside/ that directory? Inside it? Right now, it holds three jpgs. There's no further files or dir structure. Okay, 2 things then. 1. Does this image already exist in that dir?

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
In a message dated 5/29/02 4:53:22 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: 1. Does this image already exist in that dir? Yes it does - the script is supposed to overwrite any image in the dir, and rename whatever you upload to a preset name, as far as I can see it. I've tried

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared 1. Does this image already exist in that dir? Yes it does - the script is supposed to overwrite any image in the dir, and rename whatever you upload to a preset name, as far as I can see it. I've

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, s...

2002-05-29 Thread DragonPsyche2
In a message dated 5/29/02 5:09:12 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: Okay! I think I've got it. Get into the dir and do 'chmod 777 *' I reckon you have permissions on the dir but not on the imgs. Oh! Good man!! Why didn't I think of that? I'll give it a go... Of

RE: [PHP] 'ucfirst' function for text area strings?

2002-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: 28 May 2002 22:37 if (eregi(([^]|\n)*|/SCRIPT.*?\/SCRIPT/ims|onClick|onLoad| onDblClick| onDragStart|onKeyDown|onKeyPress|onKeyUp|onMouseDown|onMouseMove|

[PHP] RE: odd class/session/db behaviour

2002-05-29 Thread Tim Ward
I'm not sure if this is your problem but are you closing the connection anywhere in the script? e.g. function Fred() { $freddb = mysql_connect(servername,user,password); mysql_close($freddb); } $db = mysqlconnect(servername,user,password); Fred(); Mysql_query(select ..., $db);

[PHP] unsetting function

2002-05-29 Thread Laurent Drouet
Hi the ML I would like to know if there is a way to unset a function or to replace function contents by an other ? Regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php+oracle

2002-05-29 Thread Maurice Kevenaar
Try to install the windows 2000 support tools and check width the Dependency Walker the file and ll see witch file is missing! -- Maurice Mauricio [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi for all. I have php+apache+win2000+client oracle in my

Re: [PHP] Re: php+oracle

2002-05-29 Thread Laurent Drouet
I don't know for Win2000 but for my NT box I had to put the file php_oci8.dll in the winnt directory like the php.ini. Laurent Drouet Maurice

[PHP] Avoid escaping

2002-05-29 Thread Jose Jeria
i have some html that i submit using html example textarea name=test font face=ArialPerro/font /textarea When i submit this and retrieve it on the target page the value looks like this: font face=\Arial\Perro/font Can I somehow avoid that somehow? -- PHP General Mailing List

[PHP] Re: odd class/session/db behaviour

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Tim Ward declared I'm not sure if this is your problem but are you closing the connection anywhere in the script? Nope. thanks though... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version:

[PHP] Input data for php program.

2002-05-29 Thread Sidney
Hi, I am designing a php program running in Linux, i would like to know can i design a program by adding permeter after the file name? Just like the following, adding.php is the filename and 123 ,456 is the data which i want to input for the program? [root@localhost bin]# php adding.php 123

RE: [PHP] Is there any substitute for header function?

2002-05-29 Thread Balaji Ankem
Hi, Yes Problem is there with the ID: Bug #15090 header(Location: $url) causes php.exe to generate an error Submitted: 17 Jan 5:21pm Modified: 18 Jan 11:54pm From: [EMAIL PROTECTED] Status: Closed Category: Reproducible crash Version: 4.0.6 OS: Windows 2000 Cheers Balaji -Original

[PHP] My old problem...

2002-05-29 Thread DragonPsyche2
Hhmmm... Now it doesn;t seem to find the page it's referring to, then upon refresh it removes all table entires... odd... and gives these errors: Warning: Unable to open '' for reading: No such file or directory in /home/virtual/loverskey/home/httpd/html/specialoffer_admin/special_offers_chan

[PHP] Re: Avoid escaping

2002-05-29 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... i have some html that i submit using html example textarea name=test font face=ArialPerro/font /textarea When i submit this and retrieve it on the target page the value looks like this: font face=\Arial\Perro/font Can I

[PHP] Re: Input data for php program.

2002-05-29 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I am designing a php program running in Linux, i would like to know can i design a program by adding permeter after the file name? Just like the following, adding.php is the filename and 123 ,456 is the data which i want to

[PHP] if foreach

2002-05-29 Thread Laurent Drouet
Hi ! I would like to know if somebody already done the following thing : I'm writing a function which accept 2 args : $conditions and $summary in my function I have to construct an if statement with these arg like : if foreach ($conditions as $key=$val) ($val==$summary[$key])

RE: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread David Freeman
Warning: Unable to create '../specialoffer_images/specoffpicone.jpg': Permission denied in /home/virtual/loverskey/home/httpd/html/specialoffer_admin/sp ecial_off ers_changed.php on line 45 The directories are permissiond correctly, and I've tried so many Nope, they

[PHP] Nick please read this! You'll be surprised!! LOL!!

2002-05-29 Thread DragonPsyche2
Nick... this world of technology is very, very odd. I got really annoyed, and when I pressed the submit button as a test, I held it down for a few seconds, chanting Work, dammit, work... Lo and behold, it did... now it works everytime... god knows how.. Thank you so much for your input, I

Re: [PHP] if foreach

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Laurent Drouet declared if foreach ($conditions as $key=$val) ($val==$summary[$key]) { statements to execute if the condition is right for all $conditions } How

RE: [PHP] easy date question?

2002-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Ed Lazor [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 01:49 To: [EMAIL PROTECTED] Subject: [PHP] easy date question? How can I find out the date of the 3rd Tuesday of any given month? Thanks, To get a timestamp value: $third_tues =

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: 28 May 2002 20:21 If I write a comment line with // and I include in it ? then it fails to parse the rest of the page because (i'm guessing) the parser gets confused and goes off PHP mode. Is

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED]] Sent: 28 May 2002 21:53 No, if you use /* ? */ as a comment the parser will skip right over it.if you want to use sample code in your script just use: /* ? code here ? */ that'll work fine hmm,

[PHP] parse error in line??

2002-05-29 Thread Webby
? require 'common.php'; function DisplayErrMsg($message) { printf (blockquoteblockquoteblockquoteh3fontcolor=\#cc\ %s/font/h3/blockquote/blockquote/blockqoute\n,$message); } function authenticateUser($user, $password) { global $host, $httphost, $user_db, $password_db, $db,

[PHP] php on *nix Worldpay

2002-05-29 Thread Kevin Lowe
Hi, Has anyone interfaced to Worldpay using php running on Unix/Linux? Worlp pay have a COM interface but thsi is only avaliable if PHP is running under windows, so I was wondering if there is another way? Thanks, Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] parse error in line??

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 19:17, Webby wrote: When starting a new topic please do not reply to an existing post. Start a new one. **/ when i run this script it's say parse error in this line 'i don't what is wrong with this line if (($row = mysql_fetch_array($result))

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Jay Blanchard
[snip] Could anybody explain to me (or even give me a link to a place explaining) the creation of DSN-less connections? I've extensivly searched Google with this, but I couldn't find anything that was of any help to me. I know how to do this in ASP, though... [/snip] PHP does not use the concept

[PHP] PHP doubt

2002-05-29 Thread r
Hey guys, I have written a program and being a newbie I dont know if this is good or will give me problems in the future, so will appreciate it if you could just have a look at the function and give me your esteemed opinion ;-) This is just a snip from the program...its pretty easy so your

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Jay Blanchard
[snip] ...lots of stuff from lots of messages... [/snip] If you need to display PHP code in an HTML page and have it validate properly you need to use the following; lt;? php ?gt; which will properly display as ? php ? As a matter of course it is typical to use lt; () and gt; () along with a

Re: [PHP] unsetting function

2002-05-29 Thread Steve Buehler
You might want to give an example of what you are trying to do or at least, why. I am not an expert (not by a long ways), but to me, the way your question is worded, I would have to sayOpen up the page in whatever editing program you want to use delete the function and put in a new

Re: [PHP] Avoid escaping

2002-05-29 Thread Steve Buehler
http://www.php.net/manual/fi/function.stripslashes.php Steve At 11:36 AM 5/29/2002 +0200, you wrote: i have some html that i submit using html example textarea name=test font face=ArialPerro/font /textarea When i submit this and retrieve it on the target page the value looks like this:

Re: [PHP] PHP doubt

2002-05-29 Thread 1LT John W. Holmes
// connected to the database successfully and running this query: { mysql_query.etc $r=select max(cno)+1 from customer; insert into customer values($r,'$name'); } print(Your customer number is: $r); what do you think? And will this return the correct values if 2 people submitted

RE: [PHP] Intermediate Searching... screen.

2002-05-29 Thread Ed Gorski
Well if you just wanted to do a simple redirect like the one you describe just use meta tags in the head/head meta HTTP-EQUIV=Refresh CONTENT=0;URL=searchPage.php If you use the method that Scott details (I would try to avoid that one though), create an HTML Searching... page with this meta

Re: [PHP] FATAL call to undefined function pg_query()

2002-05-29 Thread Steve G
I'm using 4.0.6. That would explain it... So how does one using 4.0.6 perform a query on a postgres database? I think it's pg_exec. However, my manual is for the newest versions of PHP. Is the syntax the same? Is there an older manual out there? Thanks! That definitely answeres that

Re: [PHP] Thread safe

2002-05-29 Thread Ed Gorski
Yeah but if you get a higher load of users that can get REALLY uglyif it is strictly an update (editing of an already existing element) then locking that record should be fine but if it's an insert or delete you shouldn't lock the table. ed At 07:15 PM 5/28/2002 -0500, Miguel Cruz wrote:

Re: [PHP] .php extension

2002-05-29 Thread Ed Gorski
Yeah one of the simple tricks to mask that you use php is to make the extention that the PHP Parser looks for (ie name it page.foo) or whatever and have: AddType application/x-httpd-php .foo At 07:27 PM 5/28/2002 -0500, Miguel Cruz wrote: On Tue, 28 May 2002, Luis Miguel N. Tavora wrote: As

RE: [PHP] PHP new super globals or something else??

2002-05-29 Thread Ed Gorski
Well you should be using $_GET, $_POST and $_SESSION and turn register-globlals off as of PHP 4.2.1.I think you need to keep track-vars on for these arrays to be initialized. ed At 10:48 AM 5/29/2002 +1000, Martin Towell wrote: code snippets would be good, if possible -Original

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Ed Gorski
Yes you really need to indicate what version of php you are using, what server you are using and what db you are using if you ever need to ask for help. Go to www.php.net and read up on: SQL SERVER mssql_connect() MYSQL mysql_connect() MOST obdc_connect() ORACLE ora_plogon() ed At 06:45

[PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
I get a parse error on this line $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; I believe that it is an error in the SQL statement Thanks in advance JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Brad Harriger
Are HTML Checkbox values handled the same way as Select Multiple tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse error in line??

2002-05-29 Thread RIVES Sergio
Hi all, I would say as Jason, and I would add a little remark also even if that doesn't seem to be the pb you have : if (($row = mysql_fetch_array($result)) ($password==$row[password]) ($password ! = )) I hope it helps SR Jason Wong a écrit : On Wednesday 29 May 2002 19:17, Webby wrote:

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread 1LT John W. Holmes
Look for errors in the line above this one. PHP doesn't know what SQL is...it's just a string to PHP. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 9:03 AM Subject: [PHP] Parse Error(newbie) I get a

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Stuart Dallas
[EMAIL PROTECTED] wrote: $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; I believe that it is an error in the SQL statement Nope, looks fine. Show us the previous few lines, the error is probably in those somewhere. -- Stuart -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then [EMAIL PROTECTED] declared I get a parse error on this line $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; I believe that it is an error in the SQL statement Nothing wrong with that. Let's have the whole error msg and

Re: [PHP] FATAL call to undefined function pg_query()

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 20:47, Steve G wrote: I'm using 4.0.6. That would explain it... So how does one using 4.0.6 perform a query on a postgres database? I think it's pg_exec. However, my manual is for the newest versions of PHP. Is the syntax the same? Is there an older manual out

Re: [PHP] PHP doubt

2002-05-29 Thread Ed Gorski
You really need to put in more of the code as it ACTUALLY appears... ed At 05:39 PM 5/29/2002 -0700, r wrote: Hey guys, I have written a program and being a newbie I dont know if this is good or will give me problems in the future, so will appreciate it if you could just have a look at the

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Here is the function: function print_new_story(){ $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; $result = mysql_query($query); $num_results = mysql_num_rows($result); for ($i=0; $i $num_results; $i++) { $row = mysql_fetch_array($result); echo 'h2a href=#: '; echo

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Brinkman, Theodore
It really should ignore anything in any sort of comment. The whole point of a comment is that it provides the programmer with information and is ignored by the compiler/interpreter. If // is supposed to comment until the end of the line, then by god, it should comment until the end of the line,

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
If you name the form elements as arrays, then yeah, they are pretty much the same. input type=checkbox name=foo[] value=oneOne input type=checkbox name=foo[] value=twoTwo input type=checkbox name=foo[] value=threeThree When submitted, $foo will be an array containing the values that were

[PHP] Re: Parse Error(newbie)

2002-05-29 Thread Kevin Lowe
Hi JJ, Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? EG $var1 = x $var2 = y; This will show an error on the second line. KEvin

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:13, [EMAIL PROTECTED] wrote: Here is the function: function print_new_story(){ $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; $result = mysql_query($query); $num_results = mysql_num_rows($result); for ($i=0; $i $num_results; $i++) { $row =

Re: [PHP] Relative beginner in dire need of help! (Scratch my last message, sorry... )

2002-05-29 Thread Ed Gorski
Are you sure the permissions on the directory are set up correctly? The user that the db is run as (usually nobody in apache/linux) needs read and write privileges on that directory ed At 04:30 AM 5/29/2002 -0400, [EMAIL PROTECTED] wrote: I really hope someone can help me here!! LOL!! I'm

[PHP] Advantages of php

2002-05-29 Thread J.F.Kishor
Hi all, I'am a php programer, I have got an seminar on 31st of May(hardly one day left) on PHP, I have to expose its advantages and advantage of PHP's security when compared to other languages. I would be thankful if you people could send me some useful information regarding its

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Line 81 is $query. I showed it in my first email. I suspect this line is the one causing the trouble(It is about four lines above the start of the function and is the only previous PHP statement) mysql_query(delete from conf_event where time ( time() ); - Original Message - From:

Re: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:10, Brinkman, Theodore wrote: It really should ignore anything in any sort of comment. The whole point of a comment is that it provides the programmer with information and is ignored by the compiler/interpreter. If // is supposed to comment until the end of the

Re: [PHP] Avoid escaping

2002-05-29 Thread Ed Gorski
Inside php.ini there is a setting to turn Magic Quotes on or off.turn them off and you won't have this problem. If you don't have access to the php.ini file or your administrator will not turn them off use echo stripslashes($test); ed At 11:36 AM 5/29/2002 +0200, Jose Jeria wrote: i

Re: [PHP] Re: Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Lowe declared Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? Yep, that would be me

RE: [PHP] Parse Error(newbie)

2002-05-29 Thread Niklas Lampén
mysql_query(delete from conf_event where time ( time() ); You're missing the ending there. Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29. toukokuuta 2002 16:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error(newbie) Line 81 is $query.

[PHP] sessions and 'normal practice'

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I have 2 questions relating to how session id's are passed from page to page: 1: My host uses the 'append to url and hidden fields' method. I dislike this as it makes my urls untidy and my pages won't validate. So, is it considered normal

[PHP] PHP Grammar

2002-05-29 Thread Sugandh Mittal
Hi, This is Sugandh Mittal from IIT Delhi. Would any one please refer me to the BNF Grammar (or any other similar grammar) for PHP. Thanks very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Ed Gorski
Bah quit complaining, you should be using /* comments */ anyway. ed At 09:16 PM 5/29/2002 +0800, Jason Wong wrote: On Wednesday 29 May 2002 21:10, Brinkman, Theodore wrote: It really should ignore anything in any sort of comment. The whole point of a comment is that it provides the

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:22, Niklas Lampén wrote: mysql_query(delete from conf_event where time ( time() ); You're missing the ending there. Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29. toukokuuta 2002 16:20 To: [EMAIL PROTECTED]

[PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread Nicolas Costes
Er, ... Well, that mail seemed too long :-) So my question is : Are there differences between PHP3 and PHP4, in the manner of passing variables to a script ??? Thanx for your help ... -- ( ° Nicolas Costes //\\ IUT de La Roche / Yon / \/ ) [EMAIL PROTECTED] `-

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Leotta, Natalie (NCI/IMS)
I disagree. I use // because then when I need to take out a chunk of code (the requirements for the programs change faster than I can keep up with them!!) I can do /* unnecessary code */ and it doesn't end prematurely. -Natalie -Original Message- From: Ed Gorski [mailto:[EMAIL

Re: [PHP] Advantages of php

2002-05-29 Thread 1LT John W. Holmes
Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. As far as POST vs. GET, there's hardly a difference. POST data is sent in the headers, GET data is sent in the URL. Either one can easily be created by the user, so

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
1. This is done for users that don't use cookies. Believe it or not but there are people out there that are afraid of cookies and automatically turn them off. Without appending the sessionid to the end of the URL, sessions won't work for these people. Now how does your host append to the

[PHP] Periods with UNIX timestamps

2002-05-29 Thread webmaster
Where is the best place to find out the values in seconds(i.e. UNIX time stamps) for standard periods of time such as one day and one week and one month(The month thing would need to be correct for each month) JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List

Re: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote: I disagree. I use // because then when I need to take out a chunk of code (the requirements for the programs change faster than I can keep up with them!!) I can do /* unnecessary code */ and it doesn't end prematurely. Yes this

Re: [PHP] Advantages of php

2002-05-29 Thread Stuart Dallas
1LT John W. Holmes [EMAIL PROTECTED] wrote: POST data is sent in the headers I know it's being picky but if the OP is going to be presenting to an audience it would be better if what he says is correct. POST data is not sent in the headers of an HTTP request. It is sent in the data part of the

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Michael Hall
I've been wrestling with the same issue. I had some code loop through and create an arbitrary number of checkbox inputs with the name 'foo[]' I then attempted to access the array using: foreach ($foo as $bar) { echo $bar; } but I got error messages telling me that $foo is not an array

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ed Gorski declared 1. This is done for users that don't use cookies. Believe it or not but there are people out there that are afraid of cookies and automatically turn them off. Without appending the sessionid to the end of

Re: [PHP] Periods with UNIX timestamps

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:35, [EMAIL PROTECTED] wrote: Where is the best place to find out the values in seconds(i.e. UNIX time stamps) for standard periods of time such as one day and one week and one month(The month thing would need to be correct for each month) 1 minute = 1 x 60 seconds

RE: [PHP] Advantages of php

2002-05-29 Thread Jay Blanchard
[snip] Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. [/snip] +1 John [snip] I'am a php programer, [/snip] And GET POST you don't know? [snip] I have got an seminar on 31st of May(hardly one day

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
Well that must mean that they are using session_name() and session_id(). I really don't know why they are using that (considering it'll add unnecessary overhead of calling session_name(),session_id() twice). My guess is that they don't have a clue about the SID constant that automatically

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Notepad at the moment as I can't change the settings of my computer due to lack of privilages - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:26 PM Subject: Re: [PHP] Parse Error(newbie) On Wednesday 29 May 2002 21:22,

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread Jason Wong
On Wednesday 29 May 2002 21:45, [EMAIL PROTECTED] wrote: Notepad at the moment as I can't change the settings of my computer due to lack of privilages You have my sympathy :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

RE: [PHP] Advantages of php

2002-05-29 Thread Ed Gorski
Maybe he's still mulling over the Hello World solution 3. htmlspecialchars() is a very nice function as welland you can't beat the regular expression functions for validating data ed At 08:41 AM 5/29/2002 -0500, Jay Blanchard wrote: [snip] Hmm...point number 1 would be time

[PHP] evaluating php expressions using Sablotron

2002-05-29 Thread R.J.C. Vos
Hi, I am using php 4.1, with Sablotron. I have both an xml and xsl file, and use sablotron to output html. But the php expressions inside these files are not evaluated (i.e. left out in the html-file) How can they be evaluated for sure? (most examples use sablotron with php4.0 and are

[PHP] Oracle Cursors

2002-05-29 Thread J. Anderson Scarbrough
I have a bound variable to an oracle cursor. I then use the OCIFetchInto() statment to move forward through the resultset. My question is how do i move backwards through the resultset? Or reset it to its starting position? thanks.

  1   2   3   >