[PHP] readfile or fopen? (Passing file to user...)

2002-03-12 Thread Jimmy Lantz
Hi, I wonder if there's a better way (more effective, less resource consuming ) to pass a file to a user than the ones I put below. This might be quite large files more than 100 mb. Mind this might be all kind of files (binary and others) and must preserve the files state. //Sending approriate

[PHP] Can anybody tell what is wrong with this file?

2002-03-12 Thread Balaji Ankem
Title: Message Hi friend, I am using the browser Netscape 4.7. It z not displaying the select box..blindly displaying in text format.. (If u want to see open example.jpg)Example.html=!DOCTYPE html public "-//w3c//dtd html 4.0

Re: [PHP] Can anybody tell what is wrong with this file?

2002-03-12 Thread Alexander Weber
Balaji Ankem wrote: It z not displaying the select box..blindly displaying in text format.. (If u want to see open example.jpg) You have to use form tags. select tags are invalid if they are not within form tags. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problems installing PHP

2002-03-12 Thread Berlina
Hi again, and thanks. Well, I will try to explain...Im trying to run PHP as a module, but you helped me to use it as a CGI. I installed NTSP 6 on my computer, and reconfigure Apache for execute PHP as a CGI. Now Apache starts so well and i can execute de PHP info() function. Good. But when I

[PHP] Re: Can anybody tell what is wrong with this file?

2002-03-12 Thread Maarten Weyn
MessageTry this html head /head body table tr td width=19% bgcolor=#DBF3DE1/td td width=15% bgcolor=#DBF3DE1/td td width=14% bgcolor=#DBF3DERaghu/td td width=19% bgcolor=#DBF3DEModem/td td width=18%

[PHP] newbie: using sessions

2002-03-12 Thread Maarten Weyn
Hi i can't get the session variables working. When I get something like $_SESSION['Login']=$HTTP_POST_VARS['login']; on the first page, and i go with a link to an other php page. When then try to get $_SESSION['Login'] again it is empty. How comes? Maarten Weyn -- PHP General Mailing List

[PHP] deleting records in mysql

2002-03-12 Thread Michael P. Carel
Hi to all, just want to ask why does the records in the table field sometimes failed to delete in using an interface such as using a delete mysql queries in PHP or even in a WEBMIN mysql gui interface. When it happens i need to manual delete the records using a command line. is there any bug in

Re: [PHP] newbie: using sessions

2002-03-12 Thread Faisal Abdullah
Have you started session? And you have to register session variables as well. Try this: session_start(); $session_login = $HTTP_POST_VARS['login']; session_register(session_login); At the other page, where you want to output the variable, you must also start session. session_start(); echo

Re: [PHP] Re: Variables within a string

2002-03-12 Thread Jason Wong
On Tuesday 12 March 2002 12:27, Analysis Solutions wrote: For security reasons. To make sure the variable did come from POSTing a form and not from the URL. Neither is more or less secure. The source of the data doesn't matter. The source of the data *does* matter. That is why the

Re: [PHP] deleting records in mysql

2002-03-12 Thread Faisal Abdullah
The web interfaces probably failed to receive the ID of the row you wish to delete. What's the error message? Does the ID of the row you wish to delete appear in the Delete Link in the web interface? Regards, Faisal On Tuesday 12 March 2002 17:35, you wrote: Hi to all, just want to ask why

Re: [PHP] Re: Variables within a string

2002-03-12 Thread Faisal Abdullah
I love your example.. But if you don't know where the data came from then it's not secure. Consider a real-life example. Robin Hood steals the Sheriff's ATM card, and the Sheriff stupidly enough has written the PIN onto the back of the card. Now Robin can go and withdraw all the money from

[PHP] how to check session

2002-03-12 Thread Sven Jacobs
How can I check if a session is still valid or if it has been expired. I want to check that and if not valid then execute an other script. Can't be that difficult but after 2 hours in traffic jams my brain is not working anymore .

[PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Balaji Ankem
Hi, I have stored the date and time in mysql table with DATETIME type. I want to change it in to DD/MM/ HH:MM AM or PM. How can I do this? Thanks in advance Balaji **Disclaimer Information

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén
Do you want to do this in mySQL or PHP? Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 12. maaliskuuta 2002 12:30 To: 'Php-General' Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/ HH:MM AM or PM in PHP? Hi,

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Balaji Ankem
Thankyou for reply!! I want to do it in PHP. Thanks in advance Balaji -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:04 PM To: Php-General Subject: RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format

[PHP] Problem with ErrorHandler

2002-03-12 Thread S.Murali Krishna
Hi PHPzers How can I capture Error thrown by php for Non existent or undefined function. I used set_error_handler() but its returning its returning false. Anyway it gets called for NON-existent CONSTANT but not for Non-existent function. Can any one tell me what is

Re: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Jason Wong
Hi, I have stored the date and time in mysql table with DATETIME type. I want to change it in to DD/MM/ HH:MM AM or PM. How can I do this? When you select the 'datetime' field from mysql use UNIX_TIMESTAMP(). Then in PHP use strftime() to format the 'datetime'

Re: [PHP] newbie: using sessions

2002-03-12 Thread Martín Marqués
On Mar 12 Mar 2002 06:28, you wrote: Hi i can't get the session variables working. When I get something like $_SESSION['Login']=$HTTP_POST_VARS['login']; on the first page, and i go with a link to an other php page. When then try to get $_SESSION['Login'] again it is empty. How comes?

Re: [PHP] 'undef' as an argument value

2002-03-12 Thread Jordan S. Jones
function foo ($arg1_required, $arg2_options = ) { if (empty($arg2_optional) { print not passed; } else { print explicit; } } Or you can go the other route. Jordan Rodent Of Unusual Size [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén
You have to parse your dates in anyway you like best to pieces, then use mktime() and then date() function. :) Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 12. maaliskuuta 2002 12:35 To: [EMAIL PROTECTED]; 'Php-General' Subject: RE: [PHP] Hi How to

[PHP] reset auto_increment field mysql

2002-03-12 Thread Claudiu
I have a mysql table which contains an id field which is set to auto_increment. I have a script which empties this database at regular intervals. My problem is that the auto_increment field won't reset to 0 after deleting all of tha data, but continue incrementing from where it left. How can i

[PHP] Re: Can't display PNG images

2002-03-12 Thread Jordan S. Jones
The icon essentially means that it was a broken image, or that they code did not work. I know that wasn't much help. On another point, in my opinion, it doesn't make a whole lot of logical sense to have a die(Error text) statement in code that creates an image.. If an error does occur, it will

RE: [PHP] Can anybody tell what is wrong with this file?

2002-03-12 Thread Brian Drexler
MessageYou need a form before the select. Hope this helps. -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:13 AM To: 'Php-General' Subject: [PHP] Can anybody tell what is wrong with this file? H i friend, I am

RE: [PHP] Hi How to convert the mysql(DATETIME) time to the format DD/MM/YYYY HH:MM AM or PM using PHP?

2002-03-12 Thread Balaji Ankem
Hi friend, I never ued strftime function. I am confusing with the syntax. My problem is like this: I have the DATETIME in the variable $row-fromdate as -MM-DD HH:MM:SS. Is it possible to convert it to DD/MM/ HH:MM AM or PM using strftime()

[PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Jordan S. Jones
Direct quote from MySQL by Paul DuBois MySQL 3.23 introduced the new AUTO_INCREMENT behaviors of not reusing sequence numbers and allowing you to specify an initial sequence number in the CREATE TABLE statement. These behaviors are undone if you delete all records in the table using a DELETE

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Alastair Battrick
Echoing text to the screen is a very useful debugging tool when creating images from php, if you type the full location of the image script in the address bar, rather than specifying it as an image that is opened by a html page. If you do this Teresa, you should get the PHP error message, and if

[PHP] htmlspecial chars does not work on server

2002-03-12 Thread Martijn Damen
Hi, I just uploaded the perfect working site to the server, but suddenly htmlspecialchars does not seem te work there, so a lot of errors if people put entries with and ' in the guestbook. The server is a cobalt raq server, build with: './configure' '--prefix=/usr'

[PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
Hey all, I am, and have been for some time, in search of a PHP IDE that allows me to view things more on a project basis. Meaning, that I would like to have some sort of Class browsing capabilities along with file browsing capabilities. I am also looking for a decent freeware Texteditor/Web

Re: [PHP] PHP IDE

2002-03-12 Thread Andrey Hristov
on gtk.php.net there is a link to PHPMole. Built with PHP requires GTK. Not sure but I think that there is gtk lib for OSX since it is BSD. Best reagrds, Andrey Hristov - Original Message - From: Jordan S. Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:23

Re: [PHP] PHP IDE

2002-03-12 Thread Jordan S. Jones
Sweet.. Thanks.. Andrey Hristov [EMAIL PROTECTED] wrote in message 047801c1c9c1$ae7ec820$0b01a8c0@ANDreY">news:047801c1c9c1$ae7ec820$0b01a8c0@ANDreY... on gtk.php.net there is a link to PHPMole. Built with PHP requires GTK. Not sure but I think that there is gtk lib for OSX since it is BSD.

[PHP] Hi How to compare two dates using PHP which are from mysql database?

2002-03-12 Thread Balaji Ankem
Hi, I would like to compare the two dates (including time stamp) using php. Is it possible? Any help would be apprciable. Thanks in advance Balaji **Disclaimer Information contained in this E-MAIL

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Balaji Ankem wrote: http://www.php.net/manual/en/function.strtotime.php you can compare the results with =, etc... Hi, I would like to compare the two dates (including time stamp) using php. Is it possible? Any help would be apprciable. Thanks

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Rick Emery
your query is: DELETE FROM mytable; -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 5:09 AM To: [EMAIL PROTECTED] Subject: [PHP] reset auto_increment field mysql I have a mysql table which contains an id field which is set to auto_increment.

[PHP] Selective seeing =)

2002-03-12 Thread Liam
12/03/2002 11:20:18 PM Hey all, I'm looking to write a PHP script that will cut all content out of a page and only display one line. For example, take this URL: http://www.cow.net/cows/ I want a script that will get this page, but only display the line at the bottom of the page that says: I

[PHP] Configuring PHP --with IMAP

2002-03-12 Thread Lic. Carlos A. Triana Torres
Hello all, I have never before performed a PHP installation and I would like to know if, once PHP is installed and configured, I can add some other configurations as well. I am thinking of adding IMAP to my PHP installation, but I don't know if there might be something wrong with the already

RE: [PHP] Hi How to compare two dates using PHP which are from mysql database?

2002-03-12 Thread Balaji Ankem
Hi Jan, I want to compare the DTAETIME1,DATETIME2 which are from mysql table and want to compare in PHP. But strtotime takes only one argument and it checks whether it is valid or not. Balaji -Original Message- From: Jan Rademaker [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Hi How to compare two dates using PHP which are from mysql database?

2002-03-12 Thread Jason Lotito
Why not compare them in the SQL Query itself? Jason Lotito www.newbienetwork.net - Original Message - From: Balaji Ankem [EMAIL PROTECTED] To: 'Jan Rademaker' [EMAIL PROTECTED] Cc: Php-General [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 8:37 AM Subject: RE: [PHP] Hi How to compare

Re: [PHP] Hi How to convert the mysql(DATETIME) time to the format DD/MM/YYYY HH:MM AM or PM using PHP?

2002-03-12 Thread Jason Wong
On Tuesday 12 March 2002 19:43, Balaji Ankem wrote: Hi friend, I never ued strftime function. I am confusing with the syntax. My problem is like this: I have the DATETIME in the variable $row-fromdate as -MM-DD HH:MM:SS. Is it possible to convert it to

[PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Richard Davey
Hi all, At the moment I'm doing this to escape all special regular expression characters from my regex string: $badwordtest = str_replace(/,,$badwordtest); $badwordtest = str_replace(\\,,$badwordtest); $badwordtest = str_replace(^,\^,$badwordtest); $badwordtest =

[PHP] Double free zlib bug ... does PHP need to be recompiled?

2002-03-12 Thread Michael Sims
Some of you may have heard news about the double free bug in the zlib libraries that many Linux programs use: http://www.kb.cert.org/vuls/id/368819 http://www.redhat.com/support/errata/RHSA-2002-026.html There is a quote on the Redhat errata page that got me thinking: Additionally, if you

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Andrey Hristov
In PHP 4.0.5 and later, every parameter to str_replace() can be an array.If search and replace are arrays, then str_replace() takes a value from each array and uses them to do search and replace on subject. If replace has fewer values than search, then an empty string is used for the rest of

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Richard Davey
Andrey Hristov [EMAIL PROTECTED] wrote in message 053801c1c9d0$5b4da400$0b01a8c0@ANDreY">news:053801c1c9d0$5b4da400$0b01a8c0@ANDreY... In PHP 4.0.5 and later, every parameter to str_replace() can be an array.If search and Thank you for pointing that out :) I've now changed my code from the

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Andrey Hristov
Yes they are identical. The rule is that the first and the last(excluding modificators) symbol must be identical so |abc| ~abc~ /abc/ %abc%(not sure for that) are equivalent. The docs uses // syntax because it is the most popular. Regards, Andrey Hristov - Original Message - From:

[PHP] Error Handling!

2002-03-12 Thread Thomas Edison Jr.
I want errors reported on a page when the mail() function for any reason fails to send emails. FOr example, if there is a malformed email address or anything, and the mail is not sent, how can i catch the Error and Display it on the page? Thanks, T. Edison Jr. = Rahul S. Johari (Director)

Re: [PHP] Is there a faster way to escape special characters in a regex?

2002-03-12 Thread Jason Wong
On Tuesday 12 March 2002 22:30, Andrey Hristov wrote: Yes they are identical. The rule is that the first and the last(excluding modificators) symbol must be identical so |abc| ~abc~ /abc/ %abc%(not sure for that) should be ok. are equivalent. The docs uses // syntax because it is the

[PHP] Help in PHPDoc

2002-03-12 Thread S.Murali Krishna
Is anybody using PHPDoc for creating documentation, if yes could you tell me how to create documentation for a single php file which has enough comments needed by PHPDoc. [EMAIL PROTECTED] --- We must use time wisely and

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
I used it few times. You have to make modifications to index.php, so the engine will know where to look to for .php scripts that have to be documented. I've attached my index.php - Original Message - From: S.Murali Krishna [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12,

RE: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Balaji Ankem wrote: Hi Jan, I want to compare the DTAETIME1,DATETIME2 which are from mysql table and want to compare in PHP. But strtotime takes only one argument and it checks whether it is valid or not. True, after you've fetched a record with, e.g. $row

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Jason Lotito wrote: Why not compare them in the SQL Query itself? That could work just as well, depending in what you want to do with the data. -- Jan Rademaker [EMAIL PROTECTED] http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Claudiu
I wish it was that simple... No.. It doesn't work this way... On Tue, 12 Mar 2002, Rick Emery wrote: your query is: DELETE FROM mytable; -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 5:09 AM To: [EMAIL PROTECTED] Subject: [PHP] reset

Re: [PHP] Error Handling!

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Thomas Edison Jr. wrote: I want errors reported on a page when the mail() function for any reason fails to send emails. FOr example, if there is a malformed email address or anything, and the mail is not sent, how can i catch the Error and Display it on the page? the

Re: [PHP] undefined symbol: compress during install?

2002-03-12 Thread Erik Price
On Monday, March 11, 2002, at 07:50 PM, Michael Sims wrote: bugs.php.net is extremely helpful for stuff like this, (even though strictly speaking those types of things shouldn't be submitted as bugs) and I don't think enough people out there know to check it. It's actually helped me

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Matt Schroebel
How about: ALTER table auto_increment=0 -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] I wish it was that simple... No.. It doesn't work this way... On Tue, 12 Mar 2002, Rick Emery wrote: your query is: DELETE FROM mytable; -Original Message-

[PHP] question

2002-03-12 Thread John Gurley
don't know exactly if anybody will understand what I am asking, but any help would be appreciated. I am taking a value off a web page, posting this value to another web page, where more values are taken and submitted to a php page. The problem is that the first value (taken from the initial

Re: [PHP] question

2002-03-12 Thread Martín Marqués
On Mar 12 Mar 2002 12:26, you wrote: don't know exactly if anybody will understand what I am asking, but any help would be appreciated. I am taking a value off a web page, posting this value to another web page, where more values are taken and submitted to a php page. The problem is that

Re: [PHP] question

2002-03-12 Thread Andrey Hristov
Probably the value you want to sent to the php page is on the page but not between form and /form. Regards, Andrey Hristov - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 5:26 PM Subject: [PHP] question don't know exactly

Re: [PHP] Re: reset auto_increment field mysql

2002-03-12 Thread Erik Price
On Tuesday, March 12, 2002, at 06:51 AM, Jordan S. Jones wrote: Direct quote from MySQL by Paul DuBois Just a quick plug for that book -- it is excellent. If you use MySQL for anything beyond casual experimentation, I highly recommend it as well worth the $40-50 (US) that it costs. The

Re: [PHP] Re: Variables within a string

2002-03-12 Thread Erik Price
On Monday, March 11, 2002, at 10:34 PM, Jason Wong wrote: On Monday 11 March 2002 11:10, Chris Cocuzzo wrote: $foo = Entry for . $HTTP_POST_VARS[name]; $foo = Entry for for $HTTP_POST_VARS[name]; But that's not good programming. Associative arrays should have the key quoted in order

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Rick Emery
It worked for me. What results did you get? -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] reset auto_increment field mysql I wish it was that simple... No.. It doesn't work this way... On

RE: [PHP] Hi can we write a form inside td element of a table?

2002-03-12 Thread Rick Emery
TRTDINPUT type=text name=mytext/TR -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 12:12 AM To: Php-General Subject: [PHP] Hi can we write a form inside td element of a table? Hi, can we give a form element as td inside table

Re: [PHP] index.php question

2002-03-12 Thread Daniel Negron/KBE
Still haven't gotten this to work properly with IIS. any other suggestions ? Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com

[PHP] phpinfo() and phpmyAdmin

2002-03-12 Thread Daniel Negron/KBE
I can get phpinfo() working properly on a page that I just create in the same directory. But why will the phpmyAdmin phpinfo.php not show anything but a blank page ? All other functions of phpMyAdmin work properly. Thank You Daniel Negrón Lotus Notes Administrator / Developer KB

[PHP] Dynamic Web Navigation

2002-03-12 Thread Omland Christopher m
Does anyone have a good link to a tutorial, or a book suggestion that will help me learn more about making dynamic web pages with MySQL/PHP. Mainly things like loading navigation menues, and pics and what not? Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Form Based Authentication

2002-03-12 Thread Anson Smith
I am new to PHP and I am attempting to use some type of authentication in my site. My first page is a simple HTML form page with 2 fields username and passwrd. that form is POST'ed to a 2nd page. In the second page I start a session, and if

[PHP] php array

2002-03-12 Thread Rodrigo Peres
Hi list, I think this could be an idiot question but I couldn't find an answer. I have 4 input text in a html, and I'd like to store them as a list, so I've named it Name[]. OK, php understand it as an array, but how can I make an validation code with javascript to know if the user didn't typed

RE: [PHP] php array

2002-03-12 Thread Demitrious S. Kelly
Something like this: ?php $valid=1; foreach ( $name as $value ) { if ( $value == '' || ! isset($value) ) { $valid=0; } } if ( $valid == 1 ) { do_stuff(); } else { give_error(); } ? -Original Message- From: Rodrigo Peres

RE: [PHP] Form Based Authentication

2002-03-12 Thread Matt Schroebel
First, change the names of your include files to something.inc.php so that no-one can download the files and get thte source, should their names become known. Second, you either must use session_register or $_SESSION['variablename'] and not mix their use. So instead of: $authenticated_user =

Re: [PHP] php array

2002-03-12 Thread Jim Lucas [php]
you could referance the element id of the form something like if(window.document.form.element[1].value = ) { do_something(); } not sure of the exact js construct, but you get my idea. Jim Lucas www.bend.com - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP

[PHP] archive

2002-03-12 Thread Jim Long
Hello, Is there a searchable archive of this PHP- general subscriber list? Thanks in Advance, Jim Long -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] archive

2002-03-12 Thread Andrey Hristov
http://marc.theaimsgroup.com/?l=php-generalr=1w=2 Regards, Andrey - Original Message - From: Jim Long [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 8:51 PM Subject: [PHP] archive Hello, Is there a searchable archive of this PHP- general subscriber list?

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-12 Thread Ceyhun Güler
if I write directly localhost/myphp/resmigoster.php on his browser it response Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 Warning: Undefined index: res in c:\inetpub\wwwroot\kocak\resimgoster.php on line 3 if I write directly

[PHP] Execute php script inside an HTML page???

2002-03-12 Thread Lic. Carlos A. Triana Torres
Hello all, Can I execute a php script from an HTML document? I mean, with the file named with html extension? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Hunter, Ray
Yes, However, you need to add the .html file extension to the php parser so that it parses the .html file. Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002

[PHP] accessing data from classes

2002-03-12 Thread caspar kennerdale
I am just getting my head around classes, so forgive me if this is a schoolboy error! In order to learn I am re-writing my content management system and am in the process of writing an HTML.class and a MYSQL.class. so far so good. I spawn new instances of a table for example, sending

Re: [PHP] Is there a faster way to escape special characters in aregex?

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 05:57, Richard Davey wrote: Hi all, At the moment I'm doing this to escape all special regular expression characters from my regex string: Sounds like you want preg_quote(): http://www.php.net/manual/en/function.preg-quote.php Hope this helps, Torben

[PHP] PHP regular expression

2002-03-12 Thread Rodrigo Peres
Hi list, I have a huge text file with many text on it. I'd like to know if someone can help in construct a regular expression to delete everything that not have this pattern Email: [EMAIL PROTECTED]. The part Email: is fixed and the email adress changes. I've tried many time to make the replace

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Miles Thompson
This idea sounds very appealing, but remember that PHP will then parse every HTML file. Make certain this won't result in a performance hit. Miles Thompson At 03:43 PM 3/12/2002 -0500, Hunter, Ray wrote: Yes, However, you need to add the .html file extension to the php parser so that it

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Kevin Stone
If you only have a web account you can download the .htaccess file from your home directory and add the following lines. Whether this will work or not may depend on your host. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm -Original Message- From: Lic.

RE: [PHP] Execute php script inside an HTML page???

2002-03-12 Thread Coggeshall, John
If you are running apache, open httpd.conf and search for .php (the line where it specifies what types of files are PHP files)... Simply add .html to the list. John -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 3:41 PM

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Ceyhun Güler wrote: than the script works like mine but I wonder to disable Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 response if someone directly enter localhost/myphp/resmigoster.php I want to say him that Access Denied Or

Re: [PHP] accessing data from classes

2002-03-12 Thread Samuel Ottenhoff
It is good that you are looking into classes and functions. The concept you are missing is that of returning a result. At the end of your function mysql_query, add a line: return $result; Then, when you call that function, make it like this: $resultArray =

[PHP] PHP and Pay Flow Pro

2002-03-12 Thread SpyProductions Support Team
I am about to build a script in PHP for a user to submit a credit card transaction through Verisign's Pay Flow Pro. Is there some sort of module I need installed first before I use PHP for this? Does anyone know of a script around to use as an example, or for that matter, a free one already

[PHP] Another Session Question..

2002-03-12 Thread Gonzalez, Zara E
I asked a question the other day about turning $_REQUEST variables into $_SESSION variables...thanks, all who helped me with that... I have another question about assigning $_REQUEST variables to $_SESSION variables that I am hoping someone can help me out with Here is a snippit of code...

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 12:32, Ceyhun Güler wrote: if I write directly localhost/myphp/resmigoster.php on his browser it response Warning: Undefined index: dir in c:\inetpub\wwwroot\kocak\resimgoster.php on line 1 Warning: Undefined index: res in c:\inetpub\wwwroot\kocak\resimgoster.php on

RE: [PHP] Another Session Question..

2002-03-12 Thread Gonzalez, Zara E
What I am trying to do is register a variable already in the request array...as a session variable. I know I can do $_SESSION['foo'] = $_REQUEST['foo'] but that's if I know the name of the variable that was registered on the form side I do know the name, but it's dynamically generated. So

RE: [PHP] Another Session Question..

2002-03-12 Thread Gonzalez, Zara E
On second look, perhaps it is working correctly. I wasn't incrementing my counter variable. Sorry to flood your mailboxes. Zara -Original Message- From: Gonzalez, Zara E Sent: Tuesday, March 12, 2002 3:47 PM To: 'Coggeshall, John'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Another

RE: [PHP] Another Session Question..

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Gonzalez, Zara E wrote: On second look, perhaps it is working correctly. I wasn't incrementing my counter variable. Sorry to flood your mailboxes. Zara this should work as well; foreach($_REQUEST as $key = $val) { $_SESSION[$key] = $val; } -- Jan

[PHP] Safety File

2002-03-12 Thread Cory
I want a file that has all of my important, global variables (like database info). I want this to be encoded by a PHP script and written. Is there any way, that I can import the file, while decoding it, so that the info is given as just lines of PHP. How can I do this? -- PHP General

[PHP] PHP/MySQL application - how to schedule server processes?

2002-03-12 Thread Lee P Reilly
Hi there, I wonder if anyone can offer me some advice... I have developed a portal using PHP, which allows users to uploads files into their own personal storage locations. These files are stored in a MySQL database. The system also allows the users to select these files and submit them for

[PHP] help: setcookie question

2002-03-12 Thread Frank Ramsay
pretty please? I have a situation where I have to have a cookie that is set by one apache server and read by another. They are on the same domain, but different ports. To write this I set up two webserver one on port 81 and one on 90, the port 81 server calles setcookie, but in the DOMAIN

RE: [PHP] PHP and Pay Flow Pro

2002-03-12 Thread Mike Krisher
The php.net site (http://www.php.net/manual/en/ref.pfpro.php) has all the information you'll need to implement Payflow Pro. Check out the User Contributed Notes. __ Mike Krisher Technical Director hyperQUAKE 312 West 4th Street Cincinnati, OH 45202 Tel:

[PHP] variable scope

2002-03-12 Thread David Johansen
I have a little chunk of code that checks to see if a variable exists and if not then it sets it. It goes like this: if (empty($page)) { $page = login; } I then end that part of the php script after doing what I need to. Then I start up again on the same html page and I assumed that $page

[PHP] Auto POST with redirect?

2002-03-12 Thread Kevin Stone
What I'm trying to do is create a multi-user information gathering system similar to Moreover.com's news gathering system (just much simpler and not as dynamic). A JavaScript auto submits to a remote PHP script. The PHP script grabs the info from the database then generates its own JavaScript

Re: [PHP] variable scope

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 14:38, David Johansen wrote: I have a little chunk of code that checks to see if a variable exists and if not then it sets it. It goes like this: if (empty($page)) { $page = login; } I then end that part of the php script after doing what I need to. Then I

Re: [PHP] variable scope

2002-03-12 Thread David Johansen
Something most have just been wigging out or something because I can't get it to do it again. Maybe I just did something wrong, but it seems to be working now. Thanks for the help though, Dave Lars Torben Wilson [EMAIL PROTECTED] wrote in message

[PHP] mixed type

2002-03-12 Thread max
While looking thru php funcions (mixed ora_getcolumn ( int cursor, mixed column) in partucular) I came across type MIXED. What does that mean? There is no such type mentioned in the php docs under TYPES section. thanks. max. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen
Is there a way that I can use $PHP_SELF in include files, so that the function will use the URL of the php script that calls the include file? Thanks, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Handling!

2002-03-12 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I want errors reported on a page when the mail() function for any reason fails to send emails. FOr example, if there is a malformed email address or anything, and the mail is not sent, how can i catch the Error and Display it on the

Re: [PHP] mixed type

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 14:33, max wrote: While looking thru php funcions (mixed ora_getcolumn ( int cursor, mixed column) in partucular) I came across type MIXED. What does that mean? There is no such type mentioned in the php docs under TYPES section. thanks. max. It simply means that

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 15:02, David Johansen wrote: Is there a way that I can use $PHP_SELF in include files, so that the function will use the URL of the php script that calls the include file? Thanks, Dave If a.php includes b.php, and you check $PHP_SELF in b.php, it should give you the

  1   2   >