Re: [PHP] problem with fread

2002-05-07 Thread Henning Sprang
>$output = ""; // Clear output > $url = "http://whatever.com/file.html";; // whatever you wanna pull from > > if ($fp = fopen($url, "r")) { > while ($tmp = fget($fp, 4096)) $output .= $tmp; > fclose($fp); > } > > echo "The URL's content is: ".$output; > ?> erm, don't wanna b

[PHP] problem with fread

2002-05-07 Thread Henning Sprang
Hy, i have a question about the fread() function. i want to read data from a webserver url, which i don't know the exact size of, i only know that it varies. i see i have to give the lentgh of a file when reading it, but for remote files i have no way to check the size. And i saw no way to tell fr

Re: [PHP] Php-gtk

2002-02-27 Thread Henning Sprang
hy leif Leif K-Brooks wrote: > I read the tutorial for it on the php-gtk site, but I didn't see a thing > about how to run it? > > this is not the list to discuss this, please subscribe to php-gtk-general. btw, afaik in the "introduction" part of the manual installation and tunning are de

[PHP] compiling with all options

2002-02-27 Thread Henning Sprang
hy all, is there an easy way to compile php with all possible extension and feature options, as far as they don't crash when used together, and, even better as far as the libs are available on the system? tia, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] printing files

2002-02-13 Thread Henning Sprang
Hy, John Gurley wrote: > Just a quick question, > is there a way to echo in your php code lines of a file that you specify. > i.e. you want to output lines 1,4,7 of a certain text file use the fopen and fread functions, to read lines from a file, only put the wanted lines into a string and ou

Re: [PHP] Including a file using php //

2002-01-15 Thread Henning Sprang
louie miranda wrote: > Read the content > I mean, echo it on the browser.. if you send a piece of code that supposedly doesn't do what you want I can't go and read the code to find out what you _really_ want to do. if the code did what you wanted you didn't need to send it. so it is useful fo

Re: [PHP] Including a file using php //

2002-01-15 Thread Henning Sprang
louie miranda wrote: > So u mean like this? > > > include('http://192.168.129.103/noc/chikkaps.txt'); > ?> > > > Only?, Im not good with this, can you give me some samples? do you want to include the code in that file or read the content? include is used to include code for execution, if

Re: [PHP] Creating rich interfaces for web applications??

2002-01-14 Thread Henning Sprang
Geoff Caplan wrote: > Henning > > >>I did not work a lot with applications in PHP-GTK until now to say >>something about speed and reliability ( the list may answer those >>questions, i am only working on the translation of the manual for now), >>but I think it's worth a look at, and i know the

Re: [PHP] Creating rich interfaces for web applications??

2002-01-14 Thread Henning Sprang
Geoff Caplan wrote: > Hi folks > > I have been looking for a practical way to create rich dynamic forms in the > client using PHP, and would appreciate any pointers to workable approaches. > With the launch of .Net I suspect that customer expectations are going to > change, and good old plain HT

Re: [PHP] open a New Window

2002-01-14 Thread Henning Sprang
Simos Varelakis wrote: > Hi to everybody > > I wonder if is posiblle to open a new predefined size window (new html > page) with php code. This won't work with PHP, only with JavaScript Code which may be dynamically outputted by php, which means, you could open windows with a piece of javaS

Re: [PHP] Newbie - PHP & MySQL

2002-01-11 Thread Henning Sprang
Ben Clumeck wrote: > When using MySQL to Authenticate users for a specific directory (i.e. > www.mysite.com/user) how would it know to go to that directory ("/user"). > How would it know to not let someone access a file directory in that > directory (i.e. www.mysite.com/user/page2.php)? this

Re: [PHP] removing an array element

2002-01-11 Thread Henning Sprang
Erik Price wrote: > what function is used to remove an array element from an array? Like > array_pop(), except one by which I can refer to the element by its > associative index rather than just the last element of the array. > > > For more detail with what I'm doing, I have two versions

Re: [PHP] Compiled PHP

2002-01-11 Thread Henning Sprang
Andrey Hristov wrote: > Several months ago there were notes on few websites about "phpcompiler". > AFAIK it is not so good but it is something. > Last week a man on php-dev said that he starts working on new php compiler but with different approach - to connect in one thing - > php4ts.dll, p

