[PHP] present php code with css

2003-09-23 Thread Decapode Azur
For people interested in presenting php code on their web site and integrate it with their css, here is a small sed script I have made. Just change the colors in it, or move it to your css. === # Put php sources in SRC dir, or change FROM definition. FROM=SRC DEST=listing if [

[PHP] Re: SQL statement

2003-09-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello, > > Im having a bit of trouble with the DATE_FORMAT function in mysql. > > $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM > custlogon'); > > I know its failing because php doesnt like the quotatio

Re: [PHP] Function in php

2003-09-23 Thread Becoming Digital
You could also get lazy and just use @strpos(). Tom's way is (obviously) better, Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]> To: "Uma Shankari T." <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday,

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Duncan Hill
On Tuesday 23 Sep 2003 19:59, Joe Harman wrote: > Is there a CSV file out there for this > > Does anyone know where I can aquire a file that has IP address with the > corresponding Postal Code? How do you handle dynamic IP pools that cover entire states (or countries) ? :> (Some of AOL's IPs com

Re: [PHP] PHP code in form field - var_export() (slashes)?

2003-09-23 Thread Jason Wong
On Wednesday 24 September 2003 12:00, Shawn McKenzie wrote: > O.K. I am collecting PHP code in a textarea and then using var_export() to > a file for later use. In the file, the PHP is in single-quotes. I'm curious, why are you using var_export() if it's causing so many problems? Acutally why

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Jason Wong
On Thursday 25 September 2003 08:46, Martin Raychev wrote: This is exasperating as well as a waste of time! > it's not the code snip that is important Of course it is important. It is *your* code which is causing something which *ought to work* to not work. > but the fact that I DO have to > h

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread tjr
AEdiX - Original Message - From: "jeffrey pearson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 11:59 PM Subject: Re: RE: [PHP] PHP Editor - which to use? > I like to use Edit Plus. www.editplus.com > > It has the syntax highlighting for php, perl, j

Re: [PHP] Function in php

2003-09-23 Thread Tom Rogers
Hi, Wednesday, September 24, 2003, 3:27:48 PM, you wrote: UST> Hello, UST> I am using strpos function for finding the string position in a UST> particular string . if the searching string is empty it is showing this UST> warning error UST> Warning: Empty delimiter in filename text.php on

[PHP] Function in php

2003-09-23 Thread Uma Shankari T.
Hello, I am using strpos function for finding the string position in a particular string . if the searching string is empty it is showing this warning error Warning: Empty delimiter in filename text.php on line 33 is there any other way to avoid displaying this warning error..?? Regards,

Re: [PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Ok, thanks! "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zavaboy wrote: > > >Is there a way to have a PHP script run on the server? For example, I want > >to run a script to erase old database fields at 12:00 AM server time without > >any user interaction, how woul

Re: [PHP] Can I run scripts on server?

2003-09-23 Thread Leif K-Brooks
zavaboy wrote: Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do that? All PHP scripts are run on the server, I'm guessing you mean run /automatically/ on the

[PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do that? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP code in form field - var_export() (slashes)?

2003-09-23 Thread Shawn McKenzie
O.K. I am collecting PHP code in a textarea and then using var_export() to a file for later use. In the file, the PHP is in single-quotes. I am having issues trying to make sure that things are escaped correctly. If PHP code is submitted with no single-quotes and no escaping, then all is well.

RE: [PHP] PHP class and extends

2003-09-23 Thread Golawala, Moiz M (IndSys, GE Interlogix)
You can do one of 2 things. 1. You can comment out the ExecuteQuery Function in the child class. 2. When you call the function in the child class simply call it as Parent::ExecuteQuery. This way php will know what function you are trying to call. cheers Moiz -Original Message- From:

Re: [PHP] SQL statement

2003-09-23 Thread Curt Zirzow
* Thus wrote Dan J. Rychlik ([EMAIL PROTECTED]): > Well, we have a word for myself that over looks things and takes things > literal. Its called "pencil smoke" It means dump, dunce, and lost. > > Jennifer was right, their was an error in my SQL query. technically it was an error in the code no

Re: [PHP] How can I auto upload a file to the server?

2003-09-23 Thread Jason Sheets
You might look at SCP using the PuTTY SCP or another SSH client to securely upload the file. You could automate it in a batch file and make a short-cut to the batch file. Doing this over the web is not a good method like John said. If you use SCP you can setup an SSH key so that you are not

Re: [PHP] SQL statement

2003-09-23 Thread Curt Zirzow
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]): > > http://www.mysql.com/doc/en/Reserved_words.html > > > > [snip] > > 6.1.7 Is MySQL Picky About Reserved Words? > > > > A common problem stems from trying to create a table with column > > names that use the names of datatypes or functions built i

Re: [PHP] How can I auto upload a file to the server?

2003-09-23 Thread John W. Holmes
jane wrote: I have a .txt file on my local Windows 2000 box that i want uploaded to a remote L.A.M.P. server with only one click. I want to have a link (shortcut) on my desktop when clicked it launches a web browser loaded with a remote .php script that automatically goes into C:\data\upload_me.tx

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Well, we have a word for myself that over looks things and takes things literal. Its called "pencil smoke" It means dump, dunce, and lost. Jennifer was right, their was an error in my SQL query. SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') as timestamp FROM custlogon; not as f

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Robert Cummings
On Wed, 2003-09-24 at 20:46, Martin Raychev wrote: > Hi Jason, > > it's not the code snip that is important but the fact that I DO have to have > header(Location...) statement BEFORE anything else on the second php page. This is incorrect. You MUST have the header( ... ) BEFORE any statement that

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Thank you for your time on this. No problem. > > // Function that runs reports on logon history > > function logonHist() { > > db_connect(); //establish connection > > $_qlogonhist = ("SELECT username,host_info,status, DATE_FORMAT(timestamp, > '%d%m%y') > as formatted_ts FROM custlogon

RE: [PHP] SQL statement

2003-09-23 Thread Javier Muniz
You need to change timestamp to formatted_ts in your php code. -Original Message- From: Dan J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:45 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] SQL statement Thank you for your time on this. I do a

