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

2002-08-28 Thread Petre Agenbag
Jason Thanks the mysql_data_seek() works. With Justin's help, I used the mysql_data_seek() to reset the $result "matrix" to 0, and re-issued the same while statement. It now produces the desired output. Thanks. On Thu, 2002-08-29 at 08:46, Jason Wong wrote: > On Thursday 29 August 2002 14:16, Pet

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

2002-08-28 Thread Petre Agenbag
Jason Sorry, I completely forgot to comment on your suggestion: I did try mysql_data_seek(), but it didn't work for me ( guess I don't know how exactly it works), BUT, it did look like it was meant for stepping through a one dimensional array, and $result is not a one dimensional array, right? Ma

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

2002-08-28 Thread Justin French
1. did my code work? 2. It appears that you have to reset the mysql_fetch_*(), not reset the $myrow. Try calling: mysql_data_seek($result_it, 0) before while ($myrow = mysql_fetch_assoc($result)) It would appear that it resets the $result_it for a call to mysql_fetch_row(). I wou

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

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 14:16, Petre Agenbag wrote: > Hi Justin > OK, a quick feedback on your previous suggestion: > > I tried to unset the $myrow_it, but it still didn't produce any output. > The only way I could get it to work was with the same method you > suggested in this e-mail. > I had

[PHP] gettext

2002-08-28 Thread Marco Muratori
Hi I'm using gettext to add i18n to a web site, and it seems to work fine, but the translation is done randomly. I mean that if you reload many times the page, sometimes it gives back the translated message and sometimes the untranslated one. These are the steps I followed to use gettext with php:

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

2002-08-28 Thread Petre Agenbag
Hi Justin OK, a quick feedback on your previous suggestion: I tried to unset the $myrow_it, but it still didn't produce any output. The only way I could get it to work was with the same method you suggested in this e-mail. I had to create 2 new vars ( which basically boils down to 2 more SQL's).

[PHP] Re: Mime Decoder

2002-08-28 Thread Manuel Lemos
Hello, On 08/29/2002 01:32 AM, Santosh Pasi wrote: > Hi All, > > I am looking for Mail Mime Decoder tutorial or guide. Does any have any idea > how to decode mail (for example torture mail) or OE mail with multipart/mixed > Content Type. > > I tried Richard Heyes' mimeDecode, but actually don

Re: [PHP] Class problem - Fatal error:

2002-08-28 Thread Todd Pasley
> Fatal error: Cannot redeclare class dmsql in It looks like you are after include_once http://www.php.net/manual/en/function.include-once.php Todd - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 2:48 PM Subject: [PHP] Class proble

[PHP] Class problem - Fatal error:

2002-08-28 Thread irek
Hello I get this error: Fatal error: Cannot redeclare class dmsql in /usr/local/apache/htdocs/dm/inc/sql.inc.php on line 4 It happens when a user presses the back button, otherwise when the page is first loaded it works fine. Here's the file called with web browser include('class_dmsql.inc.php

Re: [PHP] using php from command line

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 09:50, Michael P. Carel wrote: > I have a problem here in using php in command line i cant find the php > executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 > with --enable-cli. After doing "make", the php binary should be in the same directory

[PHP] Mime Decoder

2002-08-28 Thread Santosh Pasi
Hi All, I am looking for Mail Mime Decoder tutorial or guide. Does any have any idea how to decode mail (for example torture mail) or OE mail with multipart/mixed Content Type. I tried Richard Heyes' mimeDecode, but actually don't know how to proceed further. Regards, Santosh Pasi -- PHP

Re[2]: [PHP] and or statement

2002-08-28 Thread Tom Rogers
Hi, Thursday, August 29, 2002, 1:35:47 PM, you wrote: RL> That makes absolutely no sense. How is "and or" different from simply RL> "or"? RL> Draw me the sets and show me the overlap satisfied by this alien "and or" RL> operator of yours. RL> -Rasmus RL> On Wed, 28 Aug 2002, Victor wrote: >>

Re: [PHP] and or statement

2002-08-28 Thread Todd Pasley
Apologies if im not quite understanding this... but to me it reads you want... if ((X and Y) OR Y) . which mathematically is simply if (Y). If this is what u actually mean, then all u need is if (blah($blah)) because the value of the first predicate is going to have still depends on Y to b

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin Garrett
AOL uses load balancing proxy servers which means every new page load could come from a different IP address. A quick google search brought up this article that mentions it: http://surfaid.dfw.ibm.com/web/home/whitepapers/weblog.html Read the section on 'Effects of Dynamically Changing IP addres

[PHP] performing searches with random entries

2002-08-28 Thread Brian & Shannon Windsor
I'm trying to take a variable in that would be usually 3 to 4 words (could be more or could be less). Right now, I'm exploding the variable and testing each individually, but this obviously is a pain with the more variables you get, and the result I get from the mysql search doesn't give me enoug

Re: [PHP] and or statement

2002-08-28 Thread Rasmus Lerdorf
That makes absolutely no sense. How is "and or" different from simply "or"? Draw me the sets and show me the overlap satisfied by this alien "and or" operator of yours. -Rasmus On Wed, 28 Aug 2002, Victor wrote: > What is the "and" "or" statement in php? > > I need this to see if the first st

