Re: [PHP] Newbie Question

2002-04-07 Thread Miguel Cruz
$fp = fopen($filename, 'r'); while ($l = fgets($fp, 1000)) { list ($parts, $vignette, $marque, $nom, $pdfproduit, $commprod) = explode (';', $l); // now use the data print "$parts"; // or whatever } fclose ($fp); On Mon, 8 Apr 2002, Hubert DAUL wrote: > > Hi , > > Here's my problem

[PHP] Newbie Question

2002-04-07 Thread Hubert DAUL
Hi , Here's my problem : I read a data file (no sql file) which contains 8 lines, and in each line, 8 datas (ex: name1;picture1;title1;anything1;everything1;nothing1) and when i run it I see only one picture(the second data) and not all of them If someone could help me TYA Here the code :

[PHP] asking about exe file

2002-04-07 Thread wong
Can php execute .exe file ( compile from BorlandC) and view result on the browser ? PLease Help Me Rizal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mod_php4

2002-04-07 Thread javier
Will be any changes to mod_php4 since the release of apache 2.0.35? I wanted to compile it (freebsd ports) with a apache 2.0.33 and I had problems while compiling. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP from HTML

2002-04-07 Thread Chris Adams
On Sun, 7 Apr 2002 20:03:42 +0200, Matja¾ Prtenjak <[EMAIL PROTECTED]> wrote: > SERVER1 with PHP some file with name xTest.php > xTest.php: > > > SERVER2 without PHP some file with name file1.html > file1.html: > > > Server1 is saying : ? > > > > How can I make HTML file (on SERV

Re: [PHP] Re: Disabling bars on Browser

2002-04-07 Thread Jason Wong
On Monday 08 April 2002 07:00, David Johansen wrote: > I would love to use a class. Where can I find one? I've posted on here > several times asking for examples or base code that work with Authorize.net > but no one ever responds. If you could point me to some that'd be great. 1) Ever tried goog

[PHP] Re: PHP from HTML

2002-04-07 Thread Matja¾ Prtenjak
HI! > Your problem is just the same as the case with counters, banners and so Exatctly! I need this, but with counters and banners I can return GIF file so form HTML I can say , but I need to send (get) som text not picture. > 1. Instead of ? you could use server side includes (this would w

Re: [PHP] Workaround for no cron?

2002-04-07 Thread Steve Werby
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote: > I have to wait for my host to compile php as binary for cron to work with > php, and a lot of things on my site depend on cron. It's not my favorite solution from a security standpoint, but you could call the PHP scripts from cron using wget or lynx.

[PHP] Re: Phone number validation

2002-04-07 Thread Timothy J. Luoma
> I'd just add that validating international numbers against any sort of > list is bound to lead to extreme annoyance. Even telephone companies > have trouble keeping track of changes. Not to mention people who will just put in valid-format-but-false numbers when they are "required" No stran

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread Justin French
Hi, Yeah, it looks like I appeared a little harsher than I intended, and I'll try not to do that again, but the subject line, and the message reek of JavaScript: > I was just wondering if there was any way to turn off the bars at the top of > the browser window with PHP. If not does anyone know

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread Justin French
Bob, I don't think I'm better than anyone on this list at all. We all here to learn, and help when we can. In fact, I also made the mistake of asking the wrong questions in here when I first joined. It was pointed out to me that I was off topic, and I learnt from my "mistakes". I don't know i

RE: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
Ok, that makes sense to me now. I see how you could lose some data. Do you have any opinions on what a good algorithm might be for getting locks without the potential for overwriting data? I suppose I could create a second "lock file" which I would open using "r" - then, wait for a lock on the lo

Re: [PHP] xml-rpc for windows?

2002-04-07 Thread dietrich
nope. that was the first place i looked. thanks though! "Tyler Longren" <[EMAIL PROTECTED]> wrote in message 002601c1dea0$c403edd0$0101a8c0@nightengale">news:002601c1dea0$c403edd0$0101a8c0@nightengale... > Hi, > > I think the file you're looking for is located somewhere in the zip file for > Wind

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread phplists
Wow, you really feel like your better than everyone here don't you.. You rarely even give an answer that isn't blatent criticism of what someone posted or their ability to find information. You really need to stop. Bob "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:

RE: [PHP] asking about .exe file

2002-04-07 Thread Martin Towell
yes - look at system(), exec() and "backtick" in the manual (the last one goes under a different name, I believe) -Original Message- From: wong [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: [PHP] asking about .exe file Can php execute .e

[PHP] asking about .exe file

2002-04-07 Thread wong
Can php execute .exe file under dos and view result on the browser ? Rizal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml-rpc for windows?

2002-04-07 Thread Tyler Longren
Hi, I think the file you're looking for is located somewhere in the zip file for Windows. At least I've heard it was in php 4.1.0. Good luck, Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "dietrich" <[EMAIL PROTECTED]> To: <[

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread Leif K-Brooks
on 4/7/02 9:31 PM, Justin French at [EMAIL PROTECTED] wrote: This is the wrong group/list for this post. The disabling of bars, or any sort of browser feature/appearance is NOT PHP. PHP is a server side langauge. Commonly, you would use JavaScript for such stuff, so I recommend you check out t

[PHP] Workaround for no cron?

2002-04-07 Thread Leif K-Brooks
I have to wait for my host to compile php as binary for cron to work with php, and a lot of things on my site depend on cron. Does anyone have some sort of code that I could put at the top of all my pages so when they get visited, it checks to see if a script has been executed yet this time petio

[PHP] xml-rpc for windows?

2002-04-07 Thread dietrich
does anyone know where i could find an XML-RPC-EPI dll? thx, dietrich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread Justin French
This is the wrong group/list for this post. The disabling of bars, or any sort of browser feature/appearance is NOT PHP. PHP is a server side langauge. Commonly, you would use JavaScript for such stuff, so I recommend you check out the millions of JavaScript sites and newsgroups on the web. o

Re: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Jim Winstead
Matt Friedman <[EMAIL PROTECTED]> wrote: > In regards to the above, under what circumstances might you have > to create a separate lock file? Is this an OS issue? Is it an issue when > concurrency is high? The manual says "you may have to"; I am looking for > some clarification as to when exactly

Re: [PHP] Re: Test for whole number.

2002-04-07 Thread Miguel Cruz
On Mon, 8 Apr 2002, Tom Rogers wrote: > At 09:16 AM 8/04/2002, Charlie Killian wrote: >> I'd like to condense the function below into one line. >> >> function isOneBitSet($n) >> { >>$x = log($n)/log(2); >>return ($x == intval($x)); >> } >> >> AND I don't want to do this: >> return (log($n)

Re: [PHP] Re: Test for whole number.

2002-04-07 Thread Tom Rogers
Hi Not sure if this is the best way to do it: function isOneBitSet($n) { return !ereg("\.",strval(log($n)/log(2))); } Tom At 09:16 AM 8/04/2002, Charlie Killian wrote: >That post was incomprehensible. Here it is revised: > >I'd like to condense the function below into one line. > >func

FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
>From the manual: Note: Because flock() requires a file pointer, you may have to use a special lock file to protect access to a file that you intend to truncate by opening it in write mode (with a "w" or "w+" argument to fopen()). The manual indicates that you "may" need to use "a special loc

[PHP] Re: Function that escapes special caracters from regular expressions

2002-04-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Charlie Killian) wrote: > > Is there one? > I don't now of one. That's because PHP doesn't have "one", it has two: and . (Read the docs carefully; these functions escape slightly differe

[PHP] Emulating a browser, parse cookies with PHP

2002-04-07 Thread DRaGoNLz
Hi, I'm trying to make a PHP script that would go in a website and log in. The website uses cookie to authenticate with its services. I made HTTP GET requests using fsockopen and parsed the results back into a variable. However I cannot find the cookie info(Set-cookie) in the returned content.

RE: [PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Matt Friedman
http://www.php.net/manual/en/function.preg-quote.php Found this in the manual in about 3 secs. Try to check the manual first before posting. ;-) Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Sund

[PHP] Re: Function that escapes special caracters from regular expressions

2002-04-07 Thread Charlie Killian
I don't now of one. Charlie > Is there one? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Leif K-Brooks
Is there one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Test for whole number.

2002-04-07 Thread Charlie Killian
That post was incomprehensible. Here it is revised: I'd like to condense the function below into one line. function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } AND I don't want to do this: return (log($n)/log(2) == intval(log($n)/log(2))); So, is there a way to chec

[PHP] Re: Disabling bars on Browser

2002-04-07 Thread phplists
There are actually a couple at least listed here.. I don't know which are best but the one that my shopping cart uses is one of these one.. I believe it's this one: http://zend.com/codex.php?id=619&single=1 Yeah, after I looked at it, it is that one.. Adam Olsen is my programmer.. Duh.. I forgot

[PHP] Test for whole number.

2002-04-07 Thread Charlie Killian
Is there a one line test for whole numbers? I want to condense this function down to one line: function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } TIA, Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Re: Disabling bars on Browser

2002-04-07 Thread David Johansen
I would love to use a class. Where can I find one? I've posted on here several times asking for examples or base code that work with Authorize.net but no one ever responds. If you could point me to some that'd be great. Thanks, Dave <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] Re: how to sort by value in associative array

2002-04-07 Thread Chris Adams
On Sat, 6 Apr 2002 18:21:10 -0600, Peter J. Schoenster <[EMAIL PROTECTED]> wrote: > I tried the above. > > uksort ($ArrayOfNewsLinks, "SortByValue"); > > function SortByValue ($a, $b) { > if ($a["language"] == $b["language"]) return 0; > return ($a["language"] > $b["language"]) ? 1 : -1;

[PHP] Re: Disabling bars on Browser

2002-04-07 Thread phplists
Do you have something against using a class for interaction with the Authorize.net URL you are trying to open? It is possible to pass vars to the page I'm sure but a class would work better in most cases and automate the process for the customer. Later, Bob "David Johansen" <[EMAIL PROTECTED]> w

[PHP] Disabling bars on Browser

2002-04-07 Thread David Johansen
I was just wondering if there was any way to turn off the bars at the top of the browser window with PHP. If not does anyone know a way that I could make it so that I could pass information from a form to window that I pop open with javascript. I would either need some way to make the window look

Re: [PHP] Test for one bit set?

2002-04-07 Thread Charlie Killian
Thanks to all those that replied. Especially Torben. (What have you been up to?) Miguel's solution works great. Check out the example below: Prints out: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, Just what I wanted. Thanks again, Charlie > > How can I te

Re: [PHP] Test for one bit set?

2002-04-07 Thread Lars Torben Wilson
On Sun, 2002-04-07 at 13:38, Charlie Killian wrote: > How can I test if a number only has on bit set? > > So testing different numbers will return TRUE or FALSE: > > testing 0001 would return TRUE. > testing 0011 would return FALSE. > > TIA > > Charlie AND them bitwise: Torben --

Re: [PHP] Test for one bit set?

2002-04-07 Thread bvr
This shows all integers from 1 to 10 that have the 2 least significant bits set: bvr. Charlie Killian wrote: >How can I test if a number only has on bit set? > >So testing different numbers will return TRUE or FALSE: > >testing 0001 would return TRUE. >testing 0011 would return FALS

php-general Digest 7 Apr 2002 21:37:54 -0000 Issue 1273

2002-04-07 Thread php-general-digest-help
php-general Digest 7 Apr 2002 21:37:54 - Issue 1273 Topics (messages 91915 through 91953): Re: Can I fopen() files in .htaccess protected directories? 91915 by: Miguel Cruz Re: Executing functions within ereg_replace() output 91916 by: Adam Wan Re: counter for HIGH traffic

[PHP] Re: PHP from HTML

2002-04-07 Thread Markas
1. Instead of ? you could use server side includes (this would work on SERVER2 side) below would work on client side: 2. Some Javascript file, which could be downloaded from SERVER1, like

Re: [PHP] Test for one bit set?

2002-04-07 Thread Miguel Cruz
On Sun, 7 Apr 2002, Charlie Killian wrote: > How can I test if a number only has on bit set? > > So testing different numbers will return TRUE or FALSE: > > testing 0001 would return TRUE. > testing 0011 would return FALSE. Think back to math class when you were 14! function isOneBit

Re: [PHP] Sites for contracts?

2002-04-07 Thread Bob
www.scriptlance.com - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 07, 2002 1:28 PM Subject: [PHP] Sites for contracts? > Does anyone here know of any good sites where there are companies > looking for contract employees listed on the

[PHP] Test for one bit set?

2002-04-07 Thread Charlie Killian
How can I test if a number only has on bit set? So testing different numbers will return TRUE or FALSE: testing 0001 would return TRUE. testing 0011 would return FALSE. TIA Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

RE: [PHP] /usr/bin/php Question

2002-04-07 Thread Chris Kay
Thanks Jason this worked.. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, 8 April 2002 4:01 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] /usr/bin/php Question On Sunday 07 April 2002 19

Re: [PHP] Phone number validation

2002-04-07 Thread Gary
Miguel Cruz wrote: > On Mon, 8 Apr 2002, Gordon Stewart wrote: > >>Just as a curiosity - (I dont need / Want it now - Maybe later) >>Where / what site, can we get a list of the valid country/city codes ? >> > > Someone else has already provided you with a site. > > I'd just add that vali

[PHP] Sites for contracts?

2002-04-07 Thread Steve
Does anyone here know of any good sites where there are companies looking for contract employees listed on them? Other then main stream sites like Monster, Dice and so on? Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Phone number validation

2002-04-07 Thread Richard Baskett
I would agree with that. When I wrote that you COULD do that.. I didn¹t mean that I do that :) If you wanted to get down and dirty and verify everything about that phone number you could.. Was what I was trying to get at. But when you had all the non-numeric characters in a phone number it make

[PHP] PHP from HTML

2002-04-07 Thread Matja¾ Prtenjak
HI, Is this possible? SERVER1 with PHP some file with name xTest.php xTest.php: SERVER2 without PHP some file with name file1.html file1.html: Server1 is saying : ? How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from SERVER1'? TIA Matja¾ Prtenjak --

[PHP] PHP from HTML

2002-04-07 Thread Matja¾ Prtenjak
HI, Is this possible? SERVER1 with PHP some file with name xTest.php xTest.php: SERVER2 without PHP some file with name file1.html file1.html: Server1 is saying : ? How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from SERVER1'? TIA Matja¾ Prtenjak

Re: [PHP] Phone number validation

2002-04-07 Thread Miguel Cruz
On Mon, 8 Apr 2002, Gordon Stewart wrote: > Just as a curiosity - (I dont need / Want it now - Maybe later) > Where / what site, can we get a list of the valid country/city codes ? Someone else has already provided you with a site. I'd just add that validating international numbers against a

Re: [PHP] Phone number validation

2002-04-07 Thread Richard Baskett
http://www.the-acr.com/codes/cntrycd.htm Rick "A good head and good heart are always a formidable combination. But when you add to that a literate tongue or pen, then you have something very special" - Nelson Mandela > From: "Gordon Stewart" <[EMAIL PROTECTED]> > Date: Mon, 8 Apr 2002 00:50:09

[PHP] import_request_variables() is undefined!?

2002-04-07 Thread M Green
When i just migrated to linux instead of win2k the function import_request_variables() is not defined anymore. I used 4.1.2 in win2k and 4.0.6 now under linux. I was wondering if it had to do with the versions or someting. Seems odd. Very tankful for any help that might get me to solve the probl

[PHP] Re: Form ID name

2002-04-07 Thread M Green
If you are using a function as an easy way to add links to your page, i'd recommend that you define a function that echoes in that manner. /Mattias "Morten Nielsen" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I got a table where I have some ima

Re: [PHP] PHP & .PDF & .ZIP ???

2002-04-07 Thread Tyler Longren
Yes, PHP can do pdf and can READ zip files. I am not sure if PHP can make the pdf unprintable, or locked. You can find info on the pdf functions here: http://www.php.net/manual/en/ref.pdf.php and info on the zip functions here: http://www.php.net/manual/en/ref.zip.php Since those are read-only

[PHP] Form ID name

2002-04-07 Thread Morten Nielsen
Hi, I got a table where I have some images and links (IMG & A). They all have an ID name. Is it possible to access them from a function through a variable? If my link looks like: then in my function I would like something like: func1( ) { $link=link1; $link.href="www.x.com"; } Is this someho

Re: [PHP] /usr/bin/php Question

2002-04-07 Thread Jason Wong
On Sunday 07 April 2002 19:37, Chris Kay wrote: > So I should compile without axps to make the binary then recompile > --with-axps to compile the apache module again.? > > Cause I want both apache module and command line. If you want both, then yes, you need to compile twice. Once using "--with

[PHP] PHP & .PDF & .ZIP ???

2002-04-07 Thread Jason Caldwell
I need to automatically create a .PDF file from a *dynamically created* text file, then .ZIP that file up. Then *ultimately* have that file attached to an email and automatically sent. Can PHP do .PDF files? .ZIP Files? The caveat on the .PDF file is; it also needs to be locked (or password pr

[PHP] Re: 1024X760 or 800x600

2002-04-07 Thread Steve
My reccomendation is to design it for optimization on 800*600..as that to me is the lowest common denominator.it will still look good in 1024*760 therefore covering both resolutions nicely Ron Allen wrote: > > Is there a way with PHP to determine screen resolution size??? -- PHP Gener

Re: [PHP] hosting

2002-04-07 Thread Adam Alkins
Go to http://www.webhostingtalk.com and do a search for them. Adam - Original Message - From: "Heidi Belal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers" <[EMAIL PROTECTED]>; "Egypt Programmers" <[EMAIL PROTECTED]>; "js-jive mailing list" <[EMAIL PROTECTED]>;

[PHP] hosting

2002-04-07 Thread Heidi Belal
didn't get an replies about web-x.net and i sent them and email and they never replied - doesn't portray a good image so i've looked for another hosting company and have come up with burst.net...anybody got any reviews? Thanks, = Heidi Belal www.code-corner.com ICQ# 32127109 A bus stops

Re: [PHP] PHP on Apache 2.0 -- Does it work?

2002-04-07 Thread Steve Magruder, D2 Director
Thanks for the info. Apache 1.3.24 isn't a bad release to be stuck with. :) I just wanted to be a little bit on the bleeding edge. Regards, Steve "Tyler Longren" <[EMAIL PROTECTED]> wrote in message 004001c1ddf3$13d82b90$0101a8c0@nightengale">news:004001c1ddf3$13d82b90$0101a8c0@nightengale..

[PHP] Re: Hidding an image

2002-04-07 Thread martinahingis
If you dont want user to see the image. dont put the image to the page! Or what you want is just something different? -- - martina. "Morten Nielsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I got a page where I have to images (IMG),

[PHP] Hidding an image

2002-04-07 Thread Morten Nielsen
Hi, I got a page where I have to images (IMG), which is also a link. Is it possible to hide an image so the user can't see it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbies Question

2002-04-07 Thread Matt
Remove the double-double quotes and the newline around $image: > $img = GetImageSize(""$image\n"");this is Line 13 It should look like: $img = GetImageSize($image); There is no need to double quote a variable when passing as a parm. You would want to double quote a variable

Re: [PHP] WebMail server question

2002-04-07 Thread Patrick Ni
Thank you Michael. It is IMP and horde that I was after. I only remembered that "M" or "N" is part of the name. Also Thanks to Chris. Patrick "Michael Geier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You are probably thinking about IMP (http://www.ho

Re: [PHP] /usr/bin/php error

2002-04-07 Thread Matt
Did you compile in ftp support? It's not there unless you do. http://www.php.net/manual/en/ref.ftp.php - Original Message - From: "Chris Kay" <[EMAIL PROTECTED]> > Would any one know why when I run command line php I get the following? > > [root@*** ]# /usr/bin/php /data/web/root/

RE: [PHP] WebMail server question

2002-04-07 Thread Michael Geier
You are probably thinking about IMP (http://www.horde.org) This message is actually being sent from an IMP 3.0 installation and our company is very pleased with the product. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Chris Kay <[EMAIL PROTECT

RE: [PHP] WebMail server question

2002-04-07 Thread Chris Kay
Not sure which one you are referring to but I been told SquirrelMail is really good http://sourceforge.net/projects/squirrelmail/ --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Patrick Ni [mailto:[EMAIL PROTECTED]] Sent: Sunday, 7 April

[PHP] WebMail server question

2002-04-07 Thread Patrick Ni
Good morning, Someone last month told me that there is free web based email server platform which relies on PHP technology. This mail server is the result of a project. I can not remember the name of the mail server. It is something like "NMP", "MNP", or "NMD" ???.. He also told me tha

[PHP] /usr/bin/php error

2002-04-07 Thread Chris Kay
Would any one know why when I run command line php I get the following? [root@*** ]# /usr/bin/php /data/web/root/***/getdata.php X-Powered-By: PHP/4.1.2 Content-type: text/html Fatal error: Call to undefined function: ftp_connect() in /data/web/root/***/getdata.php on line 16 --- C

[PHP] Newbies Question

2002-04-07 Thread news.php.net
Hi everybody, I'm a french newbie in PHP and I'm trying to resolve this : $num champs dans la ligne $row: "; //$row++; for ($c=0; $c<$num; $c++) { //print $data[$c] . ""; $image = $data[$c]; $img = GetImageSize(""$image\n"");this is Line 13 print $image; print $img; } } fcl

Re: [PHP] Phone number validation

2002-04-07 Thread Gordon Stewart
Richard Baskett <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What I do is strip all non-numeric numbers out and just store the number as > a string of numbers.. Then do validation on those numbers.. Make sure the > right amount of numbers are there, valid co

[PHP] New User of PHp/Mysql..

2002-04-07 Thread Gordon Stewart
Ive been using Mysql/PHP for a short while - I sent this messaghe to a big PHP group (not enough users though) about a week ago - No reply... Can anyone help.. PS - Slingshot.co.nz doesnt have PHP - its just a text file.. - Save to your own SQL server & test, Or just review the code - No viruse

RE: [PHP] /usr/bin/php Question

2002-04-07 Thread Chris Kay
So I should compile without axps to make the binary then recompile --with-axps to compile the apache module again.? Cause I want both apache module and command line. Or will it work as a apache module without axps? --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Ori

[PHP] Strange warning message GD2 & php 4.1.2

2002-04-07 Thread Mark W. Humphries
Perhaps someone can kindly help me with the following problem. The following snippet runs perfectly when I use php_gd.dll but generates a garbled warning message when I switch the extension to php_gd2.dll "Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on line 10" (line 1

[PHP] Re: counter for HIGH traffic site

2002-04-07 Thread Adam Wan
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm needing counter for site that receives 60 to 80 hits a minute. Many I > have tried cause excessive server load and need to be deactivated or they > lose data and return to zero without warning

[PHP] Re: Executing functions within ereg_replace() output

2002-04-07 Thread Adam Wan
Thanks! That preg_replace_callback helps alot. -Adam "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Adam Wan) wrote: > > > $content = 'string string 12463409834234 string string'; > > $content =

Re: [PHP] Can I fopen() files in .htaccess protected directories?

2002-04-07 Thread Miguel Cruz
On Sat, 6 Apr 2002, Dalton Hunter wrote: > Hi, does fopen() support the opening and reading of remote files in > directories protected with .htaccess files like ... > > fopen("http://user:[EMAIL PROTECTED]/directory/file.php","r";); > > If not, is there an alternative way to do this? Thanks! If

php-general Digest 7 Apr 2002 09:08:29 -0000 Issue 1272

2002-04-07 Thread php-general-digest-help
php-general Digest 7 Apr 2002 09:08:29 - Issue 1272 Topics (messages 91889 through 91914): Re: regular expressions: HUGE speed differences 91889 by: Chris Adams Re: how to sort by value in associative array 91890 by: Chris Adams 91894 by: Peter J. Schoenster The PH

Re: [PHP] How to convert a website to a txtfile....?

2002-04-07 Thread heinisch
At 06.04.2002 17:51, you wrote: >Hi! > >I have this website with a webshop that customers can order some products. >And when the products are listed up in the cart on the screen, would I like >to get the output >into a new txtfile and save it on the server. Then it is possible to get it >faxed, a