Re: [PHP] How can I auto upload a file to the server?

2003-09-23 Thread Raditha Dissanayake
Hi, The exact mechanism you mentioned cannot be easily created with php. What you can do is the install PHP command line version on your system and upload directly with that using a php script completly bypassing the browser. In that case though you will need to create write the post data usin

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
I tried this, and it failed. Thank you for the suggestion! - Original Message - From: "Cody Phanekham" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Chris W. Parker" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 7:43 PM Su

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> http://www.mysql.com/doc/en/Reserved_words.html > > [snip] > 6.1.7 Is MySQL Picky About Reserved Words? > > A common problem stems from trying to create a table with column > names that use the names of datatypes or functions built into > MySQL, such as TIMESTAMP or GROUP. You're allowed to do it

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Thank you for your time on this. I do apologize for being a pain. Here is my code... Username Host Info Status Time Stamp       ERROR Username d

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
Hi Jason, it's not the code snip that is important but the fact that I DO have to have header(Location...) statement BEFORE anything else on the second php page. How can I do this since in order to validate form data with PHP I have to have validating code and the header statement to appear later,

RE: [PHP] SQL statement

2003-09-23 Thread Cody Phanekham
http://www.mysql.com/doc/en/Reserved_words.html [snip] 6.1.7 Is MySQL Picky About Reserved Words? A common problem stems from trying to create a table with column names that use the names of datatypes or functions built into MySQL, such as TIMESTAMP or GROUP. You're allowed to do it (for exampl

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> > > Jennifer, you're right, I am using fetch_array... I tried to use your > > > suggestion, and it failing as well, It wont even execute > > > > > > > There's probably an error in my SQL syntax. What is > mysql_error() telling > > you? > I dont believe it to be an error because Ive run thi

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
This didnt work as well. SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') as formatted_ts FROM custlogon; It caused my script to die and not execute at all - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; "Chris W. P

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
I dont believe it to be an error because Ive run this from the CLI on my zeus system. I have also echoed out the sql statement to read exactly what is being read. The other elements in the record are return as expected, except for the timestamp in which the DATE_FORMAT mysql function is called.

Re: [PHP] SQL statement