[PHP] and or statement

2002-08-28 Thread Victor
What is the "and" "or" statement in php? I need this to see if the first statement is whatever, and or the second statement is whatever... if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {} Thank you - vic __ Post your fre

[PHP] Re: trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Manuel Lemos
Hello, On 08/29/2002 12:14 AM, Stan wrote: > The following was from a post over a year ago, where the author was trying > to post credit card info to an .exe gateway program to check authorization. > I am trying to get something similar to work. I can submit it and to the > gateway, but I never g

RE: [PHP] trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Eric Bauer
I have done this with ASP and Authorize.net, so I'm not sure if it will work for you, but all I did was in asp use a request.form("fieldname") which I think would be like using $_POST['fieldname']; or $HTTP_POST_VARS['fieldname'] (I'm still new to PHP). Hope that helps -Original Message-

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin French
on 29/08/02 1:01 PM, Joseph Szobody ([EMAIL PROTECTED]) wrote: >> But I wouldn't be relying on a remote IP for anything... they're too >> unreliable. > > This wasn't meant to be a fool-proof security solution to begin with. None of > these 'protected' pages contain anything real sensitive. Yes,

[PHP] trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Stan
The following was from a post over a year ago, where the author was trying to post credit card info to an .exe gateway program to check authorization. I am trying to get something similar to work. I can submit it and to the gateway, but I never get the comma delimitted authorization string back fr

RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
Weird. When I plugged them straight into the query, it worked. Thanks again for the help. Solved a major problem for me. -Original Message- From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance Sent: Wednesday, August 28, 2002 10:51 PM To: Lon Lentz Subject: RE: [PHP] HTTP_

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Joseph Szobody
> But I wouldn't be relying on a remote IP for anything... they're too > unreliable. This wasn't meant to be a fool-proof security solution to begin with. None of these 'protected' pages contain anything real sensitive. However... what are some good security procedures (besides an encrypted con

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Justin French
on 29/08/02 8:54 AM, Andy ([EMAIL PROTECTED]) wrote: > I do not agree. First off all (in my case) I do want to send personalized > e-mails. And even if I cancel this wish.. how about adresses which fail? You > will never ever find out how many adresses failed by putting them into the > all in bc

[PHP] Re: using variable ..help

2002-08-28 Thread Remon Redika
Thank you for u'r advanced, it's works correct... regard me. Stas Maximov writes: > 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 wa

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin French
I haven't heard about address' changing midway through a session (ie, without reconnecting), but it's worth pointing out that there will be a few other reasons why this isn't a good idea: 1. if they have to reconnect, they're near guaranteed to have a new IP 2. with most big ISPs, all users may

[PHP] using php from command line

2002-08-28 Thread Michael P. Carel
Hi to all, I have a problem here in using php in command line i cant find the php executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 with --enable-cli. Any idea why? I need to run a php script using cron, or if you have any suggestion please share. Regards, Mike -- P

[PHP] imap_gt_quota is not defined ?

2002-08-28 Thread Roger Thomas
php-4.2.2 Linux rh7.1 I run this on my browser ... and I get: Fatal error: Call to undefined function: imap_get_quota() in /home/httpd/vhost/home/horde/q.php on line 5 I quickly look inside php-4.2.2/ext/imap/php_imap.c and can see that the function name is there. What's wrong with *me* ? --

RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
Thanks for the information. I appreciate your help. It works when I just want to display them in the main page, but the following code continues to generate empty data in my table. $larry = $_SERVER['HTTP_REFERER']; $moe = $_SERVER['QUERY_STRING']; $curly = $_SERVER['HTTP_USER_AGENT']; $schep

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 08:00, Todd Pasley wrote: > > On a clients first visit to a site, the PHPSESSID gets written into the > > URL, but not on any additional requests. > > > > Has anyone had this problem? It wasn't happening before the upgrade. > > > > Running: > > > > Redhat 7.3 > > PHP 4.

Re: [PHP] Cannot get data from form.

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 23:04, Le Van Thanh wrote: > - I have installed PHP4.2.2 with Apache 1.3.26 on Solaris7. > Then I cannot get the value of input name. > But if I write " print $_POST['name'];" or " print > $HTTP_POST_VARS['name'];", it's ok. > > Is there something wrong when I install P

[PHP] Re: HTTP_REFERER?

2002-08-28 Thread Seairth Jacobs
If you are running PHP 4.1.0 or later, you can also use $_SERVER["HTTP_REFERER"], etc. Note that if you are using PHP 4.2.0 or later, then the "register_globals" option is off by default and the variables you mention below are not automatically created. --- Seairth Jacobs [EMAIL PROTECTED] "Lo

[PHP] Cannot get data from form.

2002-08-28 Thread Le Van Thanh
- I have installed PHP4.2.2 with Apache 1.3.26 on Solaris7. And now I have problems with getting data from form. I have 2 pages test.html and welcome.php as following: test.html Enter your Name: -

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Todd Pasley
> > On a clients first visit to a site, the PHPSESSID gets written into the > URL, but not on any additional requests. > > Has anyone had this problem? It wasn't happening before the upgrade. > > Running: > > Redhat 7.3 > PHP 4.2.2 > Apache 1.3.26 The same thing happens to me, however, sessions

