Re: [PHP] Access denied to php files in Netscape 6

2002-10-02 Thread Chris Shiflett
This seems absolutely impossible. Can you verify that you are using the *exact* same URL with each browser? I would recommend copy/pasting the URL from each into a text document or something to be sure every slash, etc., is identical. This will also ensure that you are accessing these scripts

RE: [PHP] Access denied to php files in Netscape 6

2002-10-02 Thread Smith, Benjamin
It's not impossible if the site is not opened up to full public access, and he is using different proxy settings on each browser. Check those. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 4:23 PM To: Chris Nielsen Cc: [EMAIL

[PHP] Re: tricky gd question

2002-10-02 Thread electroteque
imagecopyresampled($dst_img,$src_img,50,0,0,0,$new_w,$new_h,imagesx($src_img ),imagesy($src_img)); i have this basically if i half the width of the ratio scaled image , it puts the entire image into that area not just half the image like a crop would ? Mike Mannakee [EMAIL PROTECTED] wrote in

Re: [PHP] XML Parser additional

2002-10-02 Thread Justin French
You want to retain ownership, AND take contributions? Generally it'd be an either/or proposition wouldn't it? Justin French on 02/10/02 2:26 PM, Khalid El-Kary ([EMAIL PROTECTED]) wrote: hi, i wanted to add something, i want to receive contribtions from developers as well to make the

[PHP] Cookie

2002-10-02 Thread Max Buvry
Hi, I use : apache 1.3.26, php 4.2.3, postgresql 7.2 (under solaris 7). I attempt to modify my old sources which run with the previous versions and I meet a problem with the cookie. I read that we can see the contents of a cookie with 2 methods : echo $testcookie echo $_COOKIE[testcookie]

Re: [PHP] Cookie

2002-10-02 Thread Bob Irwin
I'm pretty sure this is a global variables problem. There is an option in your ini.php file that refers to 'global variables' You need to set this on, otherwise reference to them with the absolute variable name. Best Regards Bob Irwin Server Admin Web Programmer Planet Netcom - Original

RE: [PHP] Cookie

2002-10-02 Thread Smith, Benjamin
The register globals function must be turned ON in your php.ini for the first method to work. -Original Message- From: Max Buvry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 2 October 2002 2:38 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookie Hi, I use : apache 1.3.26, php 4.2.3,

Re: [PHP] mail function problems

2002-10-02 Thread Debbie Dyer
Hi Dan I (and others I know) have similar probs of seemingly disappearing emails - I thought it was down to mail filtering because I cant think of another explanation (but I dont know that for sure). I was given some advice here yesterday so I am forwarding you the mails. Debbie - Original

[PHP] Re: Undefined index:

2002-10-02 Thread Erwin
Voisine wrote: Hi, I'm learning php from a book but because of global off I have have several Undefined index message! I don't want to change the default setting in my php.ini because I want to learn the good way. What I'm doing wrong? Undefined index: categorie if ($_POST['categorie']

Re: [PHP] submitting a form to multiple places!!!

2002-10-02 Thread olinux
Here's what I do. We have an outsourced email newsletter management system that accepts GET method - so I just use fopen() to send the data to our list management system and then drop the information into a database on our server. $form1_submit_url =

Re: [PHP] submitting a form to multiple places!!!

2002-10-02 Thread olinux
If you need something more complex look into CURL as suggested earlier http://curl.haxx.se/ http://www.php.net/curl olinux --- olinux [EMAIL PROTECTED] wrote: Here's what I do. We have an outsourced email newsletter management system that accepts GET method - so I just use fopen() to

[PHP] Re: How to send POST info without a form?

2002-10-02 Thread Girish Nath
Hi Snoopy can do this too: http://sourceforge.net/projects/snoopy/ Regards Girish -- www.girishnath.co.uk Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... try www.sloppycode.net * © Sloppycode.net All rights reserved. * @title Html Source class

Re: [PHP] Cookie