2003-09-23 Thread Raquel Rice
On Tue, 23 Sep 2003 19:10:29 -0500 "Dan J. Rychlik" <[EMAIL PROTECTED]> wrote: > Ive used this > $query = ("SELECT username, password, DATE_FORMAT(timestamp, > '%d%m%y') FROM custlogon"); > > But I recieve unknown index timestamp. *shrug* > Is "timestamp" an actual columnname in your table?

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> try this: > > $query = "SELECT username, password, > DATE_FORMAT(CURRENT_TIMESTAMP(), '%d%m%y') FROM custlogon"; > > or if that doesnt work try: > > $query = "SELECT username, password, DATE_FORMAT(NOW(), '%d%m%y') > FROM custlogon"; [snip] original query as posted: SELECT username, password, DAT

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Jennifer, you're right, I am using fetch_array... I tried to use your > suggestion, and it failing as well, It wont even execute > > Do you have a better method of looping through all these records?? > There's probably an error in my SQL syntax. What is mysql_error() telling you? If it wa

RE: [PHP] SQL statement

2003-09-23 Thread Cody Phanekham
I havent used mysql for a while... but here goes... http://www.mysql.com/doc/en/Date_and_time_functions.html DATE_FORMAT(date,format) Formats the date value according to the format string. mysql> SELECT DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); -> 'Saturday October 1997' mysql> SE

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Jennifer, you're right, I am using fetch_array... I tried to use your suggestion, and it failing as well, It wont even execute Do you have a better method of looping through all these records?? - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[E

RE: [PHP] SQL statement

2003-09-23 Thread Jennifer Goodie
> Ive used this > $query = ("SELECT username, password, DATE_FORMAT(timestamp, > '%d%m%y') FROM > custlogon"); > > But I recieve unknown index timestamp. *shrug* > > You are receiving the error on an array returned by fetch_array? If so, it is because the index is "DATE_FORMAT(timestamp, '%d%m%y

Re: [PHP] Full view of active sessions

2003-09-23 Thread Jason Sheets
I've used this technique quiet effectively in the past. I played around with some timeouts to try to prevent the second user from logging in but because of the nature of HTTP it is very hard to tell when someone has logged out when they don't click the logout button and you wind up preventing

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Ive used this $query = ("SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon"); But I recieve unknown index timestamp. *shrug* - Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tue

RE: [PHP] SQL statement

2003-09-23 Thread Chris W. Parker
Dan J. Rychlik on Tuesday, September 23, 2003 4:58 PM said: > I know its failing because php doesnt like the quotation before the > format parameters. Ive tried to fix this without any luck. Any > Ideas ? It's failing because the ' before the %d is closing the s

Re: [PHP] Re: SQL statement

2003-09-23 Thread Dan J. Rychlik
Tried that, it failed. I recieve undefined index timestamp. when executing. - Original Message - From: "Ney André de Mello Zunino" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 7:04 PM Subject: [PHP] Re: SQL statement > Dan J. Rychlik wrote: > > > $quer

[PHP] Re: SQL statement

2003-09-23 Thread Ney André de Mello Zunino
Dan J. Rychlik wrote: $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon'); Trying enclosing the whole SQL query string in double quotes. Regards, -- Ney André de Mello Zunino -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Hello, Im having a bit of trouble with the DATE_FORMAT function in mysql. $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon'); I know its failing because php doesnt like the quotation before the format parameters. Ive tried to fix this without any luck.

Re: [PHP] $_SERVER['UNIQUE_ID'] question

2003-09-23 Thread Jason Sheets
Rather than using this number I'd suggest generating your own, use mt_rand or uniqid to generate a unique series of numbers and then use md5 or sha1 to convert them to a hash (I've generated 128 character session identifiers using a variety of these techniques). You may also convert it to hex

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Dan Anderson
HTTP 1.1 says the following: 1. Client (with web browser) sends GET request to server. 2. Server responds with something like: Content-type: text/html Content-size:...blah...blah...blah 3. Server sends the web page. The header is sent on #2. What is happening is that somewhere in the code

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Jason Wong
On Thursday 25 September 2003 06:58, Martin Raychev wrote: > Thank you for answering me. I am sending the code that you requested. I've > shotened it for brevity. The idea is that I am going to make the validation > in the (2nd) "newaccount2.php" file which is the confirmation file. If > everythin

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
Hi Jason, Thank you for answering me. I am sending the code that you requested. I've shotened it for brevity. The idea is that I am going to make the validation in the (2nd) "newaccount2.php" file which is the confirmation file. If everything is OK I will just print the correct filled-in data. Oth

Re: [PHP] Full view of active sessions

2003-09-23 Thread Jeremy Johnstone
Here is a possible solution, but I don't know if it will work for your purposes: When a user logs in to your site, as part of the session store a random string (say a logincheck). Also insert this value into the database on the same row as the username/password is stored. Then on every page load c