Re: [PHP] xml dom support

2002-01-11 Thread Henning Sprang
Sandeep Murphy wrote: > hi, > > I am running PHPtriad on a win2k machine... when I run phpinfo() it > displays " XMLACTIVE" this means that the standart, expat based xml support ist active >but I keep getting an error "Fatal error: Call to > undefined function: xmldoc() in C:\apache\htd

Re: [PHP] HTTP_X_FORWARDED_FOR?

2002-01-10 Thread Henning Sprang
Hy, [EMAIL PROTECTED] wrote: > Hi, > > I just installed IIS 5.0 and PHP 4.1.1 on Win 2000, and I'm wondering what happened >to the HTTP_X_FORWARDED_FOR? I doesn't seem to exist on my system. Is it just a >variable that needs to be changed, or has it been removed from PHP? Thanks. This ha

Re: [PHP] echo "" problem NEW

2002-01-09 Thread Henning Sprang
Nicolas Costes wrote: > Hellorghh !!! > You'd better do like this : > > echo " > just another one - but i am too out of practice with html standarts to know if this is compliant ( a browser showing a result doesn't neccessary mean it's standarts compliant!) henning -- PHP General Mai

Re: [PHP] echo "" problem NEW

2002-01-09 Thread Henning Sprang
Hy, universal2001 wrote: > Hi again! > > Thanks for the reply! > > I still have another question: > > so I tired to use (echo) like this: > > echo " > > border="0"> > > > src="img_heading/index_r1_c1.gif" width="639" height="5" border="0"> > border="0"> > > >

Re: [PHP] binary data - MSSQL

2002-01-09 Thread Henning Sprang
Hy Peter, Peter Lavender wrote: > Hi Everyone, > > I did ask this earlier, but I have made some head way since, but I'm still > not sure that I have things right. > > What datatype should I use for zip files? You should use the blob type therefore > > How do I create a link to a file to b

Re: [PHP] Redirecting to a URL

2002-01-08 Thread Henning Sprang
Hy Robert MacCombe wrote: > Hi, how do I redirect to a different URL, e.g. as a result of an IF > condition being true. I'm basically looking for a PHP version of the ASP - > Response.Redirect("/otherpage.htm") use the header function to send a location: header to the browser: $redirect_ur

Re: [PHP] really weird

2002-01-08 Thread Henning Sprang
Chris Grigor wrote: > Hi Henning > > If I use modification time, how would I use keep state before exiting (I > have never done that aggghhh!) i didn't do that before, too, I just can imagine how it should work :) before exiting or right after sending the mail you would need to write the ac

Re: [PHP] really weird

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

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

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

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

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

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

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

Re: [PHP] PHP Grammar

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 14:53:18 -0200 schrieb JJVG: > Hi, > > Is there a place where I can get the PHP Grammar? http://download.php.net/manual/en/langref.php have fun, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] Sending variables between PHP pages

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 12:49:41 +0100 schrieb Berlina: > Yes, Im thinking the same... > :-(( > > Thanks again Intruder > > > - Original Message - > From: "Intruder" <[EMAIL PROTECTED]> > To: "Berlina" <[EMAIL PROTECTED]>; "php-general-list" > <[EMAIL PROTECTED]>; "php-dev-list" <[EMAIL PROTECTE

Re: [PHP] PHP dependent on connection speed?

2002-01-03 Thread Henning Sprang
Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk : > Is the php engine slowed by users with a slow connection? it _should_ not under "normal" circumstances - but what problems are you exactly experiencing? henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] php-gtk compile prob

2002-01-03 Thread Henning Sprang
Hy, this is for [EMAIL PROTECTED], there you'll get answers I think... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] backtracing of includes

2001-12-28 Thread Henning Sprang
Hy, Am 28 Dec 2001 14:27:50 +0100 schrieb Jerry Verhoef (UGBI): > Don't think that a option like this exists. > > But maybe you should consider using > > include_once or > require_once > > Also before you define the function use the function_exist("") and if the > function already exists don

[PHP] backtracing of includes

2001-12-28 Thread Henning Sprang
Hy, I would like to know if there is a way to get information on the include hierarchy of files in php, especially to find out where which file is included and trace back the line from some file until the first called php file. My special case here and now is that I get an error that some functio