[PHP] include interpreted php file

2002-08-28 Thread you
pb : include a php file in an other php file contraints : the php file must be interpreted before being included solution known : fsock then get the html code from the server and include it... Is there an other solution (easier) to include that file? thx for your help! You -- PHP General

[PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Morehouse
Hello, Have a strange problem since upgrading to 4.2.2. On a clients first visit to a site, the PHPSESSID gets written into the URL, but not on any additional requests. Has anyone had this problem? It wasn't happening before the upgrade. Running: Redhat 7.3 PHP 4.2.2

[PHP] Sending running under user Apache??

2002-08-28 Thread Daren Cotter
Hi all... For some reason, starting today, sendmail will not run as root on my server...it starts as user "apache". This is causing permission problems with the mail queue. I have made no configuration modifications to the server in months. Does anyone know why this may be happening, or how to f

[PHP] Question about sending varibles to script

2002-08-28 Thread Piotr Skorupski
Hello   I have following question. How can i send to a script varible, but not from HTML form but via URL. (I'm talkin about something like http://www.domain.com/script.php?id=1 in earlyier version o php).   Best Regards   P.S. Please forgive me my english -- Serwer Biznesowy - serwer WW

[PHP] RE: time stamp

2002-08-28 Thread Steve Buehler
Thank you David Lopez and David Robley. That was what I was looking for. Here is how I used it. $date=getlastupdatetime(array("team_id" => $team_id, "season" => $season, "div_id" => $div_id)); echo "$date"; function getlastupda

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

2002-08-28 Thread David Robley
In article <000201c24ec3$d884db50$8102a8c0@000347D72515>, [EMAIL PROTECTED] says... > 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 (

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Manuel Lemos
Hello, On 08/28/2002 07:54 PM, Andy wrote: > I do not agree. First off all (in my case) I do want to send personalized > e-mails. And even if I cancel this wish.. how about adresses which fail? You > will never ever find out how many adresses failed by putting them into the > all in bcc. And.. i

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Andy
I do not agree. First off all (in my case) I do want to send personalized e-mails. And even if I cancel this wish.. how about adresses which fail? You will never ever find out how many adresses failed by putting them into the all in bcc. And.. isn't there a restriction? What happens if you put 10

[PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
I have a template which places the value of $HTTP_REFERER into a table. This template is included in another template which is included in yet another template. The problem I am having is that the HTTP_REFERER, HTTP_USER_AGENT, and QUERY_STRING variables are all blank. Are there issues with

[PHP] Re: AOL problem with remote IP address

2002-08-28 Thread Justin Garrett
Yup, AOL's proxy servers do this. Justin Garrett "Joseph Szobody" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 stor

Re: [PHP] command line argument vs. urlencode ?

2002-08-28 Thread Joseph W. Goff
php is treating command line arguments as GET argument. So that means a + is a space. Try rawurlencode. - Original Message - From: "Renato Lins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 28, 2002 1:37 PM Subject: [PHP] command line argument vs. urlencode ? > H

[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

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

[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'] != $R

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 wou

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

[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

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

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; "--- Select ---"){ $usoc[] = $usoc1; }

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

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

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

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 $query

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

[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

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

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

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

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

[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/) T

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 > $data="this is a test"; > $GNUPGHOME="/home/nobody/.gnupg"; > putenv("GNUPGHOME=$GNUPGHOME"); > $HOME="/home/nobody/"; > putenv("HOME=$HOME");

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

2002-08-28 Thread Wm
OK, I learned something today...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

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

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 l

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] 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 (http://www.php.net

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]

[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 04ae01c24eb6$8228edd0$61d396c1@l2zcaxu7emppqh">news:04ae01c24e

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 se

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 on

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 whi

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 s

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

[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 ("http:

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

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] Re: getting directory info

2002-08-28 Thread Wm
This is giving me a parse error: $file\n"; } } ?> This is the only PHP on the page, so it arguably has to be in the above... :-( Wm "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >$path = '/full/path/to/your/jpeg/dir/'; # Be sure it'

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 >000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c

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 booki

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

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

[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 . I've seen quite a lot on the web about this suggesting that it's a permissions problem. How

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 ou

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

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 (

[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] using variable ..help

2002-08-28 Thread @ Edwin
>I want my bgcolor display with one by one like this below > > > > > > Try this: /* -- from here -- */ \n"; foreach ($mycolor as $value) { echo "\n\n\n"; } echo "\n"; ?> /* -- 'til here -- */ - E PS See: http://www.php.net/manual/en/control-struct

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,

[PHP] RE: time stamp

2002-08-28 Thread Lopez David E-r9374c
Steve Try: SELECT MAX(field_timestamp) from table1; David > -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 5:21 PM > To: mysql; PHP > Subject: time stamp > > > I am using PHP with MySQL and have a timestamp field in my db > table.

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

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

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"; $

  1   2   >