[PHP] Full view of active sessions

2003-09-23 Thread Ney André de Mello Zunino
Hello. Is there any facility in PHP's session management library which allows one to have a full view of the active sessions? In other words, is it possible to check the existance and value of a given session variable in any of the active sessions? My goal is to make sure a user's access infor

[PHP] reading files through ssl protocal

2003-09-23 Thread Chris Edwards
Hi Trying to read a file via ssl. It seems to read the file ok. The content is correct. But I get this when using the https protocol. Warning: fgets(): SSL: fatal protocol error or Warning: fread(): SSL: fatal protocol error When I use regular http, I do not get the warning. Anyone observed

[PHP] How can I auto upload a file to the server?

2003-09-23 Thread jane
I have a .txt file on my local Windows 2000 box that i want uploaded to a remote L.A.M.P. server with only one click. I want to have a link (shortcut) on my desktop when clicked it launches a web browser loaded with a remote .php script that automatically goes into C:\data\upload_me.txt and upload

[PHP] One PHP vs. Two Apaches (Wrong Content-type header .. )

2003-09-23 Thread Jan Vitek
Hello, I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine, until I decided that I will install one more Apache. I installed the second apache (again Apache 2.0.47 and PHP 4.3.3) and configured it in a same way as the first apache, only the port (directive Listen) w

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote: : On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: : > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : > : : > : Robert Cummings said: : > : > : > : > foreach( $data as $key => $value ) : >

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: > : > : Robert Cummings said: > : > > : > foreach( $data as $key => $value ) > : > : I don't use that syntax much so I'm not familiar with it. Maybe I shoul

[PHP] Php returns wrong content-type (one php, two apaches)

2003-09-23 Thread Jan Vitek
Hello, I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine, until I decided that I will install one more Apache. I installed the second apache (again Apache 2.0.47 and PHP 4.3.3) and configured it in a same way as the first apache, only the port (directive Listen

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : Robert Cummings said: : > : > foreach( $data as $key => $value ) : : I don't use that syntax much so I'm not familiar with it. Maybe I should : start eh? Another caveat: it works on a *copy* of the ar

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Jason Wong
On Thursday 25 September 2003 04:22, Martin Raychev wrote: > I am kind of newbie coming from ASP and I came upon some hindrances, which > could be because of not knowing enough of PHP > > The problem is: > I am trying to make a form with good and user-friendly validation. After > failure to valida

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Robert Cummings
On Wed, 2003-09-24 at 16:22, Martin Raychev wrote: > Hi! > > I am kind of newbie coming from ASP and I came upon some hindrances, which > could be because of not knowing enough of PHP > > The problem is: > I am trying to make a form with good and user-friendly validation. After > failure to valid

RE: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Javier Muniz
Hi Martin, When they say at the top of the page before anything else, they mean before any other output. Just make sure that you don't have any HTML/text before the header("Location: ...") that's outside of your 's, and that you don't echo anything before your header call. -Javier -Origin

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:06, Pete James wrote: > Of course, you could do it in a much more cryptic way... just for fun. > AKA Perl style ;) -- .. | InterJinn Application Framework - http://www.interjinn.com | :-

Re: [PHP] help with arrays

