Re: [PHP] foreach statement

2002-01-08 Thread David Balatero
Nope, the exact syntax is foreach ($emails as $this_is_one_address) { } ...With that "as" in there. HTH David Balatero [EMAIL PROTECTED] - Original Message - From: "Chris Grigor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, January 08

RE: [PHP] foreach statement

2002-01-08 Thread Chris Grigor
Hey Niklas yea thats what I want, just one thing foreach($emails as $this_is_one_address) { would it be foreach($emails) { or am I missing something in there ? ? mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 8:59 To: 'Php-General-List (E-mail)' Subject: [PHP] foreach stat

RE: [PHP] Cyrus IMAP 4.0.16 TAR error

2002-01-08 Thread Maciej Uhlig
> -Original Message- > From: gaukia 345 [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 6:00 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Cyrus IMAP 4.0.16 TAR error > > > I downloaded Aeromail from freshmeat.net. It needed an IMAP server. So I > went to ftp.andrew.cmu.edu

RE: [PHP] foreach statement

2002-01-08 Thread Niklas Lampén
I think this is what you want to do: mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 8:59 To: 'Php-General-List (E-mail)' Subject: [PHP] foreach statement Okay lets see who has there thinking caps on today (cos I really dont) I have a list of email addresses stored in a text file. I am a

[PHP] foreach statement

2002-01-08 Thread Chris Grigor
Okay lets see who has there thinking caps on today (cos I really dont) I have a list of email addresses stored in a text file. I am able to run the script and get all the mail addresses in the list mailed but thats all in one mail. I want to be able to open the file, chop each line and send in

Re: [PHP] echo "" problem NEW

2002-01-08 Thread Steve Maroney
I simply use single quotes for html and double quotes for PHP. echo ""; works for me. Steve On Tue, 8 Jan 2002, Steven Cayford wrote: > On 2002.01.09 02:00:55 -0600 universal2001 wrote: > > > so I tired to use (echo) like this: > > > > echo " > > > > > border="0"> > > > > >

Re: [PHP] echo "" problem NEW

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steven Cayford) wrote: > You can tell php to treat quotes as text by escaping > them: putting a \ in front of them like this: > > echo ""; > > Or you could drop out of php mode entirely to do your html like this: > > ...php stuff here ... >

[PHP] globals not working for me with 4.1.0

2002-01-08 Thread Matt Pieklik
Hello, I had a script that was workin for me with PHP 4.0.6. I upgraded to 4.1.0 because another app required it, and it broke the original script I was using. Under 4.0.6 I was able to do the following: global $PHP_AUTH_USER,$PHP_AUTH_PW; echo $GLOBALS[REMOTE_ADDR]; This would echo the correct

FW: [PHP] echo "" problem NEW

2002-01-08 Thread Necro
Use the \ escape character. echo "\n"; ."\n"; ."\n"; ."\n"; ."\n" Use the . to add to echo to make the code easier to manage. Use \n to take a newline in html so that the source code is easy to read once you view it from a browser. Just make sure at the end of your last addition line with . that

[PHP] Cyrus IMAP 4.0.16 TAR error

2002-01-08 Thread gaukia 345
I downloaded Aeromail from freshmeat.net. It needed an IMAP server. So I went to ftp.andrew.cmu.edu to get Cyrus IMAP 4.0.16. I unpacked it using TAR but there're some errors including CRC. I downloaded again and re-tried. Same error. Don't know what to do because the FTP site is the official

[PHP] serial array vs. hash....

2002-01-08 Thread Eric McKeown
Hi folks, Quick question about the performance implications of looking up info in a hash (associative array) vs. looking it up in a serial array. I have a script that will be running a function (actually several similar functions) up to 1500 times to verify that certain data values are in a vali

Re: [PHP] echo "" problem NEW

2002-01-08 Thread Steven Cayford
On 2002.01.09 02:00:55 -0600 universal2001 wrote: > so I tired to use (echo) like this: > > echo " > > border="0"> > > > src="img_heading/index_r1_c1.gif" width="639" height="5" border="0"> > border="0"> > > > src="img_heading/index_r2_c1.gif" width="25" height

RE: [PHP] Time

2002-01-08 Thread Martin Towell
date("d M Y, H:i:s", $replyby); -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Time How can I make a variable which is the current time + 48 hrs?? I had $replyby = time() + 172800; But that return

[PHP] Time

2002-01-08 Thread Necro
How can I make a variable which is the current time + 48 hrs?? I had $replyby = time() + 172800; But that returns time in seconds. How can I then format that $replyto into day month year, HH:MM:SS ?? Andrew Duck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Apache and PHP under win98 help !

2002-01-08 Thread Lindsey
Hi, Please check the link below, this site explains to you in clear details how to install and configure php and apache on windows 98. I have tried it and it works. http://internetmaster.com/installtutorial/install.htm I hope that this will be helpfull to you. Lindsey -- PHP General Mailing

[PHP] Re: Apache virtualhosts with different user

2002-01-08 Thread Philip Hallstrom
You could also run separate instances of the httpd binary with different configs telling them what ip/port to bind/listen to...then run the server as that user... not very efficient for a lot of users, but it would work for a small set. On Wed, 9 Jan 2002, Rich Buggy wrote: > > > if I define 'u

[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Sorry to post twice, I should have said that I'm using php 4.1.11. A PEAR example would be even better :) > Hi everyone, > > Does anyone have a link to a good reference on how to insert a binary file > (zip file) into MSSQL? > > I've got the upload and stuff working, just a bit unsure about how

[PHP] echo "" problem NEW

2002-01-08 Thread universal2001
Hi again! Thanks for the reply! I still have another question: I want to create a recycleable code by printing a set of html code which I copied and paste from my html edittor. however because there are lots of quotation marks on the html code it result an error page. here is part of the html

php-general Digest 9 Jan 2002 05:06:48 -0000 Issue 1100

2002-01-08 Thread php-general-digest-help
php-general Digest 9 Jan 2002 05:06:48 - Issue 1100 Topics (messages 79799 through 79859): Re: Supplied argument is not a valid MySQL result resource 79799 by: Andrey Hristov 79800 by: Andrey Hristov 79801 by: Dan McCullough 79803 by: Jimmy Http request

[PHP] inserting a file into MSSQL

2002-01-08 Thread Peter Lavender
Hi everyone, Does anyone have a link to a good reference on how to insert a binary file (zip file) into MSSQL? I've got the upload and stuff working, just a bit unsure about how I'm now going to put the file(it's been moved) into the database itself. The datatype I have used is Image, but most

Re: [PHP] Apache virtualhosts with different user

2002-01-08 Thread Rich Buggy
> if I define 'user' in virtualhost section of apache's httpd.conf, then my > cgi scripts will be running as 'user' if suexec has been set up correctly. > It's okay. But how can I tell apache to run the whole virtualhost as > 'user'? Including accessing html files, and especially php. In 1.3 y

Re: [PHP] I'm new - one page to another

2002-01-08 Thread Bogdan Stancescu
Use -- make sure you use rawurlencode() on $val if you expect it to contain special characters that can't be passed via URL (such as spaces or ampersands). Bogdan universal2001 wrote: > Hi! > > I'm new to PHP and I have tried to find the answer to my questions but I > still have no luck. > > I

[PHP] I'm new - one page to another

2002-01-08 Thread universal2001
Hi! I'm new to PHP and I have tried to find the answer to my questions but I still have no luck. I'm trying to make a page which is based on the data that I retrieved from my database. now, I want to make a link (text) to a new page but I want to pass my variable also. I don't have any form at a

RE: [PHP] functions...

2002-01-08 Thread Martin Towell
it's possible to pass a variable number of parameters to a function $num = func_num_args(); for ($i = 1; $i < $num; $i++) { $arg = func_get_arg($i); } try looking at these... -Original Message- From: Chris Hall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 1:4

[PHP] Re: php 4.1.1 and imap/ssl

2002-01-08 Thread Ron Peterson
Ron Peterson wrote: > > I've installed php 4.1.1. with the following configure options: > > ./configure --prefix=/usr/local/versioned/php-4.1.1 > --with-apache=../apache_1.3.19 --with-openssl --with-imap > --with-imap-ssl=/usr/local/openssl --with-kerberos --with-gettext > --with-xml --with-pgsq

Re: [PHP] Checking mail origin?

2002-01-08 Thread Bogdan Stancescu
Thanks for all the suggestions! I found something which suits me just fine based on your ideas - wanted to share it. The system separates most of the elements in the database (including the e-mails) based on project. That means that the users are notified when a project is created and given a spe

RE: [PHP] Apostrophes and text fileds forms

2002-01-08 Thread Jason Murray
> What is an addSlash ? > How can I appy addSlashes ? Can anyone give me an example ? Try the manual ... http://www.php.net/addslashes Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

[PHP] Apostrophes and text fileds forms

2002-01-08 Thread Rafael Perazzo
>You need to apply addSlashes() to the text fields >before entering >them into the database. >Jason What is an addSlash ? How can I appy addSlashes ? Can anyone give me an example ? Thanks Rafael Perazzo __ Do You Yahoo!? Send FREE video emails

[PHP] PHP] apostrophe's in PHP & MySQL

2002-01-08 Thread Rafael Perazzo
I have the same problem with the apostrophes in text fields form object. When I try to enter a string that contains ' the data is not entered in the database. I use PHP 4 and Mysql 3.23. How can I avoid this problem ? __ Do You Yahoo!? Send FREE v

RE: [PHP] apostrophe's in PHP & MySQL

2002-01-08 Thread Jason Murray
> Is there a way around this? Or is this a limitation of my > older versions of PHP and MySQL? You need to apply addSlashes() to the text fields before entering them into the database. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] Checking mail origin?

2002-01-08 Thread Miles Thompson
Bogdan, Penny just dropped with what Tom suggested. REad up on how Debian does it, use the web of trust approach. Miles At 12:52 PM 1/9/2002 +1000, Tom Rogers wrote: >Hi >You could get all your users to add an encrypted signature to their emails >and check that on recieipt. >Tom > >At 11:35 A

[PHP] apostrophe's in PHP & MySQL

2002-01-08 Thread Tim Thorburn
Hi, I've been experiencing some sporadic problems with a few web forms written in PHP 3.0.16 and MySQL 3.23.31 with text fields (both single lines and rows). Generally if any of the text in these forms contains an apostrophe - either nothing is entered into the database, or nothing after the

Re: [PHP] Checking mail origin?

2002-01-08 Thread Tom Rogers
Hi You could get all your users to add an encrypted signature to their emails and check that on recieipt. Tom At 11:35 AM 9/01/02, Bogdan Stancescu wrote: >Hi all! > >I'm working on a free software package due to be launched on freshmeat >some time soon (next month most probably). The program is

[PHP] How reliable is the 'user' in http://user@somehost.com/???

2002-01-08 Thread Philip Hallstrom
Hi - For one of my projects I need to pass around a bit of information to all the pages. The information is the same throughout and is the same for groups of clients. Right now I just pass it on the query string, but it's getting cumbersome so I started looking into sessions and I see th

[PHP] functions...

2002-01-08 Thread Chris Hall
function lala() { do i HAVE to define a variable or argument function lala($var) { or can i use it like: lala($stmt); will $stmt become part of the function? -- Chris Hall hardwired industries -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] Apache virtualhosts with different user

2002-01-08 Thread Gabor Gludovatz
Hello, if I define 'user' in virtualhost section of apache's httpd.conf, then my cgi scripts will be running as 'user' if suexec has been set up correctly. It's okay. But how can I tell apache to run the whole virtualhost as 'user'? Including accessing html files, and especially php. Is it possi

Re: [PHP] Checking mail origin?

2002-01-08 Thread Bogdan Stancescu
Billy Harvey wrote: > Bogdan, a technique I've used in the past may work for you. > > When someone wants to upload something, I have them request a cookie by > sending a blank email to a specific address. This automatically > generated cookie is good for some limited time (whatever works for you

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
> Thank you Jason ,I will check the Digital Envoy to get more > information, have you got the website address of it? www.google.com ... "digital envoy" ... "I'm feeling lucky" :) ... or just www.digitalenvoy.net. Search engines are fun :) -- Jason Murray [EMAIL PROTECTED] Web Developer, Melb

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Thank you Jason ,I will check the Digital Envoy to get more information ,have you got the website address of it? -ԭʼÓʼþ- ·¢¼þÈË: Jason Murray [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 09 January, 2002 10:06 ÊÕ¼þÈË: 'Zhang, Leon (STHK/Zh)'; [EMAIL PROTECTED] ³­ËÍ: [EMAIL PROTECTED] Ö÷Ìâ: R

Re: [PHP] Sessions

2002-01-08 Thread Ryan Kelley
I actually fixed the problem with the following code: session_start(); $HTTP_SESSION_VARS['sess_id']=$PHPSESSID; Except that it will not assign an actual value until i hit refress on my browser. Any ideas for a fix? Thanks, Ryan Kelley "Kirk Johnson" <[EMAIL PROTECTED]> wrote in message 01A

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
> Thank you Andrew,but in China mainland ,I saw many websites can even tells > the province information which the user come from and I think in USA the > State information can also be gotten from the visitor's ip address.BTW,in > PHP what we can get is just the ip address of the user how can we ge

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Thank you Andrew,but in China mainland ,I saw many websites can even tells the province information which the user come from and I think in USA the State information can also be gotten from the visitor's ip address.BTW,in PHP what we can get is just the ip address of the user how can we get the h

Re: [PHP] How MySQL Query and Fetch work?

2002-01-08 Thread Mehmet Kamil ERISEN
Hi, Suppose you have a table students: student_id / student_name / GPA here is the code: $sql = "select * from students"; $result = mysql_query($sql); while(list($student_id, $student_name,$gpa)=mysql_fetch_array($result) { echo $student_name." has a GPA of".$gpa.""; } btw, th

Re: [PHP] IP address from which country

2002-01-08 Thread Andrew Brampton
No such table, the best you can do is look at their hostname and parse the last part ie .co.uk or .com... And then u can try and figure where they are from that Andrew - Original Message - From: Zhang, Leon (STHK/Zh) To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 1:03

Re: [PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Miles Thompson
Check tutorials at Thickbook, WebMonkey, DevShed, etc. and the manual. Asking this question indicates you haven't taken the first critical step yourself. So I searched the php site for 1. "connect", 12 hits, including one explicitly for mysql. 2. "database", 12 hits, none for mysql, but close

[PHP] Checking mail origin?

2002-01-08 Thread Bogdan Stancescu
Hi all! I'm working on a free software package due to be launched on freshmeat some time soon (next month most probably). The program is a project development environment, somewhat similar to phpGroupWare but, I like to think, better and with less bugs. Due to the nature of the project I need to

[PHP] How MySQL Query and Fetch work?

2002-01-08 Thread Alex Shi
Yesterday I posted a question yet got response. The question is regarding to how Query works. Now I repost it in a more specific way. I am just wondering how MySQL API functions work. Let's look at following two functions: 1. mysql_query(), 2. mysql_fetch_array() To my understanding, mysql_q

[PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Hi,  In php ,we can easily get the ip address of a connected computer ,but I always see on the web that there are some pages can tell you where you are from,so there must be a complete table show the relation of the ip address and country or region ,where can I find this .   Thanks . Leon  

[PHP] SetHandler & PHP (parsing pages through a php script)

2002-01-08 Thread C J Michaels
Server version: Apache/1.3.22 (Unix) + mod_php/4.1.1 Hello, Short Question: What is php's apache handler, i.e. for use with the "SetHandler" statement? Longer Version: I would like to parse every URI that is requested on a certain VirtualHost, through a specific PHP script. I have _almost_ fig

Re: [PHP] newbie - help with field variables in forms

2002-01-08 Thread Ivan Balazs
Hi! A very simple way to do this is by checking the variables of the form (the names of fields) if they are isset() or not. To be more specific you can even check, if any of them is empty(). In special cases like the email address, i suggest using regexp to check if it is a valid email address.

RE: [PHP] Webmail with Attach

2002-01-08 Thread Martin Towell
you just need to loop this part of the code: $msg_body .= "\n\n--Message-Boundary\n"; $msg_body .= "Content-type: $attach_type; name=\"$attach_name\"\n"; $msg_body .= "Content-Transfer-Encoding: BASE64\n"; $msg_body .= "Content-disposition: attachment; filename=\"$attach_name\"\n\n"; $m

RE: [PHP] Webmail with Attach

2002-01-08 Thread Jason Murray
> I need that that my webmail can send mail with many attach. > How can I do it? You could either ask the user how many attachments they want, and present that number of fields, or you can grab the file attachment from the user, store it in a uniquely-named temporary directory, get another, and

[PHP] Webmail with Attach

2002-01-08 Thread Luz Lopez
Hi All, I am making a webmail, this webmail can send with just one attach, but I need that that my webmail can send mail with many attach. Now my function have the follwing code line: if ($attach != "none") { $file = fopen($attach, "r"); $contents = frea

[PHP] Re: stripping high ascii from a string

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bill) wrote: > Is there a function that can strip high ascii from a string? How about a regex? preg_replace() supports matching on octal or hex ranges , so perhaps one of these...? $news

[PHP] stripping high ascii from a string

2002-01-08 Thread bill
Is there a function that can strip high ascii from a string? thanks, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] newbie - help with field variables in forms

2002-01-08 Thread Andrea Caldwell
Hi there, I'm really, really new at this (like 2 days into it) and never programmed before (besides HTML)... so please bear with me. I established an email feedback form, everything works fine, and now I'd like to add code to make a couple of fields required. What function would I use for this

[PHP] Re: Date

2002-01-08 Thread Mike Eheler
echo date('m/d/Y', strtotime('September 1, 2002')); http://www.php.net/manual/en/function.date.php Mike Aurelio wrote: > hi, > > how i make to catch a future date, with this formatting 09/01/2002.??? > > thanks, > Aurélio Sabino > > -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] Maybe OT but I was wondering....

2002-01-08 Thread Maciej Uhlig
read http://shat.net/php/404/ as an example then do your page... Maciek > -Original Message- > From: Ben Turner [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 08, 2002 9:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Maybe OT but I was wondering > > > I am trying to set up a com

[PHP] Re: Maybe OT but I was wondering....

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ben Turner) wrote: > I am trying to find somewhere that I can identify a custom 404 > error page and then pull the page based on the document directory. If you just want to customize your 404 page (presumably to call a PHP script?), your web

Re: [PHP] Maybe OT but I was wondering....

2002-01-08 Thread Richard Crawford
I believe that this is something you actually set in your webserver. Which webserver are you running? Check out the documentation for that. Ben Turner wrote: > I am trying to set up a completely dynamic site using php and a mysql > backend. I am trying to find somewhere that I can identify a

[PHP] Maybe OT but I was wondering....

2002-01-08 Thread Ben Turner
I am trying to set up a completely dynamic site using php and a mysql backend. I am trying to find somewhere that I can identify a custom 404 error page and then pull the page based on the document directory. Problem is, is this even possible in PHP? I haven't found too much related to custom 4

[PHP] Date

2002-01-08 Thread aurelio
hi, how i make to catch a future date, with this formatting 09/01/2002.??? thanks, Aurélio Sabino

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Patrik Wallstrom
On Tue, 8 Jan 2002, Mike Eheler wrote: > Too late for that, too.. in addition to providing web hosting for > hundreds of sites, we are also a web development company and have 2 > major websites out there using extended php 4.1 features. > > We need STD_DES, and it appears that PHP 4.1 has switche

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
Too late for that, too.. in addition to providing web hosting for hundreds of sites, we are also a web development company and have 2 major websites out there using extended php 4.1 features. We need STD_DES, and it appears that PHP 4.1 has switched to using MD5 by default. Thanks for your he

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Patrik Wallstrom
On Tue, 8 Jan 2002, Mike Eheler wrote: > It's too late for that. And I don't believe that the system's crypt() > function just magically changed at exactly the same time we upgraded to > PHP 4.1 According to the crypt() man page, crypt() can use four methods of encryption: CRYPT_STD_DES - Sta

RE: [PHP] Re: E-Commerce: go TEP

2002-01-08 Thread Kraa de Simon
BTW TEP is called osCommerce nowadays. http://www.oscommerce.com/ > -Original Message- > From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] > Sent: dinsdag 8 januari 2002 17:08 > To: Julio Nobrega Trabalhando > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: E-Commerce: go TEP > > > I h

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
It's too late for that. And I don't believe that the system's crypt() function just magically changed at exactly the same time we upgraded to PHP 4.1 Mike Patrik Wallstrom wrote: > On Tue, 8 Jan 2002, Mike Eheler wrote: > > >>Is there any way to force PHP 4.1's crypt to generate crypt's wit

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Patrik Wallstrom
On Tue, 8 Jan 2002, Mike Eheler wrote: > Is there any way to force PHP 4.1's crypt to generate crypt's with > 2-letter salts? We've written some apps that do things the hack way -- > if (crypt($pass,substr($pass,0,2)) == $cryptpass) -- and changing all of > them to work the extended way is a real

[PHP] Question about php.ini and dynamic extensions

2002-01-08 Thread Joelmon2001
Hello, if I want to be able to load dynamic extensions via php, do I just go to php.ini and under ;; ; Dynamic Extensions ; ;; Do I just add the extensions I need? extension=msql.so extension=gd.so extension=xml.so making sure they are uncommen

[PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
Is there any way to force PHP 4.1's crypt to generate crypt's with 2-letter salts? We've written some apps that do things the hack way -- if (crypt($pass,substr($pass,0,2)) == $cryptpass) -- and changing all of them to work the extended way is a real pain the arse. That includes changing all o

[PHP] Apache and PHP under win98 help !

2002-01-08 Thread rick
hi guys , I have a problem with my Apache and PHP configuration under win 98 . I can't make it works.. This is my httpd lines pointing to php : LoadModule php4_module c:\php\dlls\php4apache.dll AddType application/x-httpd-php .php4 ScriptAlias /php4/ "C:/php/"

[PHP] Re: [php-xml] Http Request

2002-01-08 Thread Manuel Lemos
Hello, Sandeep Murphy wrote: > > Hi, > > Can anyone tellme how I can do a http request to a servlet from a PHP?? > > I mean, I have a username and password which I want to send in a > string(variable) to a Servlet which authentifies it and responses back in > XML format... > > any suggestions

Re: [PHP] Re: Http request

2002-01-08 Thread Jon Farmer
> just use post to send your username/password to the servlet > > >Hi, > > > >Can anyone tellme how I can do a http request to a servlet >from a PHP?? > > > >I mean, I have a username and password which I want to >send in a string(variable) to a Servlet which authentifies >it and responses back in

[PHP] Trouble with named session vars in classes

2002-01-08 Thread Alan McFarlane
I'm having trouble with some session management code. What I'm after is a basic class which is capable of storing some data via the built-in session handling routines. The name of the session variable must be configurable at run-time. i.e: $object1 = new Object( 'object1_session_variable_name'

[PHP] Re: Http request

2002-01-08 Thread David
just use post to send your username/password to the servlet >Hi, > >Can anyone tellme how I can do a http request to a servlet >from a PHP?? > >I mean, I have a username and password which I want to >send in a string(variable) to >a Servlet which authentifies >it and responses back in XML for

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Jimmy
Hi Dan, > $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC"; > $parent_result = mysql_query($parent_sql); change the line to this one and run it again to see the error: $parent_result = mysql_query($parent_sql) or die(mysql_error()); -- Jimmy Brain of

[PHP] Http request

2002-01-08 Thread Sandeep Murphy
Hi, Can anyone tellme how I can do a http request to a servlet from a PHP?? I mean, I have a username and password which I want to send in a string(variable) to a Servlet which authentifies it and responses back in XML format... any suggestions?? TIA, sandeep -- PHP General Mailing List (htt

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Dan McCullough
Here is the code $parent_select = "Parent Category:"; $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC"; $parent_result = mysql_query($parent_sql); while ($parent = mysql_fetch_array($parent_result) ) { <-- the problem line $parent_select .= "".$parent['cat_name'].""; } $parent_sel

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Andrey Hristov
Try this: $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC"; $parent_result = mysql_query($parent_sql); var_dump($parent_result); while ($parent = mysql_fetch_array($parent_result) ) { <-- problem here $parent_select .= "".$parent['cat_name'].""; } Regards, Andrey - Origina

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Andrey Hristov
Possibilities: 1)There was an error when mysql_query(). Possibly the SQL statement is not correct. Trace with var_dump()/mysql_errno(). 2)You give as parameter to some of mysql_* functions a variable not returned from mysql_query(). HTH Regards, Andrey Hristov - Original Message - Fr

php-general Digest 8 Jan 2002 16:47:59 -0000 Issue 1099

2002-01-08 Thread php-general-digest-help
php-general Digest 8 Jan 2002 16:47:59 - Issue 1099 Topics (messages 79752 through 79798): Question About W32 API 79752 by: "João P. Bragança" php 4.1.1 and imap/ssl 79753 by: Ron Peterson How to add a carriage return in the end when using implode? 79754 by: Zhang,

[PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Dan McCullough
I know this is a common error, but what does it mean. This snippet of code is something I use all the time. help please. dan __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- PHP General Mailing List

Re: [PHP] Re: E-Commerce: go TEP

2002-01-08 Thread Vincent Stoessel
I have to second the TEP recommendation. I am using it for an E-tailer client of mine and it is performing flawlessly. Also, the project has a lot of enthusiastic developers behind it. Julio Nobrega Trabalhando wrote: > >

RE: [PHP] Sessions

2002-01-08 Thread Johnson, Kirk
"!sess_id|" means that $sess_id has been registered, but it hasn't been assigned a value. Is register_globals on or off in php.ini? Did you assign a value to $sess_id? Kirk > -Original Message- > From: Ryan Kelley [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 8:59 PM > To:

Re: [PHP] Error

2002-01-08 Thread Steve Cayford
On Tuesday, January 8, 2002, at 09:37 AM, Dean Ouellette wrote: > Hi I am learning php with Sams leanr php in 24 hours. > > This is one example >function addNums($firstnum, $secondnum) > { > $result = $firstnum + $secondnum; > return $result;11:

[PHP] Re: E-Commerce

2002-01-08 Thread Julio Nobrega Trabalhando
I haven't used, but heard good stuff from folks of the local mailing list, from TEP. http://theexchangeproject.org/ -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=66417674

[PHP] Error

2002-01-08 Thread Dean Ouellette
Hi I am learning php with Sams leanr php in 24 hours. This is one example When I run it get error line 13 any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

Re: [PHP] Redirecting to a URL

2002-01-08 Thread Bogdan Stancescu
Use headers as suggested or use javascript if you want to be able to notify the user about the redirection. Bogdan Robert MacCombe wrote: > Hi, how do I redirect to a different URL, e.g. as a result of an IF > condition being true. I'm basically looking for a PHP version of the ASP - > Response

Re: [PHP] PHP 4.4.1 and Interbase

2002-01-08 Thread Todd Cary
I rolled back to php-4.0.6 and all works fine. http://209.204.172.137/testgdb.php and http://209.204.172.137/testphp.php H? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] Redirecting to a URL

2002-01-08 Thread Henning Sprang
Hy Robert MacCombe wrote: > Hi, how do I redirect to a different URL, e.g. as a result of an IF > condition being true. I'm basically looking for a PHP version of the ASP - > Response.Redirect("/otherpage.htm") use the header function to send a location: header to the browser: $redirect_ur

[PHP] Re: Redirecting to a URL

2002-01-08 Thread Gianni Del Papa
Here is $location = "http://www.php.net/";; header ("Location: $location"); Using this istruction take a look if header was already sent in previous code of your page ... Have fun :) Gianni Robert Maccombe wrote: > > Hi, how do I redirect to a different URL, e.g. as a result of an IF

RE: [PHP] can u find error in php file?

2002-01-08 Thread Rick Emery
Given the simplicity of the mail() function, why go to all this trouble? I must be missing something here. Does your PHP host lack SMTP, so you must use another server's SMTP? -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:25 AM To: [E

[PHP] Redirecting to a URL

2002-01-08 Thread Robert MacCombe
Hi, how do I redirect to a different URL, e.g. as a result of an IF condition being true. I'm basically looking for a PHP version of the ASP - Response.Redirect("/otherpage.htm") -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] jukebox

2002-01-08 Thread Scott
On Sun, 6 Jan 2002, Meir Kriheli wrote: > A quick search at freshmeat shows several projects doing the same thing > already, you might want to check them out for reference: > > http://freshmeat.net/search/?q=jukebox%20php Thank you for the tip! I actually started working on the project last n

Re: [PHP] Designer adrift in a sea of code - please point me towards land...

2002-01-08 Thread Bogdan Stancescu
Hi! I noticed you've been repeatedly posing this message. The reason why nobody answers is because your question is a little strange. The answer is yes, you could have something like [file whatever.php] [eof] [file photos.php]

[PHP] if() Load a different php.ini

2002-01-08 Thread Julio Nobrega Trabalhando
Hi All, I used php 4.0.6 and had to port a system to 4.1.0. So I changed some vars ($_POST, $_SESSION, etc..), and begin to use the new php.ini (with different scope for stuff). We hired another person to work with us on another project. So I need him to access on a different machine my ho

[PHP] E-Commerce

2002-01-08 Thread Necro
Hi, Has anyone ever used any of the ecommerce shops from hotscripts.com before?? or used any other scripts similar?? I am trying to work out which people think is the best for setting up an online shop with credit card facilities, etc. Thankyou Andrew Duck -- PHP General Mailing List (http:

Re: [PHP] really weird

2002-01-08 Thread Henning Sprang
Chris Grigor wrote: > Hi Henning > > If I use modification time, how would I use keep state before exiting (I > have never done that aggghhh!) i didn't do that before, too, I just can imagine how it should work :) before exiting or right after sending the mail you would need to write the ac

[PHP] no one can find solution to my problem??

2002-01-08 Thread Balaji Ankem
> > Do I get to see the class then? Thankyou. :-) > > It's hard to see what this line is doing: > > > $smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, '', '')); This line creates SMTP session (parameters are mail server, SMTP port, authentication required or not) > Without seei

RE: [PHP] POSTing HTML into a database

2002-01-08 Thread Ford, Mike [LSS]
> -Original Message- > From: James Arthur [mailto:[EMAIL PROTECTED]] > Sent: 07 January 2002 21:41 > For example, consider the string $body = "I am saying \"Hello\""; > > > is interpreted by the browser as > > And so we have a problem. > > What can I do about that? Since this is

  1   2   >