RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Ken
At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote: $t = preg_replace('/\s+/',' ',$text); One more thing: How do I replace with newline instead of a space? I read through the manuals but couldn't grasp how to do this. \n didn't cut it. And, more advanced - The above replaces any groups of 2 or

[PHP] htpasswd file management from php

2001-12-06 Thread Kelly Benbow
Is it possible for users to change passwords from htaccess files in php? I do not want to use the database or sessions for account management as I already have 40 or so htaccess accounts set up for different areas. Thanks.

[PHP] Email-based PHP-Script

2001-12-06 Thread J.Mueller, pro.vider.de GmbH
Hello, does anybody know of any documentation how to write scripts that do interact with emails (Majordomo-like), i.e. when an email comes to [EMAIL PROTECTED] that a script is starting which reads the email and completes tasks which are defined within the email? We are using PHP4,

[PHP]Checking for expired sessions

2001-12-06 Thread By Proxy
Hi Is there any way to get a list of all active sessions in apache using PHP? Thanks Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] Re: Email-based PHP-Script

2001-12-06 Thread Manuel Lemos
Hello, Pro.Vider.De Gmbh J.Mueller wrote: Hello, does anybody know of any documentation how to write scripts that do interact with emails (Majordomo-like), i.e. when an email comes to [EMAIL PROTECTED] that a script is starting which reads the email and completes tasks

[PHP] testing if mailaccount is existent

2001-12-06 Thread Oliver-B Kueppers
hi all, does anyone know if there is a possibilty to check if a mailadress is existent, without sending a testemail? thanks for your help Mit freundlichen Grüßen, Oliver Küppers CIB - Firmenkunden Deutschland Marketing und Vertrieb Deutsche Bank AG (Zentrale) phone : +49 (69) 910 - 34723

[PHP] newbie: which packages are needed?

2001-12-06 Thread josep
Which packages do I need to set a web server with PHP and MYSQL support? I guess: apache server php4 apache module mysql module for php4 Josep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] please don't flame : it's an editor-question

2001-12-06 Thread Sebastian Stadtlich
Hi I use PHPed for ages now, since it has one feature that i definitely need : if i have used the variable $fooBar somewhere in a script, then i just have to type '$fo' and the editor shows me all valiables that start with '$fo' and i just have to hit Enter to use it. I know of pleanty editors

[PHP] How to change Return-path and sender address