2002-10-02 Thread Max Buvry
Thanks for your response. The doc isn't explicit when it explains this two methods and don't focus on the register globals function for the first method. So I use the second method only. Thanks mb Bob Irwin wrote: I'm pretty sure this is a global variables problem. There is an

[PHP] Help required on cookies

2002-10-02 Thread Balaji Ankem
Hi Friends, I would like to know where the cookies will be stored? I have enabled cookies using session.use_cookies = 1. I found cookies will be stored in the environmental variable HTPP_COOKIE_VARS. But I didn't find anywhere this variable in my php.ini file. If I want to print all cookies

[PHP] get access to define() constants with dynamic names

2002-10-02 Thread Heiko Mundle
Hi all, my script knows three different constants define(G_T_USER,user_profile); define(G_T_TEAM,SAFETOUR_team); define(G_T_CALL,SAFETOUR_call); Is it possible to get access to them, if I have the names (USER, TEAM, CALL) in a variable? It must be something like that:

Re: [PHP] Help required on cookies

2002-10-02 Thread Chris Shiflett
Balaji Ankem wrote: Hi Friends, I would like to know where the cookies will be stored? Cookies are stored on the client, either in memory or written to disk. If I want to print all cookies stored in my browser how can I print? I'm going to assume this isn't really what you mean, and you

[PHP] Re: PHP with Oracle

2002-10-02 Thread Philippe Saladin
Warning: Unable to load dynamic library 'C:\PHP\extensions/php_oci8.dll' - there are slashes and backslashes in the string 'C:\PHP\extensions/php_oci8.dll'. it looks odd. May be you would have a look to include_path and extension_dir in php.ini ? Regards, Philippe -- PHP General Mailing

Re: [PHP] get access to define() constants with dynamic names

2002-10-02 Thread Scott Houseman
Hi Heiko Try this: $aName = TEAM; eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = G_T_TEAM echo $myString; // Should print out SAFETOUR_team I haven't tested this, but it should work. Regards Scott On 10/2/2002 10:47 AM, Heiko Mundle wrote: Hi all, my script knows

[PHP] Re: Connect to oracle on another host

2002-10-02 Thread Philippe Saladin
I've been writing PHP scripts for a long time but never needed to get data from an Oracle database. Till now. - First, you need php compile with --oci - Then, you have to install the oracle client. Note : you can't find the oracle client alone. you need to download the entire oracle (500Mb !!)

RE: [PHP] Help required on cookies

2002-10-02 Thread Balaji Ankem
Hi Chris, Thanks for the help. ? print_r($_COOKIE); ? It is giving error saying call to undefined function _r(); And Setcookie in php is not conforming to the RFC2109. Comment and version how do we set? Thanks in advance Balaji -Original Message- From: Chris Shiflett

Re: [PHP] Help required on cookies

2002-10-02 Thread Chris Shiflett
Balaji Ankem wrote: ? print_r($_COOKIE); ? It is giving error saying call to undefined function _r(); That's weird. Maybe you have a space between print and _r? The function is print_r() with no spaces. And Setcookie in php is not conforming to the RFC2109. In what way? Remember that the

Re: [PHP] get access to define() constants with dynamic names

2002-10-02 Thread Heiko Mundle
Thanks, it works! Scott Houseman wrote: Hi Heiko Try this: $aName = TEAM; eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = G_T_TEAM echo $myString; // Should print out SAFETOUR_team I haven't tested this, but it should work. Regards Scott On 10/2/2002

RE: [PHP] Help required on cookies

2002-10-02 Thread Balaji Ankem
But in RFC2109 they mentioned Comment and version are also attributes of the setcookie header. How do you set these attributes using php?? How this print_r() function works?? Thanks in advance Balaji -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Help required on cookies

