[PHP] How can I do this correctly? Trying to get gd to work...

2002-01-08 Thread Joelmon2001
with dl() function. Thanks for your time. Even though I read php.net's support on dl, I still cannot get it to work, so I figured I'd ask (if I may) The syntax was: ? dl(libdg.so) ? ERROR: Warning: Unable to load dynamic library './libdgso' - ./libdgso: cannot open shared object file: No

Re: [PHP] How can I do this correctly? Trying to get gd to work...

2002-01-08 Thread João P. Bragança
You must change extension_ dir php.ini. Also Re: [PHP] Question about Php/Mysql. Unsure if it's enabled. Those are enabled by default, also in your php.ini At 03:22 1/8/02 -0500, you wrote: with dl() function. Thanks for your time. Even though I read php.net's support on dl, I still cannot get

Re: [PHP] How to add a carriage return in the end when using implode?

2002-01-08 Thread Jason Wong
On Tuesday 08 January 2002 14:18, Zhang, Leon (STHK/Zh) wrote: $subdata has been changed before then $data[$index]=implode(,, $subdata); --what should I change here ? rewrite the file like this : $data[$index]=$data[$index]; $fp=fopen($datafile,w+); $a=0; do{

re: [PHP] How to add a carriage return in the end when using implode?

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Yes,I have just worked out ,thank you Jason. -原始邮件- 发件人: Jason Wong [mailto:[EMAIL PROTECTED]] 发送时间: 08 January, 2002 16:46 收件人: [EMAIL PROTECTED] 主题: Re: [PHP] How to add a carriage return in the end when using implode? On Tuesday 08 January 2002 14:18, Zhang, Leon (STHK/Zh) wrote:

RE: [PHP] global generation

2002-01-08 Thread Tim Ward
-- From: Boget, Chris [SMTP:[EMAIL PROTECTED]] Sent: 07 January 2002 19:20 To: 'Kevin Stone'; Rodney Davis; [EMAIL PROTECTED] Subject: RE: [PHP] global generation Wait until after the for loop has completed. for ($i=0; $i

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

2002-01-08 Thread tim at 10Kv
Thanks for everyone's comments its given me a better idea of what php can do. I need a little clarification on what's been said then Ill unsubscribe and never come back ­ I just need to know if this is the kind of thing php can help me with. ... If I understand what you have told me so far it

[PHP] can u find error in php file?

2002-01-08 Thread Balaji Ankem
?php include_once('Mail/smtp.php');include_once('Net/SMTP.php'); # Replace 127.0.0.1 with another SMTP host if needed$smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, '', ''));$headers['Subject'] = 'Sample subject';$headers['Reply-To'] = '[EMAIL PROTECTED]';$headers['From'] =

[PHP] stat failed

2002-01-08 Thread V
I have an application where the user can upload a file on a folder. Then my application must read how many data this user have available. I store in an interbase database the limit of his capacity. It all works fine, but with some archives i receive an error: Warning: stat failed for

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

2002-01-08 Thread Balaji Ankem
?php /* recipients */$to = "Mary [EMAIL PROTECTED]" ; /* subject */$subject = "Birthday Reminder"; /* message */$message = 'htmlheadtitleBirthday Reminders for August/title/headbodypHere are the birthdays upcoming in August!/ptabletr thPerson/ththDay/ththMonth/ththYear/th/trtr

[PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Félix García Renedo
Hello, How could I configure php to access to a remote mysql database? Thanks

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

2002-01-08 Thread Richard Baskett
Well it looks to me that your headers variable is an array and that isnt really going to work with the mail function unless you arraywalk it. Hopefully that helps, since it's the only thing I can think of ?php /* recipients */ $to = Mary [EMAIL PROTECTED] ; /* subject */ $subject =

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

2002-01-08 Thread Jon Haworth
$headers .= Cc: [EMAIL PROTECTED]\r\n; $headers .= Bcc: [EMAIL PROTECTED]\r\n; $headers['User']='bankem'; $headers['Password']='narayana'; /* and now mail it */ mail($to, $subject, $message, $headers); ? Warning: Server Error in c:\www/email1.php on line 45 You do not need to

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

2002-01-08 Thread Henning Sprang
Hy, Félix García Renedo wrote: Hello, How could I configure php to access to a remote mysql database? just use the correct hostname of your remote host in mysql_pconnect( HOST, USER, PASS); henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] PHP 4.4.1 and Interbase

2002-01-08 Thread Dave Brotherstone
I've seen this with MS SQL connections. What it boils down to is that the data type that is returned isn't understood, the extension dies, and nothing is returned. Try a simpler select statement (I know its hard to go much simpler but ;-) - go for select 'hello world'. And then try giving

[PHP] session obect : session_start and require_once - Incomplete object

2002-01-08 Thread Alex
Hi, I have problem accessing object stored in session with PHP. SUMMARY * The doc says I must put the object definition (require_once(MyObject.php);) before the session starts (with a session_start() ). If I do that - OK I can get my object from session - OK my object is casted in

Re: [PHP] counting with dates (help!)

2002-01-08 Thread Henning Sprang
Sander Peters wrote: Hello, This is my problem: $today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 = 8876) which is completely

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

2002-01-08 Thread Henning Sprang
Félix García Renedo wrote: Sorry, I have an mistake. I want to configure php to connect to a remote mysql database and I want the options to configure php. in configure it makes AFAIK no difference if you will be connecting to a local or remote mysql db. just use

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

2002-01-08 Thread Balaji Ankem
Hi Jon, I am not running sendmail on my localhost. I am sending stuff to my company mail server. yaa I tried with SMTP also..But no use.. if u don't mind...please check the following code.. ?php include_once('Mail/smtp.php'); include_once('Net/SMTP.php'); # Replace 127.0.0.1 with another

[PHP] really weird

2002-01-08 Thread Chris Grigor
Hello everyone my name is Chris and I have just subscribed to ask a question Currently running Redhat 7.2, php4.0.6.7, apache 1.3.22-2, mysql3.23.41-1 Now I have a script that runs every 10 mins in the crontab, that checks to see if a file size is 0 or bigger.. if it is bigger then it mails

RE: [PHP] Question about Php/Mysql. Unsure if it's enabled.

2002-01-08 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 January 2002 07:15 Ok, basically I only configured php with apxs However, I noticed the mysql was supported (It said so on php info page) How is that possible? MySQL support is built in to PHP.

Re: [PHP] really weird

2002-01-08 Thread Henning Sprang
Chris Grigor wrote: Right now your in the picture this is okay to check if the mailbox is above the size of 0. But what I really need help with is, say for instance I get 1 message into the mailbox and the script runs, I only want it to run once for that message, however if another message

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 snip For example, consider the string $body = I am saying \Hello\; input type=hidden name=body value=?=$body is interpreted by the browser as input type=hidden name=body value=I am

[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 seeing what

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

[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

[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

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] div id=haiti style=position:absolute; left:752px; top:321px; width:166px; height:162px;

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

[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] 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:

[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] 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:

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

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 -

[PHP] Error

2002-01-08 Thread Dean Ouellette
Hi I am learning php with Sams leanr php in 24 hours. This is one example ?php function addNums($firstnum, $secondnum) { $result = $firstnum + $secondnum; return $result;11: } // this is line 13 print addNums (3,5); ?

[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?

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 ?php function addNums($firstnum, $secondnum) { $result = $firstnum + $secondnum; return $result;11:

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] 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:

[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

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,

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 -

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 .= option value=\.$parent['id'].\.$parent['cat_name']./option;

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

2002-01-08 Thread Dan McCullough
Here is the code $parent_select = TRTD BGCOLOR=\#F7F7F7\FONT FACE=\Verdana, Arial, Tahoma\ SIZE=\2\ COLOR=\#00\Parent Category:/font/tdTD BGCOLOR=\#F7F7F7\ WIDTH=\80%\select name=\parent_id\; $parent_sql = SELECT * FROM categories ORDER BY sort_order ASC; $parent_result =

[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

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

[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 format...

[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'

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 XML format...

[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?? This

[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] 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

[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

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

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 with

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 have to

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 -

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

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 switched to

[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

[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

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] 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 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 completely

[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

[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] 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] 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 http://www.php.net/manual/en/pcre.pattern.syntax.php, so perhaps one of these...?

[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 =

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 INPUT TYPE=FILE fields, or you can grab the file attachment from the user, store it in a uniquely-named temporary directory,

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; $msg_body .=

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.

[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_

[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] 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,

[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

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

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

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.BR; } btw, this

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

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 get

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

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] Ö÷Ìâ:

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, Melbourne

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),

[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

[PHP] functions...

2002-01-08 Thread Chris Hall
function lala() { do i HAVE to define a variable or argument eg 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

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 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 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 AM

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

[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

[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 in

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

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

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

[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

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

2002-01-08 Thread Bogdan Stancescu
Use a href=link.php?var=$val -- 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

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 you

[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

  1   2   >