2001-12-06 Thread sanjay
Hi I have a script which sends email from the web. The problem is the header of the message contains Return-path and Sender email address as the [EMAIL PROTECTED] So, can some one help how can I set Return-path and Sender address as From Address? Regards Sanjay Return-path: [EMAIL

Re: [PHP] How to change Return-path and sender address

2001-12-06 Thread Bart Frackiewicz
Hi Sanjay, you can add extra headers in the mail command. example from php.net: mail([EMAIL PROTECTED], the subject, $message, From: webmaster@$SERVER_NAME\r\n .Reply-To: webmaster@$SERVER_NAME\r\n .X-Mailer: PHP/ . phpversion()); Bart -Ursprüngliche Nachricht- Von:

[PHP] problem with dba with postgres connections

2001-12-06 Thread GB Clark II
Hello, I seem to have ran into a problem. If I try to use the dba functions when I've got an active postgres handle the dba funtions will return: Warning: Unable to find DBA identifier 1 in /www/sites/Test/htdocs/dbafuncs.php on line 31 If I comment out the call to pg_connect all of the dba

Re: [PHP] How to change Return-path and sender address

2001-12-06 Thread sanjay
I tried this before posting to the list. it didn't worked for me. sanjay - Original Message - From: Bart Frackiewicz [EMAIL PROTECTED] To: sanjay [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 4:00 PM Subject: Re: [PHP] How to change Return-path and sender

php-general Digest 6 Dec 2001 10:49:17 -0000 Issue 1036

2001-12-06 Thread php-general-digest-help
php-general Digest 6 Dec 2001 10:49:17 - Issue 1036 Topics (messages 76793 through 76851): URGENT: IIS doesn't like GET or POST 76793 by: Ron Newman Pulling data out of a domain name 76794 by: rdkurth.starband.net 76795 by: Brian Clark 76800 by:

[PHP] Storing Img Binary in MySQL

2001-12-06 Thread phantom
I want to store the image binary data in a MySQL Blob field. So I created a simple form that prompted the client for an image file that would be uploaded to the server. The server takes the file and gets the following data, assuming ImgFile is the name of the uploaded image. $ImgTitle =

Re: [PHP] Email-based PHP-Script

2001-12-06 Thread Jon Farmer
does anybody know of any documentation how to write scripts that do interact with emails (Majordomo-like), i.e. when an email comes to [EMAIL PROTECTED] that a script is starting which reads the email and completes tasks which are defined within the email? Compile PHP as a binary and

[PHP] HELP XML XML XML HELP

2001-12-06 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : DOCTYPE= orderID=xyz amount=1234 currency=BEF How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Access denied for user

2001-12-06 Thread Daniel Masur
you didnt entered the correct pasword for the mysql database Josep [EMAIL PROTECTED] schrieb im Newsbeitrag 000501c17e48$3d5acaf0$[EMAIL PROTECTED]">news:000501c17e48$3d5acaf0$[EMAIL PROTECTED]... I get the following message when trying to view a php page Warning: Access denied for user:

[PHP] Re: HELP XML XML XML HELP

2001-12-06 Thread Peter Clarke
yes, echo the xml but send a header telling the browser it's xml: header(Content-Type: text/xml); Olivier Masudi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and

[PHP] Re: URGENT: IIS doesn't like GET or POST

2001-12-06 Thread Peter Clarke
Check 'register_globals' in php.ini It sounds like it's off which is much more secure Instead of getting: $var you'll have: $HTTP_GET_VARS['var'] It stops people sending any variables in the script. Peter Ron Newman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Xml Parse Extended Chars

2001-12-06 Thread Peter Clarke
The only predefine entities in XML are lt; gt; amp; all others need to be defined in the dtd. Best thing to do is leave the charatef as is in the xml and only run htmlentites on the contents when sending the contents to an html web browser. The xml will happily hold the character as it is. If

[PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic
I can't afford 299$ for an Texteditor,so : Does anyone know of a free/cheap Edtor that has this feature? On windows - PHPEdit (maybe even PHPCoder). On linux - I, too would like to know, mabe emacs?. Roko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Andrey Hristov
Search the list. I remember that someone posted a link from php.net where a putted several links which points to the home pages of editors(Linux+Windows). Regards, Andrey Hristov - Original Message - From: Roko Roic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06,

[PHP] encryption

2001-12-06 Thread Justin French
Hi, Can someone give me a brief over view of how to encrypt a password and store it in a MySQL DB, then be able to validate thier plain text password on login against the encrypted one on the DB? I'm guessing I: 1. encrypt the desired password with some sort of key (eg blahblah) which is

Re: [PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Attila Strauss
hi http://www.itworks.demon.co.uk/phpeditors.htm best regards attila strauss I can't afford 299$ for an Texteditor,so : Does anyone know of a free/cheap Edtor that has this feature? On windows - PHPEdit (maybe even PHPCoder). On linux - I, too would like to know, mabe emacs?.

RE: [PHP] encryption

2001-12-06 Thread Richard Black
MySQL has a PASSWORD() function which encrypts passwords for you!!! Retrieving the user records using the username and encrypted password as selection criteria will either bring back the appropriate record (ie the log in worked) or no record (ie password/username supplied were incorrect) HTH

[PHP] How to use gd/php with no freetype?

2001-12-06 Thread Joelmon2001
Hello and thanks for your time. After endless searching, I am still lost let's just assume I can't install freetype, and it looks like that for matters I won't get into. (linux, raq 3) What solution would allow me to specify fonts for text written into images? Instead of using the default

[PHP] Re: Newbie question on Tutorials?

2001-12-06 Thread The Big Roach
Bunch of them! Check php.net's links and sift through those. Web Monkey has a good primer on PHP MySQL. Geoff E [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Okay, probably been asked zillions of times already, but I couldn't find reference to it in the last

Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread The Big Roach
Chris, I'm a bit lost... what exactly is your question? Chris Cocuzzo [EMAIL PROTECTED] wrote in message 010e01c17e0d$d28e72b0$ae687780@webs224">news:010e01c17e0d$d28e72b0$ae687780@webs224... hey- I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to getting this installed

Re: [PHP] encryption

2001-12-06 Thread Andrey Hristov
UPDATE members set passwd=PASSWORD(passwd); select login from members where PASSWORD($form_pass)=passwd; Regards, Adnrey Hristov - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 2:32 PM Subject: [PHP] encryption

Re: [PHP] How to use gd/php with no freetype?

2001-12-06 Thread Sebastian Wenleder
Hello and thanks for your time. After endless searching, I am still lost let's just assume I can't install freetype, and it looks like that for matters I won't get into. (linux, raq 3) What solution would allow me to specify fonts for text written into images? Instead of using the default

[PHP] Image Resampling

2001-12-06 Thread Sondra Russell
Dear Friends, I'm working on a tool where my dear user can upload a large jpg for use with a store. The tool would upload the jpeg, resample (as opposed to resize - image quality is appalling on that!) it to thumbnail, and then be done with the whole thing and go smoke a cigarette. Sounds

[PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Billy Harvey
then i just have to type '$fo' and the editor shows me all valiables that start with '$fo' Sebastian On linux - I, too would like to know, mabe emacs?. Roko http://www.itworks.demon.co.uk/phpeditors.htm attila strauss At http://sourceforge.net/projects/php-mode/ is a php-mode.el that

Re: [PHP] Mass Mailing

2001-12-06 Thread Michael Cronström
I have now located a simple HOW-TO and scripts in a zip at: http://www.zoon.se/mailing/index.htm Good luck! Michael Cronström Web Inventor At 00:33 06/12/01, you wrote: Perhaps I misunderstood. Are you making scripts available? If so, I'm interested in taking a look. If not, apologies for

Re: [PHP] Re: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic
Attila Strauss [EMAIL PROTECTED] wrote in message 003301c17e52$69c94260$[EMAIL PROTECTED]">news:003301c17e52$69c94260$[EMAIL PROTECTED]... hi http://www.itworks.demon.co.uk/phpeditors.htm This list does not contain the best among Windows editors: PHPEdit, PHPCoder (Maguma PHP4EE studio),

Re: [PHP] testing if mailaccount is existent

2001-12-06 Thread Brian Clark
* Oliver-B Kueppers [EMAIL PROTECTED] [Dec 06. 2001 04:38]: hi all, does anyone know if there is a possibilty to check if a mailadress is existent, without sending a testemail? thanks for your help Class that may be used to determine if a given e-mail address is valid. It features: -

Re: [PHP] newbie: which packages are needed?

2001-12-06 Thread Brian Clark
* josep [EMAIL PROTECTED] [Dec 06. 2001 04:50]: Which packages do I need to set a web server with PHP and MYSQL support? I guess: apache server php4 apache module mysql module for php4 Operating System? Windows: Apache+PHP4 (as a module): http://www.php4win.com/

Re: [PHP] encryption

2001-12-06 Thread Brian Clark
* Justin French [EMAIL PROTECTED] [Dec 06. 2001 07:33]: Can someone give me a brief over view of how to encrypt a password and store it in a MySQL DB, then be able to validate thier plain text password on login against the encrypted one on the DB? An alternative is to just store an Md5 of

[PHP] Re: remote directorylisting

2001-12-06 Thread Håkon Grønning
Thanks! Thanks for your answer. It was like I thought. I have to write my own parse code. Håkon (Hakon) Well, This is not really possible, unless the server itself allows you to do the listing. One way and after the last condition you can use fopen(sever.com/dir_to_list/) then fread() it

Re: [PHP] Image Resampling

2001-12-06 Thread Anthony Washington
Dear Sondra, So, I would suggest you to change your webhosting company. :o) Anthony Washington ([EMAIL PROTECTED]) http://www.shell42.com http://www.comwebhosting.com On Thu, 6 Dec 2001, Sondra Russell wrote: Dear Friends, I'm working on a

[PHP] Checking Checkboxes using Arrays

2001-12-06 Thread Jordan Elver
Hi, This is doing my head in. I'm printing out a lot of countires from a db and i want to select the countries (check their checkboxes) if they are equal to a particular country variable I have set or if they appear in an array. My code is: $european_union = array('24', '17',

Re: [PHP] parse error when requiring

2001-12-06 Thread Andrew Forgue
Maybe you could give a little more info on what the parse error actually says? On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote: I have a question about require... I have a session_start() on top of every page and an if-else construction. ? session_start() if ($SessieEIA-Login ==

Re: [PHP] Checking Checkboxes using Arrays

2001-12-06 Thread jimtronic
I'm sorry, your message doesn't make sense... First you say that you want to do what the script is doing, and then you say you don't want it to do that. i want to select the countries (check their checkboxes) if they are equal to a particular country variable I have set or if they appear in an

[PHP] Multilingual application

2001-12-06 Thread Alexander Skwar
Hi! I've got to develop a multilingual application. What's the best approach to have the app multilingual? Should I use gettext, or are there any better ways to do this? Thanks, Alexander Skwar -- Wohnung in Gelsenkirchen und Umgebung gesucht!

Re: [PHP] encryption

2001-12-06 Thread Valter Santos
I agree... MD5 is the best way to store passwords... you only store the md5 hash of the actual password, then when the user logins you have to compare the stored hash with the md5 hash of password the user uses to login! cheers, Valter Santos - Original Message - From: Brian

Re: [PHP] encryption

2001-12-06 Thread Tyler Longren
I don't know if this was mentioned but you can do it all in MySQL with the password() function. Ex: INSERT INTO users (username,password) VALUES ('tyler',PASSWORD('testpass')); Also: SELECT * FROM users WHERE username='$username' AND password=PASSWORD('testpass'); Good luck, Tyler Longren

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on line 10 It's strange that line number 10 doesn't exist! Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon:

Re: [PHP] parse error when requiring

2001-12-06 Thread Jon Farmer
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on line 10 It's strange that line number 10 doesn't exist! Do you have an include statement in sessionstart.php? -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key

[PHP] Re: Multilingual application

2001-12-06 Thread Julio Nobrega Trabalhando
I am using an approach similar to this: $language_file = 'english'; include 'dir/to/languages/'.$language_file.'.inc.php'; on english.inc.php ?php // Errors section: $lang['errors']['form']['empty_password'] = 'Please fill the password'; // Miscellanious section:

RE: [PHP] parse error when requiring

2001-12-06 Thread Johnson, Kirk
There is a semi-colon missing on the session_start() line. PHP can't pin down the exact line number of an error where the error is a missing terminator. Kirk -Original Message- From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 8:44 AM To: 'Andrew

RE: [PHP] parse error when requiring

2001-12-06 Thread jimtronic
You forgot the semicolon (;) after session_start() This works fine, but now i made the files sessionstart.php and bottom.php sessionstart.php -- ? session_start() if ($SessieEIA-Login == 1) { ? bottom.php -- ? } else {

Re: [PHP] Checking Checkboxes using Arrays

2001-12-06 Thread jimtronic
When you perform the test you want to know if the $id is the user's choice and if the user's choice is in the array. Your code reads differently. You are checking to see if $id is the user's choice OR $id is in the array. which would always check the countries in the array.

Re: [PHP] SMS

2001-12-06 Thread Daniel Berwig
It works with a virtual phone in the site, but I can't try sending SMS berfore buying it (U$ 400.00). I won't buy a product before being sure it works. Does anyone know another method to do it? Tnx. Dan McCullough [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Heres a

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
using \n as your replacement text will do ithowever, if you want a newline in the html, then you'll want br... and as far as the advanced replace, make an array of search patterns, in this case two. your first pattern will be /[ ]+\n+[ ]+/ with a replacement of a single newline...then the

[PHP] dynamic maps

2001-12-06 Thread Rocky Dean Pulley
I need to have a map to a map of classes, is this possible using PHP? For example, in C++, I can do this: mapstring, mapstring, MyClass m_strMap; === Rocky Dean Pulley Senior Technologist CorTechs, Inc. [EMAIL PROTECTED] 703-968-7021 x108 -- Quidquid latine dictum

[PHP] ImageCopy() not working

2001-12-06 Thread geoff catlin
I created a function (appears below) that crops a JPG and outputs it on the fly. However Apache crashes when I use the function. Unfortunately, Apache does not put an error message in the logs. I'm running it on a Windows2000 machine with Apache 1.3.20 and PHP 4.0.6 (installed via EasyPHP

[PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Christoph Starkmann
Hi everybody! I wrote a script just to do some local replacement stuff here on my own machine. Is there any way to change the maximum execution time of PHP which seems to be restricted to 30 seconds Would be great if you could give me a hint on how to change this... Thanx alot, Kiko

Re: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Andrey Hristov
set_time_limit(0); // no limit set_time_limit(60); // 60 seconds Regards, Andrey - Original Message - From: Christoph Starkmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 7:09 PM Subject: [PHP] Maximum execution time of 30 seconds exceeded Hi

Re: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Jon Farmer
I wrote a script just to do some local replacement stuff here on my own machine. Is there any way to change the maximum execution time of PHP which seems to be restricted to 30 seconds Would be great if you could give me a hint on how to change this...

RE: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Richard Black
The timeout is set in php.ini -Original Message- From: Christoph Starkmann [SMTP:[EMAIL PROTECTED]] Sent: 06 December 2001 17:09 To: [EMAIL PROTECTED] Subject:[PHP] Maximum execution time of 30 seconds exceeded Hi everybody! I wrote a script just to do some local

[PHP] PHP SSL credit card transaction

2001-12-06 Thread Daniel Guerrier
Can some give me a brief synopsis or direct me to some information on how to create an ecommerce site using php. My main question is in the area of performing a secure credit card transaction. Do I need to use a third party shopping or can I create my own, if I create my own how do I integrate

Re: [PHP] PHP SSL credit card transaction

2001-12-06 Thread Chris Allen
http://www.openecho.com/php/echophp-1.4.tar.gz I used this package, which requires cURL and for you to have setup a merchant account. Was really easy! As far as SSL jsut make sure you are serving the pages in SSL (https) and all is fine. You can home roll your on shopping cart like I did or

Re: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Jon Farmer
The timeout is set in php.ini Only change it in php.ini if you want it to be serverwide. For a specific script use set_time_linit(). Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key

[PHP] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread Robin McKenzie
Could anyone tell me if there is a PHP equivalent to: SELECT x CASE 1 to 5 {...} CASE ELSE {...} END SELECT Muchos gracias. Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread jimtronic
switch {} will do it. http://www.php.net/manual/en/control-structures.switch.php Could anyone tell me if there is a PHP equivalent to: SELECT x CASE 1 to 5 {...} CASE ELSE {...} END SELECT Muchos gracias. Robin -- PHP General Mailing List (http://www.php.net/)

[PHP] PHP Forms and String Limitations

2001-12-06 Thread Jeremy Reed
I've set up a news database with a PHP front-end and am using MS SQL Server. The news table is set up correctly with the pertinent field being of type 'text' which, according to documentation, should support well over 10 megs of text data. This is the problem: The user tries to submit a news

[PHP] forms PHP

2001-12-06 Thread sgibbs
I think I'm making this harder or more confusing than it really needs to be. I have a form that is spread out over four pages. I want to be able to give the user the opportunity to return to page 1 from page 3, for example, by providing a regular link on page 3 to return to page1. When they

Re: [PHP] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread py
switch( $x ){ case 1: case 2: case 3: case 4: case 5: {...} break; default: {...} break; } py At 05:38 PM 12/6/01 +, Robin McKenzie wrote: Could anyone tell me if there is a PHP equivalent to: SELECT x CASE 1 to 5 {...} CASE ELSE

Re: [PHP] forms PHP

2001-12-06 Thread Richard S. Crawford
I've done something similar like this: a href=javascript:window.back() Click here to go back /a In the situations in which I've used it, the form data from the previous page is still in the form fields. Potential downsides of this approach: the data has not yet been processed.

[PHP] Re: forms PHP

2001-12-06 Thread Julio Nobrega Trabalhando
Session would be the easiest thing to use. You could also 'pre-store' the info on a database and retrive it depending at what page users are visiting. -- Julio Nobrega Don't eat the yellow snow. [EMAIL PROTECTED] wrote in message

[PHP] Using HEADER to redirect

2001-12-06 Thread Don
Hi, I have a PHP script that uses the following code to redirect to a page of the user's choice: header(Location: http://www.mypage.net/;); In examples of this type of coding in various scriots, the above line is always followed by the statement: exit; I am wondering why. When executing

[PHP] Newbie PHP/MySQL Question

2001-12-06 Thread Peter van der Maas
Ok, Im' pretty new at this, but I can't see what may be wrong here: Table IMT - User (char) SessionID (char) StartTime(TIMESTAMP) EndTime(TIMESTAMP) Code on first page: INSERT INTO IMT VALUES ('testuser', '$id', CURRENT_TIMESTAMP, '/0'); Code on second page: UPDATE IMT SET

Re: [PHP] Using HEADER to redirect

2001-12-06 Thread Mike Eheler
More than likely not. Putting an exit statement after a header redirect is just good practice and ensures that nothing gets executed after redirecting. Mike Don wrote: Hi, I have a PHP script that uses the following code to redirect to a page of the user's choice: header(Location:

Re: [PHP] forms PHP

2001-12-06 Thread Dan McCullough
In some browsers that is what will happen on a form, is that will process the infromation twice. --- Richard S. Crawford [EMAIL PROTECTED] wrote: I've done something similar like this: a href=javascript:window.back() Click here to go back /a In the situations in which I've used

Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Cocuzzo
my apologies. my question is, how do i solve the problem of having the source show up in my browser when i call a php page based on the information i provided, or didn't provide that I should've modified in the .conf file chris - Original Message - From: The Big Roach [EMAIL PROTECTED]

[PHP] PHP Installed in CGI for IIS 5(microsoft)

2001-12-06 Thread pong-TC
Hello All Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5? Is it running good? I mean you got a full capability as PHP has, and there is no serious harm to the webserver(IIS 5). I am also using ASP. I don't know installing PHP on the system will jeopardize the ASP

[PHP] Re: Newbie PHP/MySQL Question

2001-12-06 Thread Peter van der Maas
Think i figured out my problem...next time i will RTFM!!! Sorry! Peter Van Der Maas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok, Im' pretty new at this, but I can't see what may be wrong here: Table IMT - User (char) SessionID

Re: [PHP] PHP Installed in CGI for IIS 5(microsoft)

2001-12-06 Thread Kurt Lieber
On Thursday 06 December 2001 11:23 am, pong-TC wrote: Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5? Is it running good? I mean you got a full capability as PHP has, and there is no serious harm to the webserver(IIS 5). I am also using ASP. I don't know installing PHP on

Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Sam2
Un-comment lines like this: #AddType application/x-httpd-php .php and these should be there: AddModule mod_php4.c LoadModule php4_modulelibexec/libphp4.so Unless you're using the cgi. And there might be some stuff I forgot. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
I had been under the impression that one could extend a class only once. That is, if I extend class A with class B I would then not be able to extend B again with any other class. See: http://www.php.net/manual/en/keyword.extends.php An extended class is always dependent on a single base class,

Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Allen
hmm looks right ...are you loading thru the server or are you doing a file://c/:doc_root/file.php ? heres the relevant info from my httpd.conf file on windows: ScriptAlias /php4/ C:/php/ Action application/x-httpd-php4 /php4/php.exe AddType application/x-httpd-php4 .php whats a url to check

Re: [PHP] Extending classes multiple times

2001-12-06 Thread Rasmus Lerdorf
I had been under the impression that one could extend a class only once. That is, if I extend class A with class B I would then not be able to extend B again with any other class. See: http://www.php.net/manual/en/keyword.extends.php An extended class is always dependent on a single base

[PHP] Failed to initialize session module

2001-12-06 Thread derek fong
Hello, I am trying to get session data written to a MySQL table using set_session_save_handler(), but am getting the following error when I issue session_register(varname) on a page: Fatal error: Failed to initialize session module in

Re: [PHP] Extending classes multiple times

2001-12-06 Thread Harshdeep S Jawanda
I am not very sure what your question is, but multiple inheritance means that a derived class can inherit (i.e., be derived from) more than one class. In multiple inhericance, you can have: A B | | +---+---+ | C Here, C is simultaneously derived from A

RE: [PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
This is what I had thought. I wasn't sure and needed the clarification. Thanks as always! Matt Friedman -Original Message- From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]] Sent: Thursday December 6, 2001 1:55 PM To: Matt Friedman Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] extracting info from HTML

2001-12-06 Thread Boaz Yahav
Hi Suppose I have something like this : TR ALIGN=CENTER TDBTest1-1/B/TD TDBTest1-2/B/TD TDBTest1-3/B/TD TDBTest1-4/B/TD TD colspan=5BTest1-5/B/TD /TR TR ALIGN=CENTER TDBTest2-1/B/TD TDBTest2-2/B/TD TDBTest2-3/B/TD

[PHP] Display BLOB Image

2001-12-06 Thread phantom
I have successfully placed images (jpg,gif,png) into a MySQL database BLOB field, now I want to be able to pull the data out and diplay it. based on tutorial at http://www.zdnet.com/devhead/stories/articles/0,4413,2644827,00.html after Querying the DB I have the following lines: $ImgFile =

[PHP] Function Alias: mysql()

2001-12-06 Thread Dennis Moore
I cannot seem to find in the documentation the what the function mysql() is aliaseed to using PHP4.0.6. Any ideas? Example: $rez=mysql($dbname,$query); Everything works fine... But I want to be sure what is actually being used. /dkm

[PHP] Creating multidimensional array dynamically

2001-12-06 Thread J. Roberts
I can't seem to figure out how to create a multidimensional array from a database query. Here is an example of what I was looking for, using NFL quarterbacks as a statistical foundation... A record contains the following fields: NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT Now I would like to

RE: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread Jason Lotito
Something like this? while( list( $name, $attempts, $completions, $yards, $td, $int ) = mysql_fetch_row($res) ) { $quarterbacks[$name] = array( ATTEMPTS = $attempts, COMPLETIONS = $completions,

Re: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread Dennis Moore
Not sure what you are trying to do, but try using mysql_fetch_row () you can use SQL to limit your results. /dkm - Original Message - From: J. Roberts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 4:08 PM Subject: [PHP] Creating multidimensional array

Re: [PHP] Function Alias: mysql()

2001-12-06 Thread Tyler Longren
Are you sure that isn't a custom function in your code (assuming you're using somebody else's code)? It could be an alias to: mysql_db_query() It has the same handlers, ex: $rez=mysql_db_query($dbname,$query); Tyler Longren - Original Message - From: Dennis Moore [EMAIL PROTECTED] To:

RE: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread jimtronic
you could also do this ... $data = mysql_fetch_assoc($res); //this is a nice function because it returns an associative array. so // if you change your SQL db, you wouldn't need to change your php code // as much.

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
second issue first: one call to preg_replace...if you check out php.net/preg_replace, you'll see what i mean...use arrays... and as long as you have them ordered in the right way, it'll execute them in that order, so by the time the \s replace comes up all your 'bbbnbb' will be fixed...problem

Re: [PHP] Display BLOB Image

2001-12-06 Thread Steve Cayford
This is what I used to do what you're trying: header(Content-Type: image/ . $imagetype); // $imagetype is jpeg or gif header(Content-Length: . strlen($image)); echo $image; Note that Type is capitalized in Content-Type, and include the Content-Length as well. -Steve On Thursday, December

Re: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread Mike Eheler
$result = mysql_query(select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT from players where pos = 'QB'); // or whatever it takes to get just qb's while ($data = mysql_fetch_array($result)) { foreach ($data as $key = $value) { // I've noticed that $data stores numeric and text keys, this

Re: [PHP] Creating multidimensional array dynamically

2001-12-06 Thread Mike Eheler
Oops.. my bad $quarterbacks[$data['NAME']][$key] = $value; Mike Mike Eheler wrote: $result = mysql_query(select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT from players where pos = 'QB'); // or whatever it takes to get just qb's while ($data = mysql_fetch_array($result)) { foreach ($data

Re: [PHP] Function Alias: mysql()

2001-12-06 Thread Dennis Moore
I think it is aliased to mysql_db_query(). However the documentation states that this function is deprecated in PHP4.0.6. Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead. (www.php.net documentation) My

[PHP] Strange problem with some includes...

2001-12-06 Thread Deron
I have this page: http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php If you look on the bottom, it says: Warning: Failed opening 'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for inclusion (include_path='.:/usr/local/lib/php') in

[PHP] move_uploaded_file on NT Server

2001-12-06 Thread jimtronic
Hi, I've been having a problem moving uploaded files recently. I have a script in directory /foo/bar and it has no trouble moving a file into /foo/rex but it can't move a file into /foo/zip This is strange because I created all the folders and the scripts, so presumably they would

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread jimtronic
It looks like you put a full URL into your include ... which would be incorrect. The syntax is ... include(path/relative/to/your/script); jim -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List

  1   2   >