2002-10-02 Thread Chris Shiflett
Balaji Ankem wrote: But in RFC2109 they mentioned Comment and version are also attributes of the setcookie header. How do you set these attributes using php?? These attributes are optional. Be careful not to confuse the setcookie() PHP function with the Set-Cookie HTTP header. I'm not

[PHP] Re: Can I pass the ftp transfer mode in a string?

2002-10-02 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Thanks guys, I was unaware having quotes around it would make a difference. Works fine once I removed the quotes. John Kelly wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can I pass the ftp transfer mode in a string

Re: [PHP] Works from the command line but NOT from PHP

2002-10-02 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... DonPro wrote: $queryID = mysql_query(SELECT HSCode, UOM, EDescript FROM HSCodes WHERE MATCH(EDescript) AGAINST (' . $description . ') ORDER BY HSCode, UOM, EDescript); I don't see what is wrong but try echoing the text of the query

[PHP] Re: mail function problems

2002-10-02 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I use the mail function tons, never had a problem. I am working with a client with a different hosting vendor, they are using PHP 4.2.3, which I guess was a recient upgrade, anyway I was informed by the client that he wasnt getting

Re: [PHP] OOP class names

2002-10-02 Thread Debbie Dyer
I told you something incorrectly yesterday:- - From what you say you dont want get_class_name because this gives you the name of the class not the instance of it. get_class is PHP's function for getting the name of a class not get_class_name Sorry - I must have been thinking in Java mode.

[PHP] quotes in text strings

2002-10-02 Thread Javier Montserat
Hi Single quote's in strings entered via a text input field are subsequently appearing with what appears to be an escape character - comm\'ents how can i correct this? I've tried htmlspecialchars($string, ENT_QUOTES); and htmlentities($string, ENT_QUOTES); but these don't seem to work

[PHP] Re: quotes in text strings

2002-10-02 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi Single quote's in strings entered via a text input field are subsequently appearing with what appears to be an escape character - comm\'ents how can i correct this? I've tried htmlspecialchars($string, ENT_QUOTES); and

[PHP] Re: quotes in text strings

2002-10-02 Thread Erwin
Javier Montserat wrote: Hi Single quote's in strings entered via a text input field are subsequently appearing with what appears to be an escape character - comm\'ents how can i correct this? I've tried htmlspecialchars($string, ENT_QUOTES); and htmlentities($string, ENT_QUOTES);

[PHP] Recursive Replace

2002-10-02 Thread Rick Beckman
? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ? That line of code successfully will display lines 7 and on of an included text file into my HTML boilerplate. However, in my hundreds of source text files, br is not included at the end of the lines, therefore lines 7 and on appear

RE: [PHP] eregi_replace / preg_match_all

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Swofford [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 21:21 To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace / preg_match_all Why does this work: $contents = eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg), \blah.gif, $contents);

RE: [PHP] Recursive Replace

2002-10-02 Thread Jon Haworth
Hi Rick, How can I combine that line of code with str_replace() or some other replace function in order to turn \n into br for each line. I think you're looking for http://www.php.net/nl2br. Specifically: for ($i = 7; $i sizeof($info); $i+=1) echo nl2br($info[$i]); Cheers Jon

[PHP] Re: Recursive Replace

2002-10-02 Thread Rick Beckman
Nevermind. Leave it to me to make a very stupid mistake. I fixed it though, and now it works great. For any who are interested, here is the working code... Dunno why you'd need it, but whatever: ? for ($i = 7; $i sizeof($info); $i+=1) { $new7 = str_replace(\n,br,$info[$i]); echo $new7; } ?

