[PHP] Adding to md5 checksums.

2003-04-02 Thread William Bailey
Hi all, Just wondering if it is possiable to add or combine 2 or more md5 checksums togeather? Basically i've got a value/file that i can get the md5 checksum for but want to be able to padd the input value/file with nulls to a specific length example: value

[PHP] Re: Returning a variable from a function problem

2003-04-02 Thread Nicole
Hello, Where is $duplicate originally being set? Are you using global variables? is $duplicate being POST'd or GET'd or what? If it is only gaining it's value from the duplicate_name() function, is that function returning those possible values (1,2) based on whatever the result of the action

[PHP] Newbie

2003-04-02 Thread Ilyas
Hi all I downloaded the oscommerce online shop. I have no experience with php. I installed yesterday php 4.3. Just my question: I get this error if I call the startpage of this shop: Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please

[PHP] Re: $_SERVER[REMOTE_ADDR]

2003-04-02 Thread Nicole
Try these: function getIP() { if (getenv('HTTP_CLIENT_IP')) $ip=getenv('HTTP_CLIENT_IP'); else if ( getenv('REMOTE_ADDR') ) $ip=getenv('REMOTE_ADDR'); else $ip = 'unknown'; return trim($ip); } function getISP($addr,$byIP=true) { /* Can pass in an ip, like 64.xxx.xxx.xx or a domain,

Re: [PHP] checkdate function

2003-04-02 Thread tech
On Tuesday 01 April 2003 02:47 pm, Jon Haworth wrote: Hi Siva, checkdate function verifies whether the date is valid or not by taking month, day and year as arguments. The problem is when someone enters a three digit year by mistake (200 instead of 2003), this function does not catch it.

Re: [PHP] Newbie

2003-04-02 Thread Burhan Khalid
Ilyas wrote: Hi all I downloaded the oscommerce online shop. I have no experience with php. I installed yesterday php 4.3. Just my question: I get this error if I call the startpage of this shop: Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP

[PHP] timestamp from uniqid()

2003-04-02 Thread nooper
Would there be a way to extract a timestamp from uniqid(), since the function is based on the microsecond, and its purpose is not to be random in anyway, simply unique. I understand that it is not supposed to act as a timestamp, just wondering if anyone has a method of extracting a date or time

Re: [PHP] timestamp from uniqid()

2003-04-02 Thread Sebastian
may i ask what is it that your trying to do? Why not use time(); ? cheers, Sebastian - Original Message - From: nooper [EMAIL PROTECTED] | Would there be a way to extract a timestamp from uniqid(), since the | function is based on the microsecond, and its purpose is not to be random in

Re: [PHP] Newbie

2003-04-02 Thread skate
could this not also be solved by switching register_globals as on? reading through the error, it looks like that's what it's complaining about. there is security risks to turning this on, which is probably why it doesn't suggest doing it, but depends how secure you need your site to be? and also

[PHP] Email advice

2003-04-02 Thread Tony Burgess
Hi everyone! Just wanted to know what the best way to deal with a system that makes use of lots of emails. The application itself creates emails using php mail() function, but I recall reading that this was not necessarily the best way to do this if sending lots of emails. Any suggestions or

Re: [PHP] timestamp from uniqid()

2003-04-02 Thread Justin French
If you want the microsecond use microtime(). Justin on 02/04/03 8:44 PM, Sebastian ([EMAIL PROTECTED]) wrote: may i ask what is it that your trying to do? Why not use time(); ? cheers, Sebastian - Original Message - From: nooper [EMAIL PROTECTED] | Would there be a way to

[PHP] Php.ini doesn't exit

2003-04-02 Thread Javier Carreras
Hi all, Where does PHP get its settings if php.ini file doesn't exist? BTW- I want to enable sockets that are not enabled. Could I do that without creating a php.ini file? Regards, Javi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email advice

2003-04-02 Thread Burhan Khalid
Tony Burgess wrote: Just wanted to know what the best way to deal with a system that makes use of lots of emails. The application itself creates emails using php mail() function, but I recall reading that this was not necessarily the best way to do this if sending lots of emails. Any suggestions

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Awlad Hussain
I think php.ini file must exist.. otherwise php will not work. - Original Message - From: Javier Carreras [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:01 AM Subject: [PHP] Php.ini doesn't exit Hi all, Where does PHP get its settings if php.ini file

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread skate
you can set _some_ directives directly in php check the manual for the set ini options, can't remember the exact function... php will work without an .ini file, but will have all defaults set. again, check thru the manual to see what the defaults are. - Original Message - From: Javier

[PHP] Sending messages with HL7

2003-04-02 Thread Miguel González Castaños
Dear all, A friend of mine has told me that his group is trying to build a php interface to HL7 messages. Their spec is: They need to send through PHP (from a browser) a HL7 message with a query, interpret that HL7 message, make the request with the information inside the HL7 message to an

[PHP] QUESTION - user management

2003-04-02 Thread [EMAIL PROTECTED]
How do applications know how many users are logged into the system? For example postnuke will tell you '3 users online, 2 members'. Im gussing it uses sessions, but how? Edd Barrett (http://www.filibusta.net) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile dueto error.

2003-04-02 Thread Marek Kilimajer
My guess you have a mess in your curl library installation. For example you use header from version 7.9.5 and specify that you have version 7.10.3. Find all libcurl.so and curl.h files on your system and check if they are really the version you think they are. You may try running rpm -V

Re: [PHP] PHP and Front Page XP

2003-04-02 Thread Marek Kilimajer
No, this information is not provided by the browsers. Tomás Liendo wrote: Thanks! Your help solved my problems! Is there some form of obtaining the complete path??? I tried $f1_path, but don't work... :-) Thank you very much, -- PHP General Mailing List (http://www.php.net/) To

[PHP] newbie2

2003-04-02 Thread Ilyas
FATAL ERROR: register_globals is disabled in php.ini, please enable it! How can I make this? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Menu from Directory

2003-04-02 Thread Ben Whitehead
I am trying to sort an image menu system which is passed a directory name, and can count and name the files in a menu from simply seeing which files are in this directory. It would be ideal if it can just do this just by looking at the files in the directory, and their file names, but if that is

Re: [PHP] security flaw?

2003-04-02 Thread Marek Kilimajer
It should not be too difficult to change the delphi utility to post a sql or csv file to a php script, in the script you can check the sql commands and then execute them or parse the csv file respectively. The password is not really hidden, maybe it is not even scrambled in the binary, and can

Re: [PHP] newbie2 php.ini

2003-04-02 Thread Chris Hayes
At 13:32 2-4-03, you wrote: FATAL ERROR: register_globals is disabled in php.ini, please enable it! How can I make this? First question would be: do i want this? Since PHP 4.10 the register_globals is turned off by default, see the release notes at http://www.php.net/release_4_1_0.php . Second

Re: [PHP] newbie2

2003-04-02 Thread Sebastian
fatal error? What gave you this? Enabling it might not be a good idea, for security. .. but if you want to enable it you have to editing the php.ini and set register_globals to ON. cheers, - Sebastian - Original Message - From: Ilyas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] UTF-8 encoding/decoding

2003-04-02 Thread Marek Kilimajer
There are 2 separate extenssions - iconv and recode Michael Mulligan wrote: Hi So say I have some UTF-8 (not certain, but probably in UTF-8 format, I need to check some more) encoded text. The text comes in encoded already, so it's not an htmlspecialchars kind of quick fix. For instance, I get

RE: [PHP] Menu from Directory

2003-04-02 Thread Niklas Lampén
You might want to start with searching the manual for opendir() function. There is a sample code listing all files from a directory. :) Niklas -Original Message- From: Ben Whitehead [mailto:[EMAIL PROTECTED] Sent: 2. huhtikuuta 2003 1:05 To: [EMAIL PROTECTED] Subject: [PHP] Menu from

[PHP] Zip to postcode

2003-04-02 Thread Andy
Can someone please tell me how i change the following code: if (!ereg(^[0-9]{5,5}(\-[0-9]{4,4})?$,$postcode)) to a UK postcode QQ1 1QQ When i fill out the form it tells me that the postcode is not valid and i think it is because it is in zip code format. Thank you Andy -- PHP General

RE: [PHP] Zip to postcode[Scanned]

2003-04-02 Thread Michael Egan
Andy, There are some ready made scripts for dealing with UK post codes on the relevant page on the PHP site: http://www.php.net/manual/en/function.ereg.php HTH, Michael Egan -Original Message- From: Andy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 12:54 To: [EMAIL PROTECTED]

[PHP] trigger error and set error handling in an object

2003-04-02 Thread Dan Rossi
hi guys i am having an issue getting a set error handler to get a function within a class, i am also having problems trying to trigger the error, i dont want fatals or the error handler wont catch it anyway , but user or message picks up annoying messages like undefined index on variable , how can

[PHP] file upload

2003-04-02 Thread anders thoresson
Am I making any obvious mistakes here, in my upload script? I want to upload text-files only, they should end up in the directory from which the script is executed and be names __traningsmatcher.txt. HTML-form: FORM ENCTYPE=multipart/form-data METHOD=POST ACTION=store.php TABLE INPUT

RE: [PHP] $_SERVER[REMOTE_ADDR]

2003-04-02 Thread Mark Charette
-Original Message- From: thomas [mailto:[EMAIL PROTECTED] $_SERVER[REMOTE_ADDR] If the user have a proxy the real IP is: $_SERVER[HTTP_X_FORWARDED_FOR] Maybe. If it's set and is set correctly. Even then: How are 127.0.0.1 or 192.168.1.1 going to help you, supposing that those

re: [PHP] Zip to postcode

2003-04-02 Thread skate
sorry, don't have anything to add for code, but just a note to remember that UK post codes can also be in the form... QQ11 1QQ Q1 1QQ Q11 1QQ QQ1 1QQ so it's a real pain to write an expression for this... -skate- Can someone please tell me how i change the following code: if

re: [PHP] Zip to postcode

2003-04-02 Thread Peter Hicks
Don't forget some London postcodes are Q1Q QQQ! Peter. On Wed, 2 Apr 2003, skate wrote: sorry, don't have anything to add for code, but just a note to remember that UK post codes can also be in the form... QQ11 1QQ Q1 1QQ Q11 1QQ QQ1 1QQ so it's a real pain to write an expression

Re: [PHP] Zip to postcode

2003-04-02 Thread William Bailey
Hi Andy, The following function seems to work for me: function split_postcode ($postcode) { if(eregi('(^[A-Z]{1,2})([0-9|A-Z]{1,2}).*([0-9][A-Z]{2}$)', str_replace(' ', '', $postcode), $parts)){ $outcode=strtoupper(sprintf('%s%s%s', $parts[1], @str_repeat(' ',

[PHP] database question

2003-04-02 Thread José Pereira
Hi all, I'm trying to grab information from two DBs one being a mamber db and the other a report DB I want to print a list of users(pilots for a Virtual Airline) from the Pilot db and then next to them the nº of reports and total hours they have so far from the REPORT DB. The Pilot ID on this

[PHP] use of sessions compared to global scope

2003-04-02 Thread Dan Rossi
hi guys , as per my previous email i am trying to sort out a similar error handling as c or java exception, although in the error handler i am sending an error code to it and then return to the previous page with the error on it , the only way i can do this is to store the code in a session

RE: [PHP] Zip to postcode[Scanned]

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 13:05 There are some ready made scripts for dealing with UK post codes on the relevant page on the PHP site: http://www.php.net/manual/en/function.ereg.php And not one of them is 100% correct!!

RE: [PHP] getting values from objects

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: 01 April 2003 21:21 To: Dan Joseph Cc: [EMAIL PROTECTED] Subject: Re: [PHP] getting values from objects My objective was to try and NOT use a temporary variable. for example I can do this: foreach

RE: [PHP] Returning a variable from a function problem

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: ODCS [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 08:10 I have a form where the user inputs information - the code below is the error checking for one of the fields. The first IF statement just checks that the filed is not empty and works fine. Then

[PHP] Re: Zip to postcode

2003-04-02 Thread Andy
Looks like i have it sussed thank you to all. HOWEVER :o( I have two small problems that i cannot solve, and seeing as you are all gods in my opinion maybe you can help me further before i throw myself out the window. I am getting this error when i am taken to the member page after correctly fill

[PHP] Help in sorting

2003-04-02 Thread Haseeb Iqbal
hi, i want to sort messages in a sequence the sequence is 23,12,25 (these are message nos) now when i call like this $nMsgSeq=23,12,25; imap_fetch_overview($pIMAP,$nMsgSeq,0); i get an array sorted like Array ( [0] = stdClass Object ( [uid] = 21

[PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
Greetings. I have a web site which permits my clients to upload a file via php4, and it works great ... however, some clients have requested that they be able to upload entire directories from their windows or macintosh computers ... that is, to select the entire folder rather than doing one file

Re: [PHP] newbie2

2003-04-02 Thread Ilyas
It is an online shop : oscommerce How can I restart Php? Any ideas??? Ilyas At 06:42 02.04.2003 -0500, you wrote: fatal error? What gave you this? Enabling it might not be a good idea, for security. .. but if you want to enable it you have to editing the php.ini and set register_globals to ON.

Re: [PHP] uploading entire directory, with or without compression...

2003-04-02 Thread Marek Kilimajer
Your clients can zip the folder, upload the zip file, and then you can on the server side use PclZip class to read the content Kenn Murrah wrote: Greetings. I have a web site which permits my clients to upload a file via php4, and it works great ... however, some clients have requested that

Re: [PHP] accessing protected remote files

2003-04-02 Thread David Feldman
How would that work? --Dave On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote: You need to use socket functions and check the response headers David Feldman wrote: I have a script that needs to open a remote file on another Web server, which may or may not be protected (for

Re: [PHP] QUESTION - user management

2003-04-02 Thread Marek Kilimajer
Check the archives, this has been discused many times before [EMAIL PROTECTED] wrote: How do applications know how many users are logged into the system? For example postnuke will tell you '3 users online, 2 members'. Im gussing it uses sessions, but how? Edd Barrett (http://www.filibusta.net)

[PHP] Database Question

2003-04-02 Thread José Pereira
Hi all, I'm trying to grab information from two DBs one being a mamber db and the other a report DB I want to print a list of users(pilots for a Virtual Airline) from the Pilot db and then next to them the nº of reports and total hours they have so far from the REPORT DB. The Pilot ID on this

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
yes, of course they can ... but i'm looking for a way to automate the process for them (a method which may not exist) .. i suppose i can give them the option to upload multiple files using multiple input fields, but I'd really like to find a way to select an entire folder instead ... -

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Jason Wong
On Wednesday 02 April 2003 22:08, Kenn Murrah wrote: yes, of course they can ... but i'm looking for a way to automate the process for them (a method which may not exist) .. i suppose i can give them the option to upload multiple files using multiple input fields, but I'd really like to find a

Re: [PHP] accessing protected remote files

2003-04-02 Thread Marek Kilimajer
Check examples and user notes in the manual: http://www.php.net/manual/en/function.fsockopen.php David Feldman wrote: How would that work? --Dave On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote: You need to use socket functions and check the response headers David Feldman wrote:

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Chris Hayes
At 16:15 2-4-03, you wrote: Um, i had a look at the FTP options, (I honestly have no idea about the security implications) but i saw only directory functions for the server. http://www.php.net/manual/en/ref.ftp.php but maybe one of the finished applications: http://nanoftpd.sourceforge.net/

Re: [PHP] $_SERVER[REMOTE_ADDR]

2003-04-02 Thread Jason Sheets
It isn't always possible to get the visitor's real IP address, if the user's traffic is proxied the REMOTE_ADDR will be the proxy IP address, some proxies set the forwarded for header but for security and privacy some do not. If you are not being directed through a proxy REMOTE_ADDR does show

[PHP] OCINewcollection fails after being used more then once

2003-04-02 Thread Andries J. Algera
I am trying to use the ocicollection functions. Initially everything works fine, but after reloading the page for the second time I get the following error: OCITypeByName: OCI-22303: type SISTRUT.MENSERRO not found When I try half a minute later, I do manage reload the page without any error.

[PHP] Check For Space

2003-04-02 Thread shaun
Hi, How can i make sure a value sent from a form has no spaces in it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-02 Thread Don
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install the 7.10.3 development rpm. I did so and all compiles fine now. Thanks, Don My guess you have a mess in your curl library installation. For example you use header from version 7.9.5 and specify that you have version

Re: [PHP] FTP

2003-04-02 Thread Tomás Liendo
You are right! :-) Other question: When I try to put a file as an anonymous user, I always receipt this error: Permission denied on server. (Upload). Does some form exists of allowing to anonymous users upload files or it is impossible? Thank you very much, Tom. Jon Haworth [EMAIL

Re: [PHP] Check For Space

2003-04-02 Thread Chris Hayes
At 17:16 2-4-03, you wrote: Hi, How can i make sure a value sent from a form has no spaces in it? Before sending: javascript that prevents this on sending or even while typing. Check the javascript form faqs on www.irt.org for this. After sending: Detect spaces with if (!(strpos(' ',

Re: [PHP] Check For Space

2003-04-02 Thread Marek Kilimajer
if(strpos($string, ' ') === false) { //space found } if you don't want any white character: if(ereg('\s',$string)) { //white character found } shaun wrote: Hi, How can i make sure a value sent from a form has no spaces in it? -- PHP General Mailing List

[PHP] Warning Extract

2003-04-02 Thread Andy
Help AGAIN!!! Thank you for all the help so far, i am close to getting this members section working correctly now i think! I think i would have given up by now if it were not for the help i get from you all, thank you. I have a warning that i don't understand: Warning: extract() expects first

FW: [PHP] Html forms to php scripts

2003-04-02 Thread VanZee, Timothy
Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue

Re: [PHP] Warning Extract

2003-04-02 Thread Marek Kilimajer
Andy wrote: (and Marek fixed) $connection = mysql_connect($host, $user,$password) or die (Couldn't connect to server.); $db = mysql_select_db($database, $connection) or die (Couldn't select database.); $sql = SELECT name FROM members WHERE

[PHP] Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Hi, This might be a newbie question but I can't find an answer anywhere I search. I know php can be excuted by a web browser, but can it run as a script like Perl? The reason i ask is, I need to write a php script that updates a database in a server. And this script needs to be running in the

Re: FW: [PHP] Html forms to php scripts

2003-04-02 Thread Marek Kilimajer
VanZee, Timothy wrote: Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while.

RE: [PHP] Html forms to php scripts

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was

Re: [PHP] Can php run as a script?

2003-04-02 Thread Aaron Gould
Yes, you definitely can... http://www.php.net/manual/en/features.commandline.php -- Aaron Gould Web Developer Parts Canada - Original Message - From: Poon, Kelvin (Infomart) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:43 AM Subject: [PHP] Can php run as a

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
Look for PHP CLI in google. Recent versions of PHP install at CLI PHP executable by default. e.g I ended up with one in: /usr/local/apache/bin/php [EMAIL PROTECTED] root]# /usr/local/apache/bin/php -v PHP 4.3.1 (cli) (built: Feb 20 2003 14:09:35) Copyright (c) 1997-2002 The PHP Group Zend

Re: [PHP] Warning Extract

2003-04-02 Thread Andy
logname is not in my database. It is a session variable used to hold the members login name. In the form it is session_register('logname'); which is then set to a variable with this code: if ($num2 0) { // password is correct $auth=yes; $logname=$fusername; $today

Re: [PHP] Html forms to php scripts

2003-04-02 Thread Tim Burden
What version of Apache are you using? Can you point us to a phpinfo() file? - Original Message - From: Timothy Vanzee [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:31 AM Subject: FW: [PHP] Html forms to php scripts Repost because no

Re: [PHP] Html forms to php scripts

2003-04-02 Thread CPT John W. Holmes
It's an Apache 2 / PHP bug. I think if you use $_POST['ttt'], you'll get the correct value, but I'm not sure. Try turning register globals off or using a stable version of Apache that works with PHP (the 1.3 series). ---John Holmes... - Original Message - From: VanZee, Timothy [EMAIL

[PHP] Email Attachment Problem....

2003-04-02 Thread Mike
Hello, I want to send an email attachment using PHP and the below code works locally but when i upload to my RAQ Cobalt server it doesn't send the attachment and i can't figure out why. If you can offer me any guidance as to why this is happening it is greatly appreciated. **The sendmail is a

Re: [PHP] Warning Extract

2003-04-02 Thread Marek Kilimajer
I meant there is no row in table members where username='$logname', whatever value $logname contains. Don't forget to run session_start() at the begining of every script. Andy wrote: logname is not in my database. It is a session variable used to hold the members login name. In the form it is

[PHP] RE: Can php run as a script?

2003-04-02 Thread Poon, Kelvin (Infomart)
Thanks! but the thing is I have php 4.2.2 version installed in that server. And since it is not 4.3.0 therefore CLI isn't on by default. How can I check if CLI is on or not? If it is not on, I won't be able to excute the php as a script in another other way? THnaks@ -Original

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
find / -name php -print - Original Message - From: Poon, Kelvin (Infomart) [EMAIL PROTECTED] To: 'Tim Burden' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 12:35 PM Subject: RE: Can php run as a script? Thanks! but the thing is I have php 4.2.2 version

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
I used to use wget and run cleanup scripts from cron in the usual way. Some people also used to use lynx to do it, I believe. But the best way would be to install latest version of PHP, IMHO. - Original Message - From: Poon, Kelvin (Infomart) [EMAIL PROTECTED] To: 'Tim Burden' [EMAIL

[PHP] Problem with PHP and MySQl after install

2003-04-02 Thread Don
1) Installed MySQL 4.0.12 2) Installed PHP 4.3.1 One of my config options was --with-mysql=shared,/usr 3) added the following to /etc/ld.so.conf and ran ldconfig: /usr/lib/libmysqlclient.so /usr/lib/mysql 4) When I try to run phpmyadmin, I get the following error: cannot load MySQL extension,

Re: [PHP] Theme selector?

2003-04-02 Thread Steve Keller
At 4/1/2003 08:49 PM, [EMAIL PROTECTED] wrote: Also, I've not convinced anyone where I'm at now to use smarty. In my mind they are penny-wise and pound foolish. The real little extra time you might need to use a template system is richly rewarded in code re-use and future changes to the site

[PHP] mailing forms and input into MySQL

2003-04-02 Thread Scott Miller
Hi all, I have a current php script that allows me to add/remove customer information from a particular MySQL Database. What I would like to do, is when an employee adds a customer, have some (if not all) of that information e-mailed to a particular e-mail address. I've created scripts

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Leif K-Brooks
If it doesn't exist, it will use default settings. To see where it's looking for php.ini, use phpinfo(). Javier Carreras wrote: Hi all, Where does PHP get its settings if php.ini file doesn't exist? BTW- I want to enable sockets that are not enabled. Could I do that without creating a

Re: [PHP] mailing forms and input into MySQL

2003-04-02 Thread Kevin Stone
There is no trick to it. Query the database, build a string, send it off. ? $query = SELECT * FROM mytable; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { foreach ($row as $column = $value) { $body .= $column : $value\n; } $body .= \n; }

[PHP] So many functions!

2003-04-02 Thread Vincent M.
Hello, There so many functions in php that I can't find the one I need. I have a table like that: $lang[english][category]= Category ; $lang[english][backpage]= Go to the back page ; $lang[english][nextpage]= Go to the next page ; ... $lang[francais][category]= Catégorie ;

[PHP] xml parse error?

2003-04-02 Thread Jon King
I'm trying to parse a simple xml file, but I keep getting a strange error at $node-name which returns #text. Is this normal or am I doing something wrong? From what I understand, the $node-name should return branch but it returns #text. TIA Jon --- PHP Code -

[PHP] question: installing PHP with mysql isn't working?

2003-04-02 Thread Don
Hi, Trying to install PHP with the ability to interact with MySQL. In my configuration, I've included the option: --with-mysql=shared,/usr There are no compile errors. Any idea why PHP is not recognizing any MySQL functions? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by

Re: [PHP] So many functions!

2003-04-02 Thread Richard Baskett
What I would do is first read a cookie that you set on the clients machine that follows the accept language guidelines.. so just the first two letters then if that is not set, then take the browsers languages $HTTP_ACCEPT_LANGUAGE and use them. So instead of english you would have 'en', espanol =

[PHP] Ok, problem found, but that makes way for another...

2003-04-02 Thread Ryan Vennell
ok, my last post stated that i've tried reconfigureing.making/makeinstalling php 4.3.1 a tons of times. well, today when i typed php -v it told me that version 4.2.2 was the one that was installed. so apparently my installing has not been taking the place of the old one. The original root

[PHP] Re: question: installing PHP with mysql isn't working?

2003-04-02 Thread Ryan Vennell
you can try just straight --with-mysql without the = and it may be in the default path... Don[EMAIL PROTECTED] 04/02/03 03:18PM Hi, Trying to install PHP with the ability to interact with MySQL. In my configuration, I've included the option: --with-mysql=shared,/usr There are no compile

Re: [PHP] uploading entire directory, with or without compression...

2003-04-02 Thread Burhan Khalid
Jason Wong wrote: On Wednesday 02 April 2003 22:08, Kenn Murrah wrote: yes, of course they can ... but i'm looking for a way to automate the process for them (a method which may not exist) .. i suppose i can give them the option to upload multiple files using multiple input fields, but I'd really

Re: [PHP] Menu from Directory

2003-04-02 Thread Burhan Khalid
Ben Whitehead wrote: I am trying to sort an image menu system which is passed a directory name, and can count and name the files in a menu from simply seeing which files are in this directory. It would be ideal if it can just do this just by looking at the files in the directory, and their file

Re: [PHP] mailing forms and input into MySQL

2003-04-02 Thread Lowell Allen
From: Scott Miller [EMAIL PROTECTED] I have a current php script that allows me to add/remove customer information from a particular MySQL Database. What I would like to do, is when an employee adds a customer, have some (if not all) of that information e-mailed to a particular e-mail

Re: [PHP] Html forms to php scripts

2003-04-02 Thread Burhan Khalid
Ford, Mike [LSS] wrote: -Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I

Re: [PHP] So many functions!

2003-04-02 Thread Burhan Khalid
Vincent M. wrote: Hello, There so many functions in php that I can't find the one I need. I have a table like that: $lang[english][category]= Category ; $lang[english][backpage]= Go to the back page ; $lang[english][nextpage]= Go to the next page ; ... $lang[francais][category]=

Re: [PHP] So many functions!

2003-04-02 Thread Matt Vos
Try $languages = array_keys($lang); This will create an array $languages = array(english,francais); Matt - Original Message - From: Vincent M. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:58 PM Subject: [PHP] So many functions! Hello, There so many

[PHP] Re: parse_str()

2003-04-02 Thread Ron Rudman
I think you mean: $example_string = '?action=kickitem=me'; Jose [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I might be wrong here, but with the code below I would expect $_GET to be filled and the script to output the next line: ?php $example_string = 'action=kickitem=me';

Re: [PHP] Re: parse_str()

2003-04-02 Thread Rasmus Lerdorf
Jose [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I might be wrong here, but with the code below I would expect $_GET to be filled and the script to output the next line: ?php $example_string = 'action=kickitem=me'; parse_str($example_string); var_dump($_GET);

[PHP] One form - two db's?

2003-04-02 Thread Scott Miller
Is it feasible to have a php form update two different MySQL DB's at the same time, with all info going to one DB, and just certain info going to the second? Just dreaming of ways to make my life easier. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Nested select options from database.

2003-04-02 Thread Krista
Hi everyone, Is it possible, using just PHP, to pull a select menu from a DB, then when the person makes a selection have it populate a second drop down select menu, and again for a third one? Would javascript need to be involved here to keep it all on the same page? I'm in pretty desperate

[PHP] Making it so the .php isn't needed

2003-04-02 Thread Teren Sapp
Hi, I had it setup on my server before i reloaded it, but what i need to have happen is so that when i'm passing variables to a php file, I don't have to include the .php in the link...so i can have http://www.my-domain.com/page1?var1=3var2=4 instead of

Re: [PHP] Nested select options from database.

2003-04-02 Thread olinux
--- Krista [EMAIL PROTECTED] wrote: Hi everyone, Is it possible, using just PHP, to pull a select menu from a DB, then when the person makes a selection have it populate a second drop down select menu, and again for a third one? Would javascript need to be involved here to keep it all

RE: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Jennifer Goodie
You can accomplish this by enabling multiviews in your httpd.conf -Original Message- From: Teren Sapp [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 3:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Making it so the .php isn't needed Hi, I had it setup on my server before

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Peter Houchin
at a guess would say have something to do with the line in ur server config ... eg in apache the httpd.conf file ... and where you tell it what to run thru the php engine Teren Sapp wrote: Hi, I had it setup on my server before i reloaded it, but what i need to have happen is so that when i'm

RE: [PHP] One form - two db's?

2003-04-02 Thread John W. Holmes
Is it feasible to have a php form update two different MySQL DB's at the same time, with all info going to one DB, and just certain info going to the second? Yes... make your connection, select the first database, do your insert, select the second database, and do your final insert. Isn't

  1   2   >