[PHP] FTP problem with PHP 4.2.2 / AIX 4.3.2

2002-08-28 Thread Nicolas JOUANIN
Hi, I've just configured and installed sucessfully PHP 4.2.2 on my AIX server. Everything works good, except when I want to connect to a FTP server within a PHP script. I compiled PHP using the --enable-ftp option and phpinfo() tells me that FTP support is enabled. Here is a simple script I

[PHP] cookie domain name

2002-08-28 Thread Justin French
Hi all, If I want a cookie to work on both www.domain.com and domain.com what should I set as the domain for the cookie? I'm having trouble deleting cookies when they were set without the www., but attempted to delete without... Thanks, Justin -- PHP General Mailing List

Re: [PHP] Curl request works on command line but not in script

2002-08-28 Thread Merijn van den Kroonenberg
Hi, make sure you urlencode everything that is sent on the url, or as postvars. $d2 =urlencode($d2); and so on then curl_setopt($ch, CURLOPT_URL, $server); curl_setopt($ch,CURLOPT_POSTFIELDS,$post); don't use the $testrequest, cause it has un-urlenoded values I think that should do the trick.

[PHP] Arrays within arrays question

2002-08-28 Thread Jean-Christian Imbeault
I have the following loop to insert data into an array: while ($data = pg_fetch_object($res)) { $aProds[] = array('id' = $data-prod_id, 'quantity' = $data-quantity); } But when I print this out using print_r I get the following: Array ( [0] = Array ( [0] =

[PHP] preg_match

2002-08-28 Thread richard . mail
hi all, i'm trying to create an script that cut's the text when a . ( dot ) is found in one of the last words.. i'm trying it with preg_match but it seems not to work. this is what i'm trying : if($i==15) { if(preg_match(/./,$text2[15])) { $text3 .= ($i $text2[15] );

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Justin French
Okay, it may be the end of a long day here, but I can't tell the difference between the two arrays you posted! Justin on 28/08/02 5:31 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: I have the following loop to insert data into an array: while ($data = pg_fetch_object($res)) {

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Jean-Christian Imbeault
Justin French wrote: Okay, it may be the end of a long day here, but I can't tell the difference between the two arrays you posted! One array contains only one element. That one element contains two elements, each and array with two elements. The other array contains two elements, each

Re: [PHP] preg_match

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 15:39, [EMAIL PROTECTED] wrote: hi all, i'm trying to create an script that cut's the text when a . ( dot ) is found in one of the last words.. i'm trying it with preg_match but it seems not to work. this is what i'm trying : if($i==15) {

Re: [PHP] preg_match

2002-08-28 Thread Merijn van den Kroonenberg
hi, yes, you have to escape the '.' because it has a special meaning, it matches on Any character (except newline maybe). But you probably do not need a preg_match anyway. Merijn van den Kroonenberg e-factory bv Tel.: +31 (0)475 - 340 975 Fax: +31 (0)475 - 320 351 Web: www.e-factory.nl -

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 15:31, Jean-Christian Imbeault wrote: I have the following loop to insert data into an array: while ($data = pg_fetch_object($res)) { $aProds[] = array('id' = $data-prod_id, 'quantity' = $data-quantity); } But when I print this out using print_r I get

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Jean-Christian Imbeault
Jason Wong wrote: If $aProds can contain more than 1 item then what you're doing now is correct. Thanks. The problem was that I was doing this: $return[] = get_array_of_prods(); the [] was creating the extra array level ... The problem I now face is that foreach keeps crapping out if I

[PHP] use curl.so with php4.1.0 and apache1.3.22 and curl7.9.8

2002-08-28 Thread steker
When I restart apache this is the message: Stopping httpd:[ OK ] Starting httpd: PHP Warning: Unable to load dynamic library '/usr/lib/php4/curl.so' - /usr/lib/php4/curl.so: cannot open shared object file: No such file or directory in Unknown on

Re: [PHP] Host

2002-08-28 Thread David T-G
Bruce -- ...and then Bruce Karstedt said... % % Anyone care to recommend a host as follows: % % Unix % PHP % MySQL % Domain Reg. % No unusual size or traffic requirements (now) We host with datapipe.net and I've been quite happy; excellent bandwidth, good uptime, tech support that meets my

[PHP] that UNIX permissions thing again -- sort of

2002-08-28 Thread David T-G
Hi, all -- I promise I'm not asking the same old question :-) Our image gallery application takes a directory tree of images uploaded by the user and then does all sorts of magic to make thumbnails, track comments, and so on. The only thing owned by the user is the directory tree and its

Re: [PHP] Apostrophe in preg_match?

2002-08-28 Thread DL Neil
I'm trying to get an apostrophe (and a dash, as well) to be included in a preg_match expression, but I don't know how to escape the characters. The manual discusses which characters need escaping and how to escape characters: http://www.php.net/manual/en/pcre.pattern.syntax.php ?php if

[PHP] CHM 8th sample is out

2002-08-28 Thread Gabor Hojtsy
Hi! The 8th sample of the New CHM Edition of the PHP Manual is out now. It fixes the *.js selection problem in the preferences application, and many bugs experienced by IE6 users: - example ugliness is away - horizontal scroll problems are away - context menu placement is fixed All

[PHP] No Localhost with apache?

2002-08-28 Thread Ryan A
Hi Guys, I have a real funny problem that I have never encountered before.. I went to hotscripts and downloaded PHPTriad and SpaceServer (In case you are not familiar with the programsthe programs are supposed to install Apache/MySql/PHP/Perl on my system and configure it

[PHP] Window/Page/Browser/Screen width

2002-08-28 Thread Rick Selby
Hi, I've seen similar questions in archives so sorry if I'm asking the same thing again! Is it possible, using php, to get the screen, page, or window width? My aim would be to have a set of picture thumbnails, and give the html the best number of columns depending on the size of the display.

Re: [PHP] No Localhost with apache?

2002-08-28 Thread DL Neil
Hi Ryan, Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found

[PHP] Problems with PHP 4.2.2 and *IMAP*

2002-08-28 Thread Ryan Faricy
Yes. Another poor soul who is having problems with PHP and installing the IMAP library. I've installed Apache 1.3.26, PHP 4.2.2 and MySQL and they all work just fine together. But I want IMAP as well, because I want my webmail app to work. I compiled PHP like so: $./configure

[PHP] Re: SV: [PHP-DEV] How to specify exstension_dir in PHP.ini for Windows

2002-08-28 Thread Markus Fischer
On Wed, Aug 28, 2002 at 01:16:44PM +0200, Steinar Kolnes wrote : Thanks for the respond, I am actually using 'extension_dir' There was only a typos in the e-mail. The question however; how do I specify the directory ?? Chances are pretty high that you've modified the wrong php.ini .

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread DL Neil
Hi Rick Check out list archives for last week (and the week before...) keyword: resolution. Also check out HTML, which will cheerfully slap text and graphics together an adapt to local peculiarities. Regards, =dn I've seen similar questions in archives so sorry if I'm asking the same thing

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread Stas Maximov
Hi Rick, The important thing to remember is that PHP (as any other similar language) is a server-side scripting language. It won't help you getting your client details apart of those sent in HTTP headers. You should rather consider looking into JavaScript capabilities to accomplish your task.

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread Rick Selby
Woah, sorry, somehow I missed that thread. Cheers. --- DL Neil [EMAIL PROTECTED] wrote: Hi Rick Check out list archives for last week (and the week before...) keyword: resolution. Also check out HTML, which will cheerfully slap text and graphics together an adapt to local

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 19:02, Rick Selby wrote: I've seen similar questions in archives so sorry if I'm asking the same thing again! What were the answers in the archive? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

[PHP] Stepping through an array more than once

2002-08-28 Thread Petre Agenbag
Hi I would like to do something like the following: I have a table that contains a bunch of info at various stages. To optimize the load on the db, I was thinking it would be better to do a select * from table , and then use PHP to sort through the results, rather than have 3 SQL's with where

[PHP] Problems with PHP and Apache..

2002-08-28 Thread kawaii ryuko
Hi! I have been struggling with getting PHP 4.2.2 to load with Apache 1.3.26 for a few days now, and after searching through the archives to find that others have had this problem (yet I couldn't find any replies in the archives), I thought I might ask myself. :) I'm hoping for better luck. I

Re: [PHP] Stepping through an array more than once

2002-08-28 Thread Petre Agenbag
Actually, it's not accurate for me to say stepping through an array more than once, as I want to step through the database ( $result) more than once, without having to make connections to the db again. Can this be done? On Wed, 2002-08-28 at 13:58, Petre Agenbag wrote: Hi I would like to do

RE: [PHP] Stepping through an array more than once

2002-08-28 Thread Matt Schroebel
From: Petre Agenbag [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 8:17 AM To: Petre Agenbag Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stepping through an array more than once Actually, it's not accurate for me to say stepping through an array more than once, as I want to

Re: [PHP] Stepping through an array more than once

2002-08-28 Thread Justin French
Try unset($myrow_it). You don't want to reset the array, you want to clear it, then use a new array (with the same name, and the same $result) for another while loop. FWIW, I'm pretty sure I'd just use three distinct queries. Infact, it'd be worth you timing your scripts with both these

[PHP] Re: SV: SV: [PHP-DEV] How to specify extension_dir in PHP.ini for Windows

2002-08-28 Thread Markus Fischer
On Wed, Aug 28, 2002 at 02:09:57PM +0200, Steinar Kolnes wrote : When changing the directory to the latter it seems that it finds something because it comes up with an new error message: The procedure entry point _Zend_list_delete could not be located in the dynamic link library php4ts.dll

Re: [PHP] Stepping through an array more than once

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 20:16, Petre Agenbag wrote: Actually, it's not accurate for me to say stepping through an array more than once, as I want to step through the database ( $result) more than once, without having to make connections to the db again. Can this be done?

[PHP] using variable ..help

2002-08-28 Thread Remon Redika
I wanna do with my TR bgcolor trough my array ?$mycolor = array(#E8D0E8, #F8EFF8);? table ?php while ($row=mysql_fetch_array($result)){? tr bgcolor=?for($i=0;$i=count($mycolor[$i]);++$i){ echo ($mycolor[$i]); } ? tdblablabbaba/td

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Brent Baisley
I always put an if(is_array($var)) to check if an array was actually return. On Wednesday, August 28, 2002, at 04:49 AM, Jean-Christian Imbeault wrote: Jason Wong wrote: If $aProds can contain more than 1 item then what you're doing now is correct. Thanks. The problem was that I was

[PHP] Does this call for an array?

2002-08-28 Thread Duffy Betterton
Here is what I would like to do. I have a simple form that asks for information from a customer. One of the questions is Which categories of products are you interested in? I want to store all the data in a table called pf_survey. All the categories(42) are already listed in a separate table

Re: [PHP] Apostrophe in preg_match?

2002-08-28 Thread Andre Dubuc
Thanks DL, I've read that part of the manual. My original syntax was as you suggested [^a-zA-Z-'], but the PostgreSQl query barfed on the apostrophe. The preg_match works, but the db refuses to accept the apostrophe. Reading the postgresql docs, they suggest escaping the character, but since

Re: [PHP] Does this call for an array?

2002-08-28 Thread Andrew Brampton
It calls for a intermediate table. You need 3 tables: pf_survey, categories and survey_cat They look like: pf_survey survey_id, Questions, Whatever, but no categories fields categories category_id, category_name survey_cat survey_id and category_id for each record in pf_survey you will have

[PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread Charles Fowler
This may be an interesting challenge for someone or has it been done before Can some one help me. I am looking for a laboursaving method of extracting the contents of a web page (Text only) and dumping the rest of the html code. I need the contents to rework the pages and put the contents into

Re: [PHP] curl and UTF-8, follow up

2002-08-28 Thread Merijn van den Kroonenberg
Hi, This problem is solved now (thanks Wez Furlong). The problem was, that i had the mbstring php module enabled (check with phpinfo). By default this module encodes input data. After i added the following lines to the php.ini the problem was solved: mbstring.http_input = pass;

[PHP] Reconfigure PHP

2002-08-28 Thread Zach Curtis
I have installed GD, libpng, zlib, jpeg-6b, and FreeType 2. I now need to reconfigure PHP 'with' these additions. I don't understand how to determine what directories to point to for each of these 'with' statements. In Windows, I would just look for an exe, but under UNIX (Solaris 7) I not sure

Re: [PHP] Apostrophe in preg_match?

2002-08-28 Thread DL Neil
Andre, Thanks DL, =a pleasure I've read that part of the manual. My original syntax was as you suggested [^a-zA-Z-'], but the PostgreSQl query barfed on the apostrophe. =these are two quite separate things (1) and (4): 1 accept input ($_POST) 2 validate input 3 prepare input for storage 4

Re: [PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread DL Neil
Carlos, I'm sorry, but am just leaving... If you check the PCRE RegEx pages of the annotated manual, there are contributed examples that will help in this situation (probably under preg_match_all() ) Regards, =dn This may be an interesting challenge for someone or has it been done before

Re: [PHP] using variable ..help

2002-08-28 Thread Stas Maximov
Remon, Your code works correct, cause you coded it this way as it should go through the array and output every element in the array into one line. If I got your idea correctly - you probably want you rows to be of two different colors. You may do it simplier way: table ? $mycolor =

[PHP] pear installation fails

2002-08-28 Thread Torsten Hahn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Folk, i tried to install pear with lynx -source http://pear.php.net/go-pear | php -q After some time, i get an error-message: Downloading package: XML_Parser...ok Extracting installer..ok Fatal error: Can't use method

Re: [PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread Andrew Brampton
the striptag function is what I think you want, it just removes all HTML tags and returns whatever is left php.net/striptag Andrew - Original Message - From: Charles Fowler [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:58 PM Subject: [PHP]

[PHP] Fun with Binary Numbers

2002-08-28 Thread David Buerer
Here's a question, Say I have a binary number like this 1101 0100 0110 0110 And I want to pull out of the binary number the third quartet (is that the right word) I want to know how to apply the mask to the number above so that the result would be

Re: [PHP] Fun with Binary Numbers

2002-08-28 Thread Rasmus Lerdorf
Well, to begin with applying the mask to 1101 0100 0110 0110 is going to give you 110 not 110. But you can shift the result to the right 4 if that is the result you want. There is no algorithm to speak of here, just apply the mask. Like this: $num = 1101010001100110;

Re: [PHP] Fun with Binary Numbers

2002-08-28 Thread Stas Maximov
Hey Dave, It is much easier to use hex numbers when working with bits. Thus, the mask for the first (left) quartet would be 0xF000, second 0x0F00, third 0x00F0 and fourth 0x000F. To apply the mask use binary AND operator, which is in case of PHP. After applying the mask you need to shift-right

[PHP] Re: CHM 8th sample is out

2002-08-28 Thread Dallas Thunder
Great! The sample code in the manual looks much better. But I feel the function definition is not so visible. I almost didn't find it when I first look at the manual. I think add a blank line before and after function definition or use a special color could be better. Gabor Hojtsy [EMAIL

Re: [PHP] How can I strip the code from HTML pages to extract thecontents of a HTML page.

2002-08-28 Thread Justin French
Either the ereg_replace, eregi_replace, or preg_replace has a full working script that does this, returning pretty much plain text. There's also the strip_tags()/striptags() function which strips out all PHP and HTML tags -- perhaps not enough, nice you'd want to remove *some* other stuff maybe,

Re: [PHP] using variable ..help

2002-08-28 Thread @ Edwin
I want my tr bgcolor display with one by one like this below tr bgcolor="#E8D0E8" td/td /tr tr bgcolor="#F8EFF8" td/td /tr Try this: /* -- from here -- */ ?php $mycolor = array("#E8D0E8", "#F8EFF8"); echo "table\n"; foreach ($mycolor as $value) { echo "tr

[PHP] whats wrong with this?

2002-08-28 Thread Chris Barnes
I just cant seem to work out why this doesn't work. My PHP book doesn't explain if statements very well so i have no idea if i am breaking a rule. $system_day = date(j); for($day = 1; $day 32; $day++){ if($day = $system_day){ echo match!; } else{

RE: [PHP] whats wrong with this?

2002-08-28 Thread Hankley, Chip
you need to use == instead of = == is used when comparing values (i.e. is this == to that) = is used to set something's value (i.e. this = that) -chip -Original Message- From: Chris Barnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 11:12 AM To: Php-General (E-mail)

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
A single = will assing a value, even inside an if statement A double = (ie ==) will perform a comparison between 2 values, returning true if they evaluate to the same value, false otherwise A triple = (===) will do the same as ==, but also check that the types of the 2 variables match. Check

RE: [PHP] whats wrong with this?

2002-08-28 Thread Liam . Gibbs
(1) for($day = 1; $day 32; $day++){ (2) if($day = $system_day){ (3) echo match!; (4) } . . . Easy enough. One of those things the programmer may not spot, but a casual observer might. In line #2, you have a single =. A comparative = is a double equal (==). The line should

[PHP] php and gnupg problems.

2002-08-28 Thread Jon Lawrence
Hi, Appologies if this comes through twice. I tried to post it via goolg groups but it didn't seem to work. If I run the following script from within apache, then the script fails and returns $error=2 ?php $data=this is a test; $GNUPGHOME=/home/nobody/.gnupg; putenv(GNUPGHOME=$GNUPGHOME);

[PHP] Re: No Localhost with apache?

2002-08-28 Thread Seairth Jacobs
--- Ryan A [EMAIL PROTECTED] wrote in message 000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh... Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both

[PHP] Help with script - if possible

2002-08-28 Thread Ray Healy \(Data Net Services\)
Hi All Thanks for everyones help in trying to get my script to work - I'm learning fast. But have the following problem: I am using the following select command for searching a table with regards to booked villas according to id number: $sql = SELECT COUNT(*) as count FROM bookings WHERE

RE: [PHP] Help with script - if possible

2002-08-28 Thread Richard Black
Try putting brackets round the date selection part. I think the database treats AND with a higher precedence than OR, and evaluates ANDs first. So what your query is doing is like A OR (B AND C) But what you want is (A OR B) AND C Where A is '$book_start_date' BETWEEN booking_start AND

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread @ Edwin
Actually, the same thing happens if the ServerName directive was not set. But anyway, even if the default page doesn't show up, http://localhost/some.php would still work... - E --- "Ryan A" [EMAIL PROTECTED] wrote in message

[PHP] Re: getting directory info

2002-08-28 Thread Wm
This is giving me a parse error: ?php $path = '/usr/local/...full.path.snipped.../httpdocs/thumbnails/'; $dir = opendir($path) or die(Could not open $dir); while ($file = readdir($dir)){ if (stristr($file, 'jpg') || stristr($file, 'jpeg')){ echo A

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread Ryan A
Hey, Thank you for replying... I checked the httpd.conf file and this is what I saw ServerName localhost ServerName 212.92.**.*** (The stars are numbers of course but I put them there to protect myself from evil genus's on the list :-) ) I have no idea what the second line is forapache

[PHP] Configure 'with' PHP

2002-08-28 Thread Zach Curtis
I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b, zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an error. Here is my configure command as well. I am using PHP 4.0.6. ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql

[PHP] faxing

2002-08-28 Thread Mike Mannakee
Does anyone know of a solution to get a script to actually connect with the POTS system (even through a 3rd party provider) and send a fax? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Ryan A
Hi again guys, Just tried to use http://localhost/ again but as I do so it takes me http://www.localhost.com tried it in both IE and NN with the same results... PLEASE help, -Ryan.

Re: [PHP] Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Rasmus Lerdorf
This has nothing to do with PHP. You are missing a local DNS entry pointing localhost to 127.0.0.1 -Rasmus On Wed, 28 Aug 2002, Ryan A wrote: Hi again guys, Just tried to use http://localhost/ again but as I do so it takes me http://www.localhost.com tried it in both IE and NN with the

Re: [PHP] Configure 'with' PHP

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 01:10, Zach Curtis wrote: I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b, zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an error. Here is my configure command as well. I am using PHP 4.0.6. I search for libgd.so which

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread @ Edwin
First, my mistake: "localhost" still works even if ServerName directive wasn't set... (More below) Hey, Thank you for replying... You're welcome :) I checked the httpd.conf file and this is what I saw ServerName localhost ServerName 212.92.**.*** Perhaps you can try taking one out

Re: [PHP] faxing

2002-08-28 Thread Nelson Asinowski
Mike Mannakee wrote: Does anyone know of a solution to get a script to actually connect with the POTS system (even through a 3rd party provider) and send a fax? Mike There are several fax over the internet providers out there. I used to work for one. That service was via email. You sent a

[PHP] Re: Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Wm
shouldn't that just be /localhost/ rather than http://? Seems like the http://; part would be telling it to look for an actual website, which would default to a .com address... Wm Ryan A [EMAIL PROTECTED] wrote in message

RE: [PHP] faxing

2002-08-28 Thread James E Hicks III
system(html2ps document.html); system(hylafax -somedirectives document.ps); I haven't got around to actually figuring this out, but this is my plan. James -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 1:14 PM To: [EMAIL PROTECTED]

Re: [PHP] Are sessions affected by Unix user changes?

2002-08-28 Thread Keith Soares
To clarify, session files ARE being created still, but they all have a length of 0. So it seems that the permissions to create a file are ok, but something else is wrong. Any idea why the file could be created, but would be empty? I'm perplexed. K. -- PHP General Mailing List

Re: [PHP] Re: No Localhost with apache?

2002-08-28 Thread Seairth Jacobs
Hmm... maybe there is a problem with your hosts file (in WinNT systems (NT/W2K/XP), I think you can find it in /winnt/system32/drivers/etc). Normally, you should have a line that looks like: 127.0.0.1 localhost # default localhost (the #default localhost is just a comment).

Re: [PHP] Re: Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Glenn Sieb
Hey Wm, Nothing prevents you from running a webserver on your local host (unless of course you're on a corporate network where it's generally pooh-poohed by the AoH (Admins on High). Lots of developers run local webservers to check their work. And, since localhost refers to 127.0.0.1 or the

[PHP] Simple regexp

2002-08-28 Thread Adam Alkins
Hi Folks, Seeking some guidance here. My regexp knowledge is pathetic. I want to do a simple validation of an ipv6 address. I just want to validate the entire string (not specific blocks) if it has the allowed charachters. I though ereg('[A-Fa-f0-9:]') would work, but it isn't. Anyone can

Re: [PHP] Re: Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Wm
OK, I learned something today... g I thought I'd usually seen localhost specified without the http:// , so I assumed there was a reason. Wm Glenn Sieb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey Wm, Nothing prevents you from running a webserver on

Re: [PHP] php and gnupg problems.

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 00:19, Jon Lawrence wrote: If I run the following script from within apache, then the script fails and returns $error=2 ?php $data=this is a test; $GNUPGHOME=/home/nobody/.gnupg; putenv(GNUPGHOME=$GNUPGHOME); $HOME=/home/nobody/; putenv(HOME=$HOME); system

[PHP] SV: SV: SV: [PHP-DEV] How to specify extension_dir in PHP.ini for Windows

2002-08-28 Thread Steinar Kolnes
Markus, After reinstalling almost everything I am happy to report that PHP starts without any complaints about missing dll's or other error messages. So it seems that must have been some conflict with older versions. However I am still not able run any cURL functions like $ch = curl_init

[PHP] Scheduling tasks

2002-08-28 Thread Todd Pasley
Hi, I'm trying to work out how to schedule tasks in php. I would like to use at but are having a few difficulties. Does anyone have any suggestions on an alternate way to schedule a command to run on the system via php. Thanks a lot, Todd. -- PHP General Mailing List (http://www.php.net/)

[PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
I have a page the will print a telephone listing in pdf (using pdflib and inline pdf) by POSTing the requested orientation and papersize to a second page. I've found that I have to post to a second page because IE seems to cache a response, and if I post to the same page, I can never get the

Re: [PHP] PDF POST, but refresh is GET

2002-08-28 Thread Rasmus Lerdorf
Sounds like an IE bug to me. If it knows there is POST data and it sends a GET, it is just plain wrong. How about just using GET-method vars in the URL to bounce this stuff along, or even a cookie-based session. -Rasmus On Wed, 28 Aug 2002, Matt Schroebel wrote: I have a page the will print

[PHP] Building a query on multiple variables, how to test for which variables are valid?

2002-08-28 Thread Jay Blanchard
So these 4 variables walk into a bar :^] I have a form with 4 drop downs. Each of these drop downs might have a value and there is no order in which they might have a value. A query needs to built (the WHERE and AND portions) that takes into account which ever variables have been set. A user

RE: [PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
GET solved it. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:44 PM To: Matt Schroebel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PDF POST, but refresh is GET Sounds like an IE bug to me. If it knows there is POST data

Re: [PHP] Using localhost is taking me to localhost.com!!! why?

2002-08-28 Thread Ryan A
Hey, did a nslookup and got this returned to me server:ns02.chello.se address: (looks like an ip no) *** ns02.chello.se cant find localhost: non existent domain Whats the problem? -Ryan. - Original Message - From: SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED] To: 'Ryan A'

[PHP] Permission Denied

2002-08-28 Thread Daren Cotter
I use PHP to send mail. Recently, emails originating from the server stopped sending. After some investigation, I looked at the /var/log/maillog file, and saw the following errors when a mailing tried to originate: Aug 29 13:16:10 x sendmail[1162]: g7TIGA001162: SYSERR(apache): Can't create

[PHP] Proxy taking me to localhost.com

2002-08-28 Thread r
Hey, I am on a cable connection...and to connect to the net my provider gave me an address where my browser would get automatically configured...maybe because of that I am goint to localhost.com? I may be way off track here coz I dont know the first thing about what the heck a proxy itself is

Re: [PHP] Proxy taking me to localhost.com

2002-08-28 Thread Tyler Longren
This is the greatest php related question I have ever seen. tyler On Wed, 28 Aug 2002 15:23:48 -0400 [EMAIL PROTECTED] wrote: Hey, I am on a cable connection...and to connect to the net my provider gave me an address where my browser would get automatically configured...maybe because of

Re: [PHP] Building a query on multiple variables, how to test for which variable

2002-08-28 Thread @ Edwin
There must be a better way how to do it but this is what I would do: (Not tested--just the "idea"...) Instead of $var1, $var2... I'd use an array for the drop downs thus, $var[] $var[] $var[] $var[] Then, check if any is set, then... anyway, this is how it goes: // from here

[PHP] Tyler-Re: [PHP] Proxy taking me to localhost.com

2002-08-28 Thread Ryan A
Hey, comon,give a dude a chance, I'm a newbie trying to leave java servlets and migrate to PHP and cant even get localhost to work and you are getting sarcastic... -Ryan A. This is the greatest php related question I have ever seen. tyler On Wed, 28 Aug 2002 15:23:48 -0400 [EMAIL

[PHP] ITS WORKING!!!!! LOCALHOST...the bastard is working!

2002-08-28 Thread Ryan A
HEY everyone, esp all of you who tried to help me, For all of you that are curious how. Sheets Jason got to the problem it was my proxy setting that was wrong. I took his advise and went to the settings under tools-connections and checked the bypass proxy for local addresses and it did

[PHP] How to use cURL in PHP under Win NT ?

2002-08-28 Thread Steinar Kolnes
I have tried to use cURL with PHP but without sucess so far. In the php.ini I have made the following changes: extension_dir = d:/php/extensions/ and extension=php_curl.dll Also, I have copied; SSLEY32.dll and libey32.dll to WINNT\SYSTEM32 Someone who have expirence with this ? Thanks in

RE: [PHP] Building a query on multiple variables, how to test for which variable A SOLUTION

2002-08-28 Thread Jay Blanchard
Todd came in with a good suggestion which I had started towards, so this is what I have arrived at for the moment. I will be looking to make this more elegant soon, but since they are screaming for the report now this is what I did; ?php if($usoc1 "--- Select ---"){

[PHP] Zero-length files for PHP sessions??

2002-08-28 Thread K Soares
My PHP session files are being created in the specified directory (/tmp) by the specified user (apache), but always have a file-length of zero, so no data is being stored. Anyone know what may cause this or how to correct? K. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] How to use cURL in PHP under Win NT ?

2002-08-28 Thread Steinar Kolnes
I have tried to use cURL with PHP but without sucess so far. In the php.ini I have made the following changes: extension_dir = d:/php/extensions/ and extension=php_curl.dll Also, I have copied; SSLEY32.dll and libey32.dll to WINNT\SYSTEM32 Someone who have expirence with this ? Thanks in

RE: [PHP] Building a query on multiple variables, how to test for which variables are valid?

2002-08-28 Thread Hankley, Chip
Jay - How 'bout this? $init = 1; $query = SELECT foo ; $query .= FROM bar WHERE; if ($init AND isset($var1)) { $query .= WHERE thus = ' . $var1 . ' ; $init = 0;} if ($init AND isset($var2)) { $query .= WHERE thus = ' . $var2 . ' ; $init = 0;} elseif (isset($var2)) { $query .= AND

Re: [PHP] Building a query on multiple variables, how to test for which variable A SOLUTION

2002-08-28 Thread Joseph W. Goff
I have done this two different ways. The first involves a function that creates a dropdown from the database. What is special about this function is that I assign it's own condition as part of the value for that option. Take this sql statement: select distinct column_name from the_table and it

[PHP] AOL problem with remote IP address

2002-08-28 Thread Joseph Szobody
In a portion of a website, I have implemented user authentication and management using sessions. When a user first logs in, the $REMOTE_ADDR is stored is a session variable SESSION['ip']. On each of the protected pages, a header.php is included with the following code: if ($SESSION['ip'] !=

[PHP] Re: time stamp

2002-08-28 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I am using PHP with MySQL and have a timestamp field in my db table. What would be the easiest way to get the newest timestamp out of the db? Thanks in Advance Steve Use an ORDER BY on the timestamp field in your select statement,

[PHP] Re: What's the trick ?

2002-08-28 Thread Renato Lins
testing sorry... Richard Lynch wrote: Hi guys, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] command line argument vs. urlencode ?

2002-08-28 Thread Renato Lins
Hi, Any one know why the + (plus sign) is not passed as argument to $argv when calling a php script from linux shell ? if this is not a bug, how do I pass a + as argument ? should I use urlencode/urldecode ? is that any php.ini variable to turn off this behavior ? try this and you

  1   2   >