Re: [PHP] Where to learn about these topics

2004-11-21 Thread Rens Admiraal
Hi, I don't have any documentation you can use I think, but I have some comments on what you say... By part 1 you say: how do I handle the workflow when the data in related tables doesn't yet exist? Do I force a user to enter data into 5 different forms first? Do I have a place to enter the new

Re: [PHP] PHP script + read file

2004-11-21 Thread Jerry Swanson
What is wrong with this code? Why $input_str is empty. if ($handle = opendir('/home/test2/')) { echo Directory handle: $handle\n; echo Files:\n; while (false !== ($file = readdir($handle))) { if($file != . $file != ..){ $handle1 = fopen($file, a+);

Re: [PHP] PHP script + read file

2004-11-21 Thread Jason Wong
On Sunday 21 November 2004 20:25, Jerry Swanson wrote: Please do not top post. What is wrong with this code? Why $input_str is empty. if ($handle = opendir('/home/test2/')) { echo Directory handle: $handle\n; echo Files:\n; while (false !== ($file = readdir($handle))) {

[PHP] help with html through php

2004-11-21 Thread Todd Alexander
Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to abc.html and have it update on all

Re: [PHP] help with html through php

2004-11-21 Thread Raditha Dissanayake
Todd Alexander wrote: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to abc.html and

[PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Mulley, Nikhil
Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know whether it is really

Re: [PHP] images process

2004-11-21 Thread edwardspl
Yes, I need a sample ( display images with php directly from database ) for reference... So, can you help me ? Many thank for your help ! Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: So, how can we fix this kind of problem ? is it a problem? Raditha Dissanayake wrote:

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Jon-EIrik Pettersen
Mulley, Nikhil wrote: Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
What would be the use of a hash if it was easy to recover ? You can use it by storing the hash of a password, en when the user supplies you his password in a script, you hash it again... and compare those two hashes... Trying to recover the value from which the hash is the result is called

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME], or [ACTIVE_USER]... When you open the HTML document in your browser, you can see where your time

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
Mulley, Nikhil wrote: Hi Rens, Can you please be more specific or can you show some practical examples or procedural way ? Thanks, Nikhil --Smile Always , it costs nothing -Original Message- *From:* Rens Admiraal [mailto:[EMAIL PROTECTED] *Sent:* Sunday, November 21,

Re: [PHP] help with html through php

2004-11-21 Thread M. Sokolewicz
Rens Admiraal wrote: Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME], or [ACTIVE_USER]... When you open the HTML document in your browser, you can

Re: [PHP] help with html through php

2004-11-21 Thread Pete
In message [EMAIL PROTECTED], Raditha Dissanayake [EMAIL PROTECTED] writes Todd Alexander wrote: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
thnx ;-) this really is shorter, and easier to use... !!! M. Sokolewicz wrote: Rens Admiraal wrote: Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME],

[PHP] Mysql Connect Help

2004-11-21 Thread Nathan Mealey
A seemingly simple problem, still confounding me. The following line of code: mysql_connect('database','user','password'); [with values of course] Generates the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phptest.php on line 3 My PHP info page says

[PHP] php mail() sendmail hanging freebsd 4.10

2004-11-21 Thread Thomas S. Crum
When hitting php pages that use the mail() function, I get a 5 second hang in the browser. The mail is then being delivered fine. Many of the same scripts that use this mail function ran fine with ½ sec. or less delay on my old redhat box. Any ideas how to make it run quicker would be greatly

[PHP] Redirect or Set Current Directory?

2004-11-21 Thread Paul Furman
I've got a script that lists all the folders on my web space. If the folder containes a non-php old web page with an index.htm in it I try to include that index.htm but the links inside there do not realize they are another folder deep. I've been away from this php stuff for a while so am

[PHP] Upgrade PHP 4 to 5

2004-11-21 Thread Sandy Keathley
We started a new server at work. The hosting company was supposed to put PHP 5 on it, but did 4 instead. I would like to upgrade it before it goes into service, but the instructions in the PHP5 tarball look difficult. I'm not familiar with the emerge. The server is Linux RH9 with Apache

[PHP] Re: help with html through php

2004-11-21 Thread Paul Furman
Todd Alexander wrote: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to abc.html and

Re: [PHP] Upgrade PHP 4 to 5

2004-11-21 Thread Richard Davey
Hello Sandy, Sunday, November 21, 2004, 6:37:43 PM, you wrote: SK We started a new server at work. The hosting company was SK supposed to put PHP 5 on it, but did 4 instead. I would like to SK upgrade it before it goes into service, but the instructions in the SK PHP5 tarball look difficult.

Re: [PHP] images process

2004-11-21 Thread Paul Furman
You need to set up an apache server get that running on your windows machine in order to run php. Then you go thru IE to view the php script run it that way. [EMAIL PROTECTED] wrote: Yes, I need a sample ( display images with php directly from database ) for reference... So, can you help

[PHP] include files, .php or .inc ?

2004-11-21 Thread Perry Jönsson
Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? Best regards, Perry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Perry Jönsson
Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. What it the purpose of the .inc file then? /Perry -- PHP General Mailing List (http://www.php.net/)

[PHP] Tabs or Spaces?

2004-11-21 Thread Daniel Schierbeck
Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation... -- Daniel Schierbeck Help spread Firefox

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. What it the purpose of the .inc file then? Not really anything. Just to

[PHP] Re: Tabs or Spaces?

2004-11-21 Thread Matthew Weier O'Phinney
* Daniel Schierbeck [EMAIL PROTECTED]: There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation... Most likely due to

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Jon-Eirik Pettersen
Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation... One reason is that a

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread M. Sokolewicz
Jon-Eirik Pettersen wrote: Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees had some sort of explanation...

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 4:30 PM, M. Sokolewicz wrote: Jon-Eirik Pettersen wrote: Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if

Re: [PHP] Re: Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote: * Daniel Schierbeck [EMAIL PROTECTED]: There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees

Re: [PHP] images process

2004-11-21 Thread James Cartledge
On Sun, 21 Nov 2004 22:22:52 +0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, I need a sample ( display images with php directly from database ) for reference... So, can you help me ? Many thank for your help ! Does this help?

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Chris Shiflett
Four spaces are used by a lot of open source projects, including Apache and PHP, so I've been trying to convert, myself. In general, spaces just make it easier to do multi-line formatting with exact precision, like this: if ($foo || $bar || $boo) { ... } If this statement was also

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread Janet Valade
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. What it the purpose of the .inc file then? For organization. The file name

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Chris Shiflett
--- Ryan King [EMAIL PROTECTED] wrote: However, when indenting with 3 spaces instead of a single tab, then your code-size WILL increase, and will include 3x more space content than it used to :) Who cares? Just to point out the obvious, if you're not using a compiler cache, size does

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread M. Sokolewicz
Chris Shiflett wrote: --- Ryan King [EMAIL PROTECTED] wrote: However, when indenting with 3 spaces instead of a single tab, then your code-size WILL increase, and will include 3x more space content than it used to :) Who cares? Just to point out the obvious, if you're not using a compiler cache,

[PHP] How to change mail defaults?

2004-11-21 Thread Mailit, LLC
In php.ini we have the ability to set sendmail_from only for Windows. It is unfair, because it does not work for Linux. When I broadcast, the From defaults to 'Apache' and people have complained about that. Another thing that is causing trouble is that uploaded file ownership defaults to

Re: [PHP] Mysql Connect Help

2004-11-21 Thread John Holmes
Nathan Mealey wrote: The following line of code: mysql_connect('database','user','password'); [with values of course] Generates the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phptest.php on line 3 My PHP info page says that PHP (4.3) was compiled

RE: [PHP] include files, .php or .inc ?

2004-11-21 Thread Graham Cossey
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? No, it does not. What it the purpose of the .inc file then?

Re[2]: [PHP] include files, .php or .inc ?

2004-11-21 Thread Richard Davey
Hello Perry, Sunday, November 21, 2004, 8:02:48 PM, you wrote: PJ What it the purpose of the .inc file then? Security - on a properly configured web server a .inc file will never actually try and compile/execute itself. Whereas a .php one always will. Best regards, Richard Davey --

Re[2]: [PHP] Tabs or Spaces?

2004-11-21 Thread Richard Davey
Hello Chris, Sunday, November 21, 2004, 11:09:42 PM, you wrote: CS Just to point out the obvious, if you're not using a compiler CS cache, size does matter. Of course, if you're to the point where CS the difference is important to you, you're to the point where you CS should figure out how to

Re: [PHP] How to change mail defaults?

2004-11-21 Thread Richard Davey
Hello LLC, Sunday, November 21, 2004, 8:34:26 PM, you wrote: ML In php.ini we have the ability to set sendmail_from only for ML Windows. It is unfair, because it does not work for Linux. When I ML broadcast, the From defaults to 'Apache' and people have ML complained about that. It will only

[PHP] upload file permission problem

2004-11-21 Thread Michael Leung
Hi all, I just upgraded my server into PHP 5. I run the same script which is working in 4.2.2. But In PHP 5 has followings msg: Warning: move_uploaded_file(upload_files/Gnatt.htm) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/html/simple_upload.php on line

Re: [PHP] include files, .php or .inc ?

2004-11-21 Thread John Holmes
Perry Jnsson wrote: Does it make any difference if you include (include/require/include_once/require_once) files with extension .inc or .php? It makes no difference as far as PHP is concerned. You're just telling PHP what file to load. However, .inc files are generally served up as plain text

Re: [PHP] images process

2004-11-21 Thread edwardspl
Sorry, I need a sample of php program... Thanks! Paul Furman wrote: You need to set up an apache server get that running on your windows machine in order to run php. Then you go thru IE to view the php script run it that way. [EMAIL PROTECTED] wrote: Yes, I need a sample ( display

Re: [PHP] images process

2004-11-21 Thread James Cartledge
On Mon, 22 Nov 2004 09:13:14 +0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry, I need a sample of php program... Thanks! Does this help? http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html google: php image database J. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 5:09 PM, Chris Shiflett wrote: --- Ryan King [EMAIL PROTECTED] wrote: However, when indenting with 3 spaces instead of a single tab, then your code-size WILL increase, and will include 3x more space content than it used to :) Who cares? Just to point out the obvious, if you're

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread John Holmes
Ryan King wrote: I agree. I can't imagine that having more whitespace characters in a script will significantly effect the performance of said script. I would guess that there would always be more significant issues to deal with in regards to performance- php compiling and optimizing SQL

Re: [PHP] images process

2004-11-21 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: Sorry, I need a sample of php program... They are dime a dozen on google. please trim your posts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload is not working

2004-11-21 Thread Michael Leung
Hi all, I am implementing a upload file PHP program. The script is not working. it keeps on generating the permission Error. I am not very sure this is PHP or Apache problem. But one things I can sure I changed all upload file dir in 777. Anyone can help? Or are there any people facing this

Re: [PHP] Upload is not working

2004-11-21 Thread Jason Wong
On Monday 22 November 2004 10:56, Michael Leung wrote: I am implementing a upload file PHP program. The script is not working. it keeps on generating the permission Error. I am not very sure this is PHP or Apache problem. But one things I can sure I changed all upload file dir in 777. The

[PHP] Contract programmer needed

2004-11-21 Thread lou5403
I am looking for a program, either stand alone or web based, that will allow the user to enter basic shipping information and will return shipping charges from USPS, UPS, FedEx, and DHL. The application should allow for a hidden % markup/handling function. The displayed charges will include the

[PHP] Code needed

2004-11-21 Thread lou5403
I am looking for a program, either stand alone or web based, that will allow the user to enter basic shipping information and will return shipping charges from USPS, UPS, FedEx, and DHL. The application should allow for a hidden % markup/handling function. The displayed charges will include the

[PHP] Upload is still not working

2004-11-21 Thread Michael Leung
Hi all, I have already checked all parent dir are in 777 too. But this is not working Anyone can help me? yours, Michael On Monday 22 November 2004 10:56, Michael Leung wrote: I am implementing a upload file PHP program. The script is not working. it keeps on generating the

[PHP] Upload is still not working

2004-11-21 Thread Michael Leung
Hi all, I have some problems for upload file script. The script generated a lot of permission denied error msg. I have changed the upload dir and its parent dir into 777. I am quite sure I did the permission settings right. I have attached the error msg and my testing source code with this

RE: [PHP] Mysql Connect Help

2004-11-21 Thread Manoj Kumar
You should enable php_mysql module in your php.ini file. -- Manoj Kr. Sheoran -Original Message- From: Nathan Mealey [mailto:[EMAIL PROTECTED] Sent: Sunday, November 21, 2004 10:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Mysql Connect Help A seemingly simple problem, still

Re: [PHP] Upload is still not working

2004-11-21 Thread Jason Wong
On Monday 22 November 2004 11:25, Michael Leung wrote: Please do not top post. I have already checked all parent dir are in 777 too. But this is not working Post some *concise* code that illustrates your problem. Post the full error message(s) that you get. -- Jason Wong - Gremlins

Re: [PHP] Upload is still not working

2004-11-21 Thread Jason Wong
On Monday 22 November 2004 12:14, Michael Leung wrote: I have some problems for upload file script. The script generated a lot of permission denied error msg. I have changed the upload dir and its parent dir into 777. I am quite sure I did the permission settings right. I have attached

Re: [PHP] Upload is still not working

2004-11-21 Thread Michael Leung
Hi Jason, Thank you for your help. This is the output from PHP script: upload_files is valid a directoryI am able to write to upload_files Warning: move_uploaded_file(upload_files/Water lilies.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in

Re: [PHP] Upload is still not working

2004-11-21 Thread Jason Wong
On Monday 22 November 2004 14:01, Michael Leung wrote: Please do not top post. Thank you for your help. This is the output from PHP script: upload_files is valid a directoryI am able to write to upload_files Warning: move_uploaded_file(upload_files/Water lilies.jpg)

[PHP] About xmldoc and ISO-8859-1

2004-11-21 Thread Patrick Gelin
Hi, I'm trying to make DRES project (http://sourceforge.net/projects/dres/) compliant with ISO-8859-1. I'm not using mbstring into my windows 2000 server, I know there is problem with Internet Explorer browser... I saw DRES it use 'xmldoc' API into the file xmlutil.php. But this fonction seems

[PHP] Upload is still not working ( More tesitngs)

2004-11-21 Thread Michael Leung
Hi All, I did more testes I have added the followings code into my script error_reporting(E_ALL); ini_set('display_errors', TRUE); if (is_readable($_FILES['userfile']['tmp_name'])) { echo I can read . $_FILES['userfile']['tmp_name']; } if ($fp0 =

Re: [PHP] Upload is still not working ( More tesitngs)

2004-11-21 Thread Raditha Dissanayake
Michael Leung wrote: My Error Msg: I can read /tmp/phphRiKeP Warning: fopen(upload_files/doodah) [function.fopen]: failed to open stream: Permission denied in /var/www/html/simple_upload.php on line 18 Warning: fopen(upload_files/Water lilies.jpg) [function.fopen]: failed to open stream:

Re: [PHP] inline_C installation

2004-11-21 Thread Burhan Khalid
Rayan Lahoud wrote: Does anybody knows how to install a pear package. i have the inline_C package that i want to install and use. And can i have some sample functions using this package? pear install Inline_C -- that's it. You don't need to restart Apache, or load any modules. To find out

Re: [PHP] inline_C installation

2004-11-21 Thread Jeffery Fernandez
Burhan Khalid wrote: Rayan Lahoud wrote: Does anybody knows how to install a pear package. i have the inline_C package that i want to install and use. And can i have some sample functions using this package? pear install Inline_C -- that's it. You don't need to restart Apache, or load any