RE: [PHP] php question

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: michael saxbury [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 22:57 I am trying to understand in deatil exactly what PHP is, I know that it is a scripting markup type language, but. Is it correct to say that PHP is essentially just C++ code

RE: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Paul Nicholson [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 02:11 Hey gang, I've been wondering about developing scripts that the end-user might run on php 4.1.0. I've heard allot of ways except for one that I recently thought of. How about

[PHP] access denied

2002-10-02 Thread Simon Angell
The PHP script im using works on my computers server, but when after uploading to my web server i get this... Warning: fopen(wtest.txt, wb+) - Permission denied in /home/canberra/public_html/bomonster/canberra.php on line 6 Dunno why either, the directory is not protected, can anyne help me with

RE: [PHP] Recursive Replace

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Rick Beckman [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 12:12 ? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ? That line of code successfully will display lines 7 and on of an included text file into my HTML boilerplate. However, in

Re: [PHP] PHP and Flash

2002-10-02 Thread Lowell Allen
From: Rebekah Garner [EMAIL PROTECTED] Okay, this may be a bit off topic, BUT we just finished a website using PHP, MySql and Flashwell, I need someone...anyone to check out this URL for me and click on the Stallions menu, and tell me if anything loads into the text field. The client

Re: [PHP] Recursive Replace

2002-10-02 Thread Rick Beckman
Thanks everyone! Works great! :-) If only I would have noticed how obvious it was before trying making it more difficult than I had to. -- Kyrie Eleison, Rick www.spiritsword.com/phpBB2/ Mike Ford wrote: -Original Message- From: Rick Beckman [mailto:[EMAIL PROTECTED]] Sent: 02

RE: [PHP] How to send POST info without a form?

2002-10-02 Thread Jay Blanchard
[snip] from the client end, you can't from the server end, you can use curl. ... but I want to submit the action value as a POST rather than a GET. I then have conditionals around each of my modules that check $_POST['action'] for one of three values and only print that module if that's the

RE: [PHP] Regular expression help converting doc to xml

2002-10-02 Thread Geoff
(For the archives) The RegEx I finally used was this: search: D(.*) replace: DD\1/DD I tried this in 3 editors: jEdit, eMacs and BBEdit jEdit interpreted the replace expression as literally \1 eMacs didn't like the parenthesis in the search string In BBEdit it worked like a charm. Not sure

Re: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yeah, at the top of each functionwhere you would normally put global $HTTP_GET_VARS; The created $_GET is not a superglobal so its scope is only in the function its defined in or if you define it in the global namespace you'd have to global

Re: [PHP] PHP and Flash

2002-10-02 Thread Debbie Dyer
Not sure where you mean by 'into the text field' but I see a drop down menu with a photo loaded underneath and then underneath that further menus with more pics of horses. Debbie - Original Message - From: Lowell Allen [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, October

RE: [PHP] How to send POST info without a form?

2002-10-02 Thread Khalid El-Kary
hi, you can make a hidden form l like this form style=visibilty:hidden;position:absolute;top:0px;left:0px; action=yourpage.php method=post id=myform .. form fields /form //in javascript you can use this myform.submit() and your form will be submited khalid

[PHP] Using PHP to create tables?

2002-10-02 Thread Andre Dubuc
In order to get my site on-line, I need to upload all my files, and create a few PostgreSQL tables that the scripts rely upon. I've created a script that should create these tables, but in testing it, nothing happens - no tables are created. I wondering whether it's even possible to create

RE: [PHP] Using PHP to create tables?

2002-10-02 Thread Jay Blanchard
[snip] I've created a script that should create these tables, but in testing it, nothing happens - no tables are created. I wondering whether it's even possible to create these tables from php? ... So, I guess my question is: can I use php to accomplish these tasks, or do I have to have access to

Re: [PHP] Using PHP to create tables?

2002-10-02 Thread Andrew Brampton
It appears to me you are not actually executing the SQL you are storing in the varible. Did you accidently miss that out of your email? I would supply you with more information but I don't know how to use PostgreSQL, but since you are coding with it, I guess you should be able to figure out the

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
Simon Angell wrote: Thanks for that Robert *it works*, now i have 1 more problem, after uploading to my web server i get this... Warning: fopen(wtest.txt, wb+) - Permission denied in /home/canberra/public_html/bomonster/canberra.php on line 6 Dunno why either, the directory is not

Re: [PHP] mail function problems

2002-10-02 Thread Dan McCullough
They found the problem, the webserver that the client was on had the wrong path to sendmail, a correction in php.ini and a restart and it was working again. --- Debbie Dyer [EMAIL PROTECTED] wrote: Hi Dan I (and others I know) have similar probs of seemingly disappearing emails -

Re: [PHP] Using PHP to create tables?

2002-10-02 Thread Andre Dubuc
Hi Andrew, Oh, I feel SO stupid! I 'forgot' that line in my code! Sigh . . . I've just got a big serving of humble-pie! I probably would have stared at that code for hours without noticing it. Thanks! (btw, nice name, eh?) Regards, Andre On Wednesday 02 October 2002 09:53 am, Andrew

Re: [PHP] Quick question.

2002-10-02 Thread Simon Angell
I am the webmaster of the site, i pay for the server space, is that what you mean? -- Cheers - Simon Angell Canberra ACT www.canberra-wx.com - Member of: Australian Severe Weather

Re: [PHP] Quick question.

2002-10-02 Thread Robert Cummings
No i mean switch to the directory in which you have th file with the code and type 'ls -al' Then look at the permissions and ownerships. Don't forget the web server runs with different permissions thatn you do at home. Cheers, Rob. Simon Angell wrote: I am the webmaster of the site, i pay

Re: [PHP] Quick question.

2002-10-02 Thread Simon Angell
i am unsure what you mean, where exactly do it type in 'ls -al' ? -- Cheers - Simon Angell Canberra ACT www.canberra-wx.com - Member of: Australian Severe Weather Association.

[PHP] Images problem

2002-10-02 Thread Mihaela Ratri
Hi, I know that is old problem, but I could'n solved until now. Sorry for any inconvenience. I've installed gd-2.0.1 (in /my/home) and php-4.2.3 with the following options: ./configure --with-mysql --with-apache=../apache_1.3.26 --with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local

[PHP] Images problem

2002-10-02 Thread Mihaela Ratri
Hi, I know that is old problem, but I could'n solved until now. Sorry for any inconvenience. I've installed gd-2.0.1 (in /my/home) and php-4.2.3 with the following options: ./configure --with-mysql --with-apache=../apache_1.3.26 --with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local

[PHP] php 4.2.3 giving prob.

2002-10-02 Thread Anil Garg
hi, i am facing a strange problem i am using php 4.2.3 the url says http://ipaddress/admin/add_doc.php?id=264mode=add;. but in the php file when i try to print $id and $mode it couldnt print the values.. but in some other files it successfully reads the parameters from url. moreover, the same

RE: [PHP] Recursive Replace

2002-10-02 Thread John W. Holmes
If it's genuinely one line per $info[] element, just add the dad-blamed br to your echo: ? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i], 'br'; } ? Also, just an FYI to the OP, you may want to calculate sizeof($info) before hand, and use a variable in your for() statement. That

Re: [PHP] php 4.2.3 giving prob.

2002-10-02 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini On Wed, 2 Oct 2002, Anil Garg wrote: hi, i am facing a strange problem i am using php 4.2.3 the url says http://ipaddress/admin/add_doc.php?id=264mode=add;. but in the php file when i try to print $id and $mode it couldnt print the values.. but

[PHP] How can I check for variances in spelling within form text input fields?

2002-10-02 Thread DonPro
Hi, I would like some ideas on how to perform the following. Any input from the PHP gurus would be appreciated. I have a form where my customer feels out certain information. Part of this information is the company name, address, city and state/province of their customer. I have to assign a

[PHP] PHP with GD and Jpeg

2002-10-02 Thread new.php.net
If have gd 1.8.4 compiled with zlib and jpeg support... This works fine but whenever I try to make php 4.2.3: configure --enable-track-vars --enable-trans-sid --with-mysql --with-apxs -- with-gd --with-jpeg-dir=/usr/local/lib --with-zlib I register following line: checking for

[PHP] Images problem

2002-10-02 Thread Mihaela Ratri
Hi, I know that is old problem, but I could'n solved until now. Sorry for any inconvenience. I've installed gd-2.0.1 (in /my/home) and php-4.2.3 with the following options: ./configure --with-mysql --with-apache=../apache_1.3.26 --with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local

Re: [PHP] Apache2 and PHP4.2.3 - errors

2002-10-02 Thread Rasmus Lerdorf
PHP doesn't officially support Apache2 at this point. Go back to Apache1. On Thu, 3 Oct 2002, Chris Aitken wrote: Hi all, I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade worked well, the daemon was running and serving pages etc. So I installed the latest PHP

[PHP] Looking for work

2002-10-02 Thread Clint Tredway
Hi, my name is Clint Tredway and I am a web developer in Dallas Texas. I am looking for any projects that you may need help with. My rates are very reasonable and I can be reached at anytime. Thanks, Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Getting users IP address into a variable.

2002-10-02 Thread Webmaster MBTRADINGCO
I'm sure there has to be a way to verify which IP address is accessing from. I need to establish a page where when I enter it records the IP address I'm logging in from, to a database. Problem is I can't seem a command in php that can assign that to a variable, as in: $ip=HTTP_GET_ ANY

Re: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Rasmus Lerdorf
$REMOTE_ADDR On Wed, 2 Oct 2002, Webmaster MBTRADINGCO wrote: I'm sure there has to be a way to verify which IP address is accessing from. I need to establish a page where when I enter it records the IP address I'm logging in from, to a database. Problem is I can't seem a command in php

RE: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Merritt, Dave
Try: $ip=$_SERVER['REMOTE_ADDR'] -Original Message- From: Webmaster MBTRADINGCO [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting users IP address into a variable. I'm sure there has to be a way to verify which IP address

[PHP] Apache2 and PHP4.2.3 - errors

2002-10-02 Thread Chris Aitken
Hi all, I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade worked well, the daemon was running and serving pages etc. So I installed the latest PHP build in my ports tree (4.2.3) and it compiled no problems, but when I added the required lines into my httpd.conf to

RE: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Jon Haworth
Hi, I'm sure there has to be a way to verify which IP address is accessing from. $ip=HTP_GET_ $REMOTE_ADDR ...and to deal with some (but not all) proxies: $ip = (getenv(HTTP_X_FORWARDED_FOR)) ? getenv(HTTP_X_FORWARDED_FOR) : getenv(REMOTE_ADDR); Either way you're

Re: [PHP] Apache2 and PHP4.2.3 - errors

2002-10-02 Thread Ionut Ciocirlan
I haven't tried php with apache 2 on linux yet, but the windows distribution of php has 2 dlls: php4apache.dll and php4apache2.dll; there's nothing in the documentation about the second dll whatsoever, neither any installation guide for Apache 2; the guide actually says using the php4apache.dll

Re: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Bill Farrell
Try: $ip = ; if ( $HTTP_X_FORWARDED_FOR ) { $ip = $HTTP_X_FORWARDED_FOR; } elseif( $HTTP_VIA ) { $ip = $HTTP_VIA; } elseif( $REMOTE_ADDR ) { $ip = $REMOTE_ADDR; } else { die(); // or perhaps some better response } --- Webmaster MBTRADINGCO [EMAIL PROTECTED] wrote:

[PHP] getImageSize

2002-10-02 Thread Dan McCullough
anyone know what migth cause this error. I changed the mode to 777, made sure that is was the correct owner.group. getimagesize: Unable to open 'images/product/i3_berkeley_bed_2drw.jpg' for reading = Theres no such thing as a

Re: [PHP] How can I check for variances in spelling within form text input fields?

2002-10-02 Thread Debbie Dyer
Don I am not a 'PHP guru' and I dont know where you can find an algorithm but:- If the only problem is users adding/not using name extensions, then for your company exists already test you could remove known extensions from the input company name - ltd, plc, etc - and replace this with a

[PHP] Inheritance and a class function: on what class was it called?

2002-10-02 Thread Nick Eby
Assume you've got some class that has one or more classes inherited from it. The parent class has a function that is normally called using the :: operator (a class function). Assume also that the class function is never called from an object function. Is it possible to find if the class

Re: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Chris Hewitt
Webmaster MBTRADINGCO wrote: I'm sure there has to be a way to verify which IP address is accessing Don't count on it to identify users on the internet though. Regards Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Math problem (222)

2002-10-02 Thread tony
For a coursework assignment I have to investigate this thing where you do the following for example: 264- Choose 3 digits that are not the same 12 - Find the sum of them. 264 246 624 642 426 462- List all the possible combinations of

RE: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Webmaster MBTRADINGCO
Actually I'm just using it so a customer can acces a PWS that is broadcasting on its own security cameras. I have a DSL that disconnects every 8 hours, and gives dinamyc IP, so each time it connects it goes to my site, and writes down the addres, so my customer can access the report, and see what

[PHP] upgrading script from using GLOBALS

2002-10-02 Thread Nicole Lallande
Hi, I am trying to upgrade my script which currently uses globals (and register_globals=on) to turning that flag off. The online documentation on register globas has the following code recommended by users in order to register the variables: $GLOBALS[dbname] = dbname; //register globals

[PHP] stat failed for Resource ?

2002-10-02 Thread new.php.net
Hey folks, Whenever I try to open files via fopen i get the following message stat failed for Resource for id #1 Fopen Wrapper is turned on in php.ini What wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Math problem (222)

2002-10-02 Thread Philip Hallstrom
Well, since it's for school I'll only point out a couple of issues... - your for loop will never test the number 987 even though it should. - add the following line rightr after you compute $numtotal: print($numtotal = $num1 + $num2 + $num3 + $num4 + $num5 + $num6\n); and you'll see that

Re: [PHP] Inheritance and a class function: on what class was it called?

2002-10-02 Thread Debbie Dyer
I think I know what you mean. You could get it to return the name of the class. eg. class A { function foo () { return get_class($this); } } class B extends A { } class C extends A { } $a = new A(); $b = new B(); $c = new C(); print $a-foo(); print $b-foo(); print

Re: [PHP] How can I check for variances in spelling within form text input fields?

2002-10-02 Thread Chris Hewitt
Debbie Dyer wrote: company exists already test you could remove known extensions from the input company name - ltd, plc, etc - and replace this with a wildcard for the check. - Original Message - From: DonPro [EMAIL PROTECTED] information is the company name, address, city and

[PHP] Re: Math problem (222)

2002-10-02 Thread Jome
What is wrong with it? Any help at all is greatly apreciated. Consider the differences between my code below and yours. And as far as I can see, there's no combination higher than eleven, lower than 987 which doesn't work out. ? for ($i = 12; $i 987; $i++) { $newI = $i;

Re: [PHP] Inheritance and a class function: on what class was it called?

2002-10-02 Thread Nick Eby
not quite... the case I'm interested in is this, given your example: print C::foo(); which would print nothing, unfortunately, since when the function is called using the :: operator there is no $this variable. basically what I'm looking for is a replacement for get_class($this) when the

Re: [PHP] Inheritance and a class function: on what class was it called?

2002-10-02 Thread Debbie Dyer
I dont understand what you are saying then or what you are trying to do. How can you call C::foo() outside of a class? You access class functions externally with - Debbie - Original Message - From: Nick Eby [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 7:24

Re: [PHP] Math problem (222)

2002-10-02 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: errors, but it doesnt do what i want it to do - instead of returning any three digit combo that doesnt return 222, it just prints EVERY combo whice passes my conditional statement to weed out numbers that have digits where 2 or more are the same. I can't write bug-free

[PHP] PHP User Name on Win2000

2002-10-02 Thread [-^-!-%-
Hello everyone! On Win 2k, what is PHP's user name? Or, what username does PHP access files (on the system) as? -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. -- PHP General Mailing

Re: [PHP] PHP User Name on Win2000

2002-10-02 Thread Ionut Ciocirlan
The one that accesses the filesystem through PHP is the webserver itself, not PHP. And as your server is probably instaleld as a service, it runs under SYSTEM credentials. - Original Message - From: [-^-!-%- [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 9:43

Re: [PHP] Inheritance and a class function: on what class was it called?

2002-10-02 Thread Nick Eby
when you call a function with -, you must call it on an object ($c-foo(), for example). the function is termed an object function when used that way. php has an operator :: that enables that same function to be called without a specific object; in this case, I'm referring to it as a class

[PHP] extract domain name from a URL

2002-10-02 Thread Joseph Szobody
Folks, I want to keep track of referers to my site. I want to store the domain name of the referer in a db field. I want 'just' the domain name, not the full url. So I need a snippet of code that could parse the $HTTP_REFERER, and return just the domain name. Example 1)

[PHP] Setting date fields in mysql queries

2002-10-02 Thread Brad Harriger
I have the following line in a program I'm working on: $query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id $ndate is a properly formated date read from a text field on a form on the previous page. When I run the query using mysql_query, it returns TRUE each time, but the

RE: [PHP] Setting date fields in mysql queries

2002-10-02 Thread Matt Schroebel
From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:17 PM Subject: [PHP] Setting date fields in mysql queries I have the following line in a program I'm working on: $query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id $ndate is a

RE: [PHP] Setting date fields in mysql queries

2002-10-02 Thread Jay Blanchard
[snip] I have the following line in a program I'm working on: $query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id $ndate is a properly formated date read from a text field on a form on the previous page. When I run the query using mysql_query, it returns TRUE each time, but the

[PHP] Re: extract domain name from a URL

2002-10-02 Thread Joseph Szobody
Never mind. Didn't realize PHP had the parse_url function. Got it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BAD FILE DESCRIPTOR

2002-10-02 Thread Robert Samuel White
I keep receiving the following error when I try to use fopen() to a remote server, regardless of which server I try to connect to apparently. I've verified that allow_url_fopen is set to true, so this should be functioning properly. I'm only trying to read the contents of the file so why

[PHP] Help with Numbers

2002-10-02 Thread Christopher J. Crane
I am looking for a way to find the highest 5 and lowest 5 numbers within 300 or so numbers. Here is what I have so far... $Tickers = array(); $Current = array(); // SQL QUERY TO GET TICKERS MSSQL_CONNECT($HostName,$UserName,$Password); mssql_select_db($DBName) or DIE(Table unavailable);

[PHP] Paging HOWTO for PHP n' MYSQL

2002-10-02 Thread Francisco Vaucher
Hi people, i've been searching for a while in google and vivisimo for docs that treats paging techniques for php and mysql. And so far i seek nothing. I always get stuck with empty documents (if you know what I mean). Can U give me a hand with this. If you already have a doc of this nature, or

Re: [PHP] Help with Numbers

2002-10-02 Thread Rasmus Lerdorf
Sort the arrays and pick off the first and last elements. On Wed, 2 Oct 2002, Christopher J. Crane wrote: I am looking for a way to find the highest 5 and lowest 5 numbers within 300 or so numbers. Here is what I have so far... $Tickers = array(); $Current = array(); // SQL QUERY TO GET

[PHP] Help with CHdir

2002-10-02 Thread Nokar
I get this error from php when i execute this code can you help me ;) Warning: chdir() expects parameter 1 to be string, resource given in C:\\read.php on line 146 145 echo centerAttachment :; 146 $rep = opendir(C:\\xxx\\Attach\\$id\\); 147 chdir($rep); 148 while ($zone = readdir($rep)) 149

  1   2   >