2003-09-23 Thread Pete James
Of course, you could do it in a much more cryptic way... just for fun. :-) INPUT: $a = array( '0' => 'j', 'fname' => 'j', '1' => 'j', 'lname' => 'j', '2' => 'jj', 'state' => '', '3' => '[EMAIL PROTECTED]', 'ema

[PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Martin Raychev
Hi! I am kind of newbie coming from ASP and I came upon some hindrances, which could be because of not knowing enough of PHP The problem is: I am trying to make a form with good and user-friendly validation. After failure to validate properly some of the fields and going to another page i.e. the

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Dan Anderson
> If you find a good public free resource which is > frequently updated (as it would need to be as the Internet is always > changing) then please let me know. I have been unable to find something > and have looked on multiple occasions. Please let me know too. I think that the resources

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Robert Cummings on Tuesday, September 23, 2003 1:43 PM said: > It doesn't get much simpler :) Doh!! > foreach( $data as $key => $value ) I don't use that syntax much so I'm not familiar with it. Maybe I should start eh? Thanks, Chris. -- PHP General Mailing Lis

Re: [PHP] Running system commands

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 16:34, Mike Migurski wrote: > >I was wondering, if anyone can help me with running system commands from > >within php. Actually I have a script which deletes users from my database > >(which is of course MySQL), now I want to delete those users from system > >level also, as th

Re: [PHP] date conflict with old news archive

2003-09-23 Thread PAUL FERRIE
Cheers your a star :) "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote: > : > : God i hope this is simple :) > > It is. I think. :-) > > : I have news bloggs section on my site. At present the news is load

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
It doesn't get much simpler :) foreach( $data as $key => $value ) { if( $value == '' ) { $data[$key] = ' ' } } Cheers, Rob. On Tue, 2003-09-23 at 16:38, Chris W. Parker wrote: > Hey people. > > I've got an array like this: > > > [0] => Array > ( > [

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 23, 2003 1:38 PM said: > Someone have a clue? Hmm... maybe www.php.net/array_keys will help me out here. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Hey people. I've got an array like this: [0] => Array ( [0] => j [fname] => j [1] => j [lname] => j [2] => jj [state] => jj [3] => [EMAIL PROTECTED] [email] => [EMAIL PROTECTED]

Re: [PHP] Running system commands

2003-09-23 Thread Mike Migurski
>I was wondering, if anyone can help me with running system commands from >within php. Actually I have a script which deletes users from my database >(which is of course MySQL), now I want to delete those users from system >level also, as they are authenticated users of my OS also. > >Now, the prob

Re: [PHP] date conflict with old news archive

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote: : : God i hope this is simple :) It is. I think. :-) : I have news bloggs section on my site. At present the news is loaded in : from a txt file, most of the site is now running with most sections being : loaded via mysqldb's.

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Jeremy Johnstone
I doubt you will find such a thing. The closest you will probably find is doing it in a two step approach: IP Address to approx Lat/Long Lat/Long to Zipcode The second database is easy to find, the first one you usually have to pay money for. If you find a good public free resource whi

[PHP] date conflict with old news archive

2003-09-23 Thread \[ PAUL FERRIE \]
God i hope this is simple :) I have news bloggs section on my site. At present the news is loaded in from a txt file, most of the site is now running with most sections being loaded via mysqldb's. I would like to add the old entries to the new db that i have setup for the bloggs. My problem is co

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread CPT John W. Holmes
From: "Roger Spears" <[EMAIL PROTECTED]> > 1) How can I prevent the use of the browser "back" button after someone > logs out? You don't. You never prevent the use of the back button. When someone logs in, then a session should be started with some content, like you've already mentioned. So, thou

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
Who did I say was incompetent? I don't think I said that. Maybe you took it that way, but that I did not say. I never said that I was better at writing code then anybody else, as a matter a fact I get stumped on many things. I love this list because without having to ask any questions, all my qu

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
you can create so-called assistants... You can create a loop that asks in a table how many rows and columns do you want in that table. Then you can have it create the table with all your favorite default table settings, but while it is generating it, you could have it prompt you for any additiona

Re: [PHP] javascript open window and a PHP script...

2003-09-23 Thread jsWalter
That's it! It works like a charm! Thank you very, very much! Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Joe Harman
Is there a CSV file out there for this Does anyone know where I can aquire a file that has IP address with the corresponding Postal Code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Document Management App

2003-09-23 Thread Jay Blanchard
Howdy & Good Afternoon! I am about to run off to a project's development group meeting (the general audience kind, requestors and developers) and this question came up this morning for a potential answer in this afternoon's meeting. I have googled, searched, poked and prodded...but I need to see i

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Jay Blanchard
[snip] So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee implementation; } function position() { // code for BoardMember implementation; } } And if I only i

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
So does this mean that I can then do: Class BusyBoardMember implements Employee, BoardMember { function position() { // code for Employee implementation; } function position() { // code for BoardMember implementation; } } And if I only implemen

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote: > What I meant was not the implementation, what I meant was that there was no > way for the compiler/parser to know whether I was implementing position() > from the Employee interface or the BoardMember interface, the declaration > was ambiguous. I

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Ryan A > on Tuesday, September 23, 2003 11:10 AM said: > > > O holy genius coder, we bow to you, forgive uswhy did we take the > > straight and easy path instead of the rough and true path... > > Because we

RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Chris W. Parker
Ryan A on Tuesday, September 23, 2003 11:10 AM said: > O holy genius coder, we bow to you, forgive uswhy did we take the > straight and easy path instead of the rough and true path... Because we are not ereet. -- PHP General Mailing List (http://www.php.net

Re: [PHP] preg_match_all

2003-09-23 Thread Curt Zirzow
* Thus wrote Floris ([EMAIL PROTECTED]): > hi, > I have this piece of code. but the problem is that he also links parts of > words (like: credits) and i wnat only standalone words (like: edit) > Does someone have i idea to correct this piece of code? > > Floris > > { > $regex1 = ">[^<]*("; > $reg

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Ryan A
> It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. O holy genius coder, we bow to you, forgive uswhy did we take the straight and easy path instead of the rough and true path... -Ryan -- PHP General Mailing List (http://www.php.net/) T

[PHP] preg_match_all

2003-09-23 Thread Floris
hi, I have this piece of code. but the problem is that he also links parts of words (like: credits) and i wnat only standalone words (like: edit) Does someone have i idea to correct this piece of code? Floris -

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
What I meant was not the implementation, what I meant was that there was no way for the compiler/parser to know whether I was implementing position() from the Employee interface or the BoardMember interface, the declaration was ambiguous. If I implement the function there, then (from what I can te

RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jay Blanchard
[snip] > It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. Does that mean php shouldn't have any error reporting whatsoever, because it encourages bad incompetent coders who rely on being mollycoddled? [/snip] Mollycoddled indeed! I remember when

Re: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jason Wong
On Wednesday 24 September 2003 00:56, Jim Lucas wrote: > I like NoteTab from www.notetab.com > > It doesn't do syntax highlighting, but if you need that, then you need to > learn to code better. Does that mean php shouldn't have any error reporting whatsoever, because it encourages bad incompete

Re: [PHP] GD problem

2003-09-23 Thread Andrew Brampton
ImagePNG() ouputs to the browser unless you specify the filename parameter So those funny symbols you are seeing is the PNG file but displayed as text. To fix this you need to add a Header("Content-type: image/png"); somewhere in your PHP (preferably before ImagePNG), and it will tell your browse

RE: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Chris W. Parker
Jim Lucas on Tuesday, September 23, 2003 9:56 AM said: > Plus, one added feature is, is that it will allow you to do internal > scripting. What are you able to do with "internal scripting"? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] GD problem

2003-09-23 Thread Pete James
You're outputting a blank PNG image, in binary form. In order to display it (not that you'd see anything since it's blank), you need to output a Content-Type header first, like so: header("Content-Type: image/png"); THis will instruct the browser to treat the incoming data as image data. HTH.

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread Jim Lucas
I like NoteTab from www.notetab.com It doesn't do syntax highlighting, but if you need that, then you need to learn to code better. And best of all, there is a free version that does most everything the full priced copy does. Plus, one added feature is, is that it will allow you to do internal s

[PHP] XQL module ?

2003-09-23 Thread Gal
Does anyone know if PHP has module for XQL - XML Queary Language ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GD problem

2003-09-23 Thread Ignacio Correa
Hi, I´m new in PHP+GD. I have install all library (PHP4-gd2, libgd2, etc, etc, etc.) and when I use gd functions no errors or warning are displayed, but when I use imagepng() or imagejpeg() no images are displayed in my browser, and in this place extrage symbols are displayed. You can see my bad

RE: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Jay Blanchard
[snip] 1) How can I prevent the use of the browser "back" button after someone logs out? [/snip] Set a cookie on login, unset the cookie on logout. Check for cookie, if it doesn't exist display login mechanism. [snip] 2) If, after a user has attained step 3, they use their back button to change

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Roger Spears
Sorry Didier, your suggestion did not solve the problem. I appreciate the information though! I'm still having the "back" button problem in the middle of using the script. Thanks, Roger Didier McGillis wrote: http://www.php.net/manual/en/function.header.php // always modified header("Last-M

Re: RE: [PHP] PHP Editor - which to use?

2003-09-23 Thread jeffrey pearson
I like to use Edit Plus. www.editplus.com It has the syntax highlighting for php, perl, java, and many others through modules that are downloadable from their web site, DOESNT change code like dreamweaver does and its cheap ($25). Jeff Pearson - Original Message - From: "Ruessel, Jan"

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Didier McGillis
http://www.php.net/manual/en/function.header.php // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-ca

  1   2   >