Re: [PHP] Parse error..help!

2001-05-18 Thread Rasmus Lerdorf
see anything wrong, please help. > > > SetLogging(1); > > Function AccessHit > ( That's not how you define a function. Use: function AccessHit() { ... } -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] php_track_vars

2001-05-18 Thread Rasmus Lerdorf
that it says that track_vars is always on now, simply remove that line from your scripts and everything will work fine. -Rasmus -- 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] Arg seperators

2001-05-18 Thread Rasmus Lerdorf
ould allow the link to be coded as src="http://site/cgi?opt1=val1;opt2=val2";> or whatever. > > I know that php 4.0.5 has a new ini directive for this, is there any way to > change this on older versions of PHP? That directive has been there for a long time. -Rasmus -- PHP

Re: [PHP] PHP and XHTML

2001-05-18 Thread Rasmus Lerdorf
around this? Has anyone > used XHTML and PHP together successfully, and if so how did you get around > the previously mentioned problem? Any help woould be much appreciated, > thanks in advance. Completely false. PHP works fine with XHTML. -Rasmus -- PHP General Mailing List (ht

Re: [PHP] Color of Pixel

2001-05-19 Thread Rasmus Lerdorf
> I got a jpg-picture on my disk. Is there any way to find out the color > of a pixel (let's say, I want to know, which color the pixel 1,12 on > image img.jpg is.) > > Ideas ? http://php.net/imagecolorat -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Reversing htmlspecialchars()

2001-05-19 Thread Rasmus Lerdorf
> How can i reverse the htmlspecialchars() functions? > I can't seem to find a function for that. There is no function to do that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
ight in PHP because it lacks multi-threading support. > > Any plans to add multi-threading capabilities to PHP? Nope, but you can use the ticks feature to do some of this. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
way, I was asking Zeev, will PHP ever have multi-threading capabilities? No, you asked the mailing list. Zeev's email address is [EMAIL PROTECTED] And no, PHP is unlikely to have multi-threading anytime soon. -Rasmus -- 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] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
ently the most capable developers to bring > multi-threading capability to PHP because they developed PHP current engine > - Zend, my question still goes for them. After all they always seemed more > reasonable and opened to my suggestions than you. You are assuming they even read this mailing l

Re: [PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Rasmus Lerdorf
foreach($HTTP_POST_VARS as $key => $val) { echo "$key: $val\n"; } On Mon, 21 May 2001, Carlos Fernando Scheidecker Antunes wrote: > Hello all, > > I'm trying to loop the $HTTP_POST_VARS variable like an array like this : > > $index = count($HTTP_POST_VARS); > > for($i=0; i < $index; i++) { >

Re: [PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Rasmus Lerdorf
> What would be the syntax to trim 2 characters off of a given string? $new = substr($old,0,-2); -- 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 PRO

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Rasmus Lerdorf
> But I use PCRE functions, so I don't want to use ereg in one place and PCRE > in another, so I tried: > > $file = preg_replace("#.*#i", "", $file); '/.*?<\/script>/i' -Rasmus -- PHP General Mailing List (http://w

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
t of PHP (from snaps.php.net) then you can use imagecopyresampled() to create thumbnails. It can be a bit slow if your originals are huge, but the quality is very good. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
he resulting thumbnail isn't going to look very good. Sometimes for thumbnails that is not an issue though. imagecopyresampled() does a very nice job of scaling images without losing quality, but you need GD2 to use it. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP & RUBY

2001-05-21 Thread Rasmus Lerdorf
e to layer multiple content filters on the same request. -Rasmus On Tue, 22 May 2001, Maxim Maletsky wrote: > Hello gurus, > > does anyone know a way to make PHP and RUBY running together (parsing both > the same file) ? > > This is what I tried to do: > > httpd.conf: >

Re: [PHP] what's the diff between if($var1) and if(isset($var1)) and if(!empty($var1))???

2001-05-22 Thread Rasmus Lerdorf
if($var1) is true if $var1 is set and has a non-0 and non-false value if(isset($var1)) is true if $var1 is set to any value including 0 or false if(!empty($var1)) is true if $var1 is set to anything except a null-string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] fsockopen nntp stalls

2001-12-26 Thread Rasmus Lerdorf
Why not just use the imap extension which supports the NNTP protocol natively? On Wed, 26 Dec 2001, Fred wrote: > I am attempting to use fsockopen to connect to a news server. I am able to > successfully connect and authenticate. In fact, I can issue many commands > without a hitch. > > I do

Re: [PHP] Licensing??

2001-12-28 Thread Rasmus Lerdorf
Well, PHP is not under the GPL. But you still don't need to buy any sort of license. -Rasmus On Sat, 29 Dec 2001, Bogdan Stancescu wrote: > LOL! You may want to read this for clarification: > http://www.gnu.org/philosophy/free-sw.html > > Bogdan > > "Andrew V. R

Re: [PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Rasmus Lerdorf
Why not just use an auto_prepend rule in your config and prepend that bit of PHP code automatically without touching the FrontPage-generated crap? -Rasmus On Mon, 7 Jan 2002, Miles Thompson wrote: > I have a client which edits all his PHP pages as HTML files in MSFT Front > Page. That

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Rasmus Lerdorf
ows world). Don't go throwing 'native > db' support around too much without backing it up with solid argument. Michael, see ext/dbx - the abstraction doesn't get any more native than that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Rasmus Lerdorf
's DECODE() statement for a blatant example of this. -Rasmus -- 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] Specific References Incident

2002-01-10 Thread Rasmus Lerdorf
Use a while(list()=each()) loop. On Thu, 10 Jan 2002, Ken Kinder wrote: > Negative. > > On Thursday 10 January 2002 04:54 pm, Mark wrote: > > On Thu, 10 Jan 2002 16:49:45 -0700, Ken Kinder wrote: > > >That's what I had thought too, but no: > > > > > >Parse error: parse error, expecting `T_VARIAB

Re: [PHP] Second newbie question

2002-01-10 Thread Rasmus Lerdorf
See http://php.net/overload On Thu, 10 Jan 2002, Ken Kinder wrote: > I have a second newbie question, and I promise I really did try to find this > in the docs. > > Is there a method that can be called when an attribute or method is called > that doesn't exist? A catch-all method? > > -- > PHP G

Re: [PHP] Specific References Incident

2002-01-10 Thread Rasmus Lerdorf
Well, just use the array index. ie. $a = array(1,2,3,4,5); foreach($a as $k=>$v) { $a[$k]++; } This is obviously going to increment each element in the array, right? Just do the same in your case. One has to wonder why you are using arrays of objects though... -Rasmus

Re: [PHP] quick question

2002-01-10 Thread Rasmus Lerdorf
his isn't working. $sql = "SELECT * FROM tablename WHERE tablename.column=".$_GET['criteria_integer']; Or use {}'s properly if you insist on putting the variable inside the quotes. Easier just to pop out and append it though. -Rasmus -- PHP General Mailing List (http:/

Re: [PHP] me and my CRON JOB

2002-01-10 Thread Rasmus Lerdorf
Well, does /usr/local/bin/php exist? On Thu, 10 Jan 2002, Mehmet Kamil ERISEN wrote: > hi, > here is the question: > I know I need to add a line like: > #!/usr/local/bin/php > to the begining of my php page followed by > my code > ?> > > Then set a cron job, so it runs. > > I have done all that

Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf
php -i >logfile On Fri, 11 Jan 2002, Vaccius ITsec wrote: > > Hi, > > How does one redirect phpinfo into some logfile? > > Rgds, > -PY > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

Re: [PHP] Piping phpinfo();

2002-01-10 Thread Rasmus Lerdorf
> On Thu, 10 Jan 2002, Rasmus Lerdorf wrote: > > Thanks Rasmus, but I am not looking for a command line option. > > I need to pipe phpinfo() from a php script, running under apache. > Normally, phpinfo() will just dump its output onto the browser; > I want to redirect thos

RE: [PHP] ereg

2002-01-10 Thread Rasmus Lerdorf
.*? is a Perl'ism and only supported by the preg* functions. Use preg_match() instead of ereg() and it will work. -Rasmus On Fri, 11 Jan 2002, Martin Towell wrote: > what about ? > ereg("(.*?)", $lineofhtml, $output); > > -Original Message- > From: Kun

Re: [PHP] removing an array element

2002-01-11 Thread Rasmus Lerdorf
st add a simple check inside that while loop? if($temprow['div_id'] != $home_div_id) echo "" . $temprow['div_name'] . "\n"; Seems more logical to me than to mess with the array itself. -Rasmus -- 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] PHP question regarding Cold Fusion

2002-01-11 Thread Rasmus Lerdorf
Google for something called PostToHost I wrote ages ago. Lots of variations of that around. Basically you just fsockopen() to the site in question and fputs() your request and POST data and then fgets() the result. -Rasmus On Fri, 11 Jan 2002, Jeremy Reed wrote: > Cold Fusion, as far as

Re: [PHP] OT kind of..

2002-01-12 Thread Rasmus Lerdorf
Includes are not relative to your DocumentRoot. They are system paths. A ScriptAlias would have absolutely no effect. -Rasmus On Sat, 12 Jan 2002, Richard Baskett wrote: > Ok I have looked everywhere to try to figure out why I get the stupid > warning: > > Warning: Failed open

Re: [PHP] 4.1.1 Causes Signal 11 On FreeBSD 4.5 / Apache 1.3.22

2002-01-13 Thread Rasmus Lerdorf
would actually cause a graceful restart of Apache, but I don't see how anything we do in PHP could cause spurious sig10's. Get a backtrace of one of the sig11's. Without that there isn't much hope of us tracking this down. -Rasmus -- PHP General Mailing List (http://www.php

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Rasmus Lerdorf
MySQL has plenty of functions to return dates to you in any format you specify. Please read http://mysql.com/documentation/mysql/bychapter/manual_Reference.html#Date_and_time_functions and pay special attention to the DATE_FORMAT() function. -Rasmus On Sun, 13 Jan 2002, Sander Peters wrote

[PHP] Re: [PHP-DB] Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread Rasmus Lerdorf
. -Rasmus On Sun, 13 Jan 2002, DL Neil wrote: > Rasmus, > > I have held several datetime-related conversations with people recently, and another >series about 'when'/whether > to use PHP or MySQL functionality. > > Here you are, "the man" of PHP, advising S

Re: [PHP] Slow references?

2002-01-13 Thread Rasmus Lerdorf
copies are faster if you don't change the copied data since no copy is actually done. It is a shallow copy also know as a copy-on-write so you should just pass a copy in your case, I bet. -Rasmus On Mon, 14 Jan 2002, Tino Didriksen wrote: > Is it just me, or is working with referen

Re: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Rasmus Lerdorf
You call it broken, we call it finally making them POSIX-compliant. Whatever floats your boat. -Rasmus On Mon, 14 Jan 2002, Manuel Lemos wrote: > Hello, > > Alain Samoun wrote: > > > > Manuel: > > What is broken with strtok() since php4.06? So far my code that use i

Re: [PHP] SELECT DAYOFYEAR(NOW())

2002-01-13 Thread Rasmus Lerdorf
This doesn't appear to be a PHP question. Are you sure you are on the right list? On Sun, 13 Jan 2002, sundogcurt wrote: > Hi! I'm storing a date in this format : > > 2002-01-13 11:08:40 > -mm-dd hh:mm:ss > > This is great because it gives me the date and the time, which I need. > I want to

Re: [PHP] Compile problems php 4.1.1

2002-01-14 Thread Rasmus Lerdorf
You don't mention which OS you are on, but usually apxs is found in the apache-devel package. You probably didn't install that. -Rasmus On Mon, 14 Jan 2002, Jay Paulson wrote: > I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors >o

Re: [PHP] Content

2002-01-15 Thread Rasmus Lerdorf
Grab the latest version of PHP. There is a new php.ini directive called always_populate_raw_post_data which when turned on forces all post data to be available through the $HTTP_RAW_POST_DATA variable. -Rasmus On Tue, 15 Jan 2002, Daniel C. Sobral wrote: > I have a little problem I have b

RE: [PHP] Compile problems php 4.1.1

2002-01-15 Thread Rasmus Lerdorf
Redhat's apxs was broken years ago in RH 6.0 or some version like that. But since then the apxs from the apache-devel package has been fine. -Rasmus On Tue, 15 Jan 2002, Simon Ritchie wrote: > > I'm trying to compile php 4.1.1 and when it gets to the > > --with-apxs opt

Re: [PHP] Question about HTTP_ENV_VARS, PHP, and Apache

2002-01-15 Thread Rasmus Lerdorf
This has been discussed a number of times here. Apache will always inherit the environment of the user that starts it. You should start it with a clean environment. ie. add "env -i" to whatever script starts your httpd server. -Rasmus On Tue, 15 Jan 2002, Michael Sims wrote: > Thi

RE: [PHP] security benefits of predefined variables

2002-01-16 Thread Rasmus Lerdorf
enario setting your error_reporting level to E_ALL will throw a warning when you use an uninitialized $admin variable. That will prompt you to initialize $admin correctly and thus be fine with register_globals turned on. I don't think it is quite as hard as everyone says to write register_glob

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Rasmus Lerdorf
T table.column FROM table WHERE criteria LIKE " . $myrow['variable']; -Rasmus -- 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] Mail() Timeout

2002-01-16 Thread Rasmus Lerdorf
Fix your sendmail flags in your php.ini file to just queue up the mail. On Wed, 16 Jan 2002, Ben Sinclair wrote: > Is there a way to shorten the timeout for the mail() function? Currently it > will wait too long when it is unable to send mail, causing the browser to > appear to hang. > > -- > Be

Re: [PHP] PHP Security - "view source code"

2002-01-16 Thread Rasmus Lerdorf
o .inc files with an httpd.conf rule. Allowing people to execute files that were meant to be included out of context could end up being much more dangerous than simply having people see the source. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] PHP Security - "view source code"

2002-01-17 Thread Rasmus Lerdorf
> On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote: > > > No, it is safer to block access to .inc files with an httpd.conf rule. > > Allowing people to execute files that were meant to be included out of > > context could end up being much more dang

RE: [PHP] Re: eval()

2002-01-20 Thread Rasmus Lerdorf
> while (list($opid, $ppid, $amount, $pname) = mysql_fetch_row($res)) { > $eval = '$temp["'.$pname.'"] = $temp["'.$pname.'"] + '.$amount.';'; > eval($eval); > $i++; Whoa... W

Re: [PHP] MySQL queston - Which row does it put your info into?

2002-01-24 Thread Rasmus Lerdorf
That's how databases work. There is no implied ordering internally. An order is only applied if you add an "order by" clause on a select. -Rasmus On Thu, 24 Jan 2002, Phil Schwarzmann wrote: > When Im adding rows into my MySQL database using PHP, it seems to put > the

Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Rasmus Lerdorf
ys are the same. Where does this assumption come from? Hopefully not the documentation. -Rasmus On Thu, 24 Jan 2002, Robert Ames wrote: > This is the second time in as many weeks that we have been bitten by the > fact that $_POST != $HTTP_POST_VARS; Attached is a real-world exampl

Re: [PHP] wierd function behavior within classes.. Bug?

2002-01-24 Thread Rasmus Lerdorf
PHP does not support having multiple methods with the same name. Write a single method and check the number of args in that. -Rasmus On Thu, 24 Jan 2002, Marc Swanson wrote: > I'm not sure if this is a known feature in php.. but the following code will > generate this warnin

RE: [PHP] Question: $_* etc or $HTTP_*_VARS etc

2002-01-25 Thread Rasmus Lerdorf
http://www.php.net/manual/en/features.file-upload.php $HTTP_POST_FILES or $_FILES -Rasmus On Fri, 25 Jan 2002, Gonzalez, Zara E wrote: > To add on to this question, I have an upload script that I use on my site and > now that I have registered globals off, I can't seem to fin

Re: [PHP] Install wddx extention for php 4.1.1

2002-01-25 Thread Rasmus Lerdorf
Try leaving off the --with-expat-dir switch completely. PHP comes with its own expat. On Fri, 25 Jan 2002, Ziying Sherwin wrote: > > We tried to install php 4.1.1 with wddx support on our Solaris 2.8 with > gcc 3.0. We installed expat library 1.2 (download from > http://www.jclark.com/xml/expat

Re: [PHP] gd library 1.6 or younger

2002-01-30 Thread Rasmus Lerdorf
google for gd-1.8.3gif On Wed, 30 Jan 2002, Ed Lazor wrote: > I'm trying to play with the gif functions this program supports. I'm > having trouble finding it. Could someone e-mail it to me? > > Thanks, > > -Ed > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

Re: [PHP] connection_aborted() ?

2002-01-31 Thread Rasmus Lerdorf
> can anone show me a good example how to use this function? > I'm not really sure how it works it only makes sense to use if your turn off user aborts. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] add on's to php

2002-01-31 Thread Rasmus Lerdorf
You can add modules on the fly today using dl() or semi-on-the-fly by adding them to php.ini and just restarting the web server. You don't need to recompile php to add any of these modules. -Rasmus On Thu, 31 Jan 2002, Kunal Jhunjhunwala wrote: > Hey, > I was wondering, if

Re: [PHP] SAPI (Apache 2) question & connection pooling

2002-02-01 Thread Rasmus Lerdorf
e works for this problem. The SRM project addresses this and when/if Apache2 ever gets stable and people start using it, I am sure someone will write some pooling code. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] SAPI (Apache 2) question & connection pooling

2002-02-01 Thread Rasmus Lerdorf
> On Fri, Feb 01, 2002 at 09:14:24AM -0800, Rasmus Lerdorf wrote: > > > a) if Apache 2 is a single-process server (as opposed to Apache 1.x which > > > forks a new process for a new request) > > > > It is a hybrid server which can be anything from one to the oth

Re: [PHP] last char in string?

2002-02-14 Thread Rasmus Lerdorf
http://php.net/substr $rest = substr("abcdef", 0, -1); // returns "abcde" -Rasmus On Thu, 14 Feb 2002, marcbey wrote: > hello php guys, > > how can i delete the last char in a string? > > thanx > > > -- >

Re: [PHP] Change gif image with php

2002-02-16 Thread Rasmus Lerdorf
olely on the version of the GD library PHP is linked against. GIF support was not removed from PHP. It was removed from later versions of the GD library. Simply grab an older version of GD which has GIF support and link PHP against that. -Rasmus -- PHP General Mailing List (http://www.php.net

Re: [PHP] Getting an RGB value of a pixel (JPEG)

2002-02-19 Thread Rasmus Lerdorf
ImageColorsForIndex() and ImageColorAt() But you will PHP 4.1 for these functions to work with TrueColor images. -Rasmus On Tue, 19 Feb 2002, Baumann Reto wrote: > Hi there > > > I have to get an RGB value of a specified pixel in an JPEG image. This image > uses 24bit per pi

Re: [PHP] explode? (table field to a variable of same name)

2002-02-19 Thread Rasmus Lerdorf
This creates all the variables you asked for and also prints each one in a column of a table. foreach($row as $key=>$val) { $$key = $val; echo "$val"; } -Rasmus On Tue, 19 Feb 2002, Baloo :0) wrote: > How can I assign automatically all fields of a database to a variab

Re: [PHP] Difference between two dates

2002-02-19 Thread Rasmus Lerdorf
This will give you the difference between the two dates in seconds: $diff = strtotime(str_replace('-','/',$str1)) - strtotime(str_replace('-','/',$str)); -Rasmus On Wed, 20 Feb 2002, Uma Shankari T. wrote: > > > > Hello, > > How

RE: [PHP] Re: Weather Scripts

2002-02-19 Thread Rasmus Lerdorf
manipulation. Probably an hour or two for any local UNIX hack to come up with exactly what you need. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get an application/octet-stream from a java applet

2002-02-20 Thread Rasmus Lerdorf
Grab a recent PHP release and in your php.ini file add: always_populate_raw_post_data = On -Rasmus On Wed, 20 Feb 2002, Nicolas Boutet wrote: > Hi all, > I'm trying to make a script to get "application/octet-stream" datas from a > java applet. The method used by the ap

Re: [PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-20 Thread Rasmus Lerdorf
> appreciated. Dies? How so? Is it a segfault? If so, please get me a backtrace. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF Fonts Files

2002-02-20 Thread Rasmus Lerdorf
fonts, a couple of AFM (Adobe Font Metric) fonts and also a couple of TTF fonts all on the same PDF page. -Rasmus On Mon, 18 Feb 2002, Richard Lynch wrote: > Please Cc: me on replies... > > I recently installed PHP 4.1.0 + PDF 4.0.1 on my development box. > > I can't seem to

Re: [PHP] file delete...

2002-04-17 Thread Rasmus Lerdorf
Did you check the manual? Like php.net/delete perhaps which tells you the PHP function that does this is actually called unlink(). -Rasmus On Wed, 17 Apr 2002, jas wrote: > How can I delete a file in php? > thanks in advance, > Jas > > > > -- > PHP General Mailing

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread Rasmus Lerdorf
Turn on the memory-limit option On Wed, 17 Apr 2002, Dustin E. Childers wrote: > Hello. > > I have found something interesting that can kill the server. I'm not sure if this is >because of Apache or PHP. If you use PHP to send a header() inside of a while loop, >the httpd process will begin to

Re: [PHP] Ming and/or libswf

2002-04-20 Thread Rasmus Lerdorf
loaded in via php.ini. -Rasmus On Sat, 20 Apr 2002, Richard Lynch wrote: > Please Cc: me as well... > > I'm having the devil of a time getting Ming and/or libswf to do a Bitmap... > > > Short version: > What's the most stable PHP+Ming version-compatible combo I can

Re: [PHP] inline CGI

2002-04-21 Thread Rasmus Lerdorf
virtual() On Sun, 21 Apr 2002, Werner de Schepper wrote: > Hello, > > I like to include the html-output of a perl script in my php-page. The perl > script is on the same server as the php file, so I use de passthru( > [docroot/path/perl-file] ) function to include de html output of the script >

Re: [PHP] How to check flags?

2002-04-21 Thread Rasmus Lerdorf
if($abc & 2) echo "2 Bloco\n"; if($abc & 4) echo "4 Sessao\n"; if($abc & 8) echo "8 Sistema\n"; -Rasmus On Sun, 21 Apr 2002, albertonews wrote: > I want this: > > 2 Bloco > 4 Sessão > 8 Sistema > > only this three > > b

Re: [PHP] adding numbers to a file

2002-04-22 Thread Rasmus Lerdorf
$lines = file('filename'); foreach($lines as line) { list($var,$val) = explode('=>',$line); if(trim($var)=="'total'") $val = trim($val); } $val = $new_value; $fp = fopen('filename','w'); fput

Re: [PHP] How do remove WARNING message

2002-04-22 Thread Rasmus Lerdorf
Read the error handling chapter in the documentation. -Rasmus On Mon, 22 Apr 2002, Jean-Rene Cormier wrote: > Ok I'm trying to create a script that would allow users to bind to an > LDAP server and we all know there's gonna be some people mistyping their > password but whe

RE: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Rasmus Lerdorf
Also see extract() and import_request_variables() Although, an upgrade to PHP 4.2.0 is not going to automatically disable register_globals. Upgrading PHP does not overwrite the existing php.ini file, so unless you ISP specifically changes this php.ini setting, nothing will change. -Rasmus On

Re: [PHP] remove last character in a string

2002-04-22 Thread Rasmus Lerdorf
read php.net/substr On Mon, 22 Apr 2002, Craig Westerman wrote: > I have a string that ends in a comma. What is best method to remove the > comma? > > Craig ><> > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove last character in a string

2002-04-22 Thread Rasmus Lerdorf
No you don't. You should go read the substr() docs as well: substr($str,0,-1); -Rasmus On Mon, 22 Apr 2002, Tyler Longren wrote: > First, you'll need to get the length of the str with the str_len() function. > After you have that, use the substr() function like

Re: [PHP] RE: PHP 4.2.0 Release Announcement

2002-04-23 Thread Rasmus Lerdorf
No, this has not been implemented. I can't think of anything uglier and less sensical than Code should be readable and not misleading. -Rasmus On Tue, 23 Apr 2002, Brinkman, Theodore wrote: > Does anybody know if they completed the handling of the 'echo shortcut' to

Re: [PHP] compiling php 4.2 with apache 2.0.35

2002-04-24 Thread Rasmus Lerdorf
No, you need to install Apache first if you want to build PHP as an Apache module. I'd suggest sticking with Apache 1.3.x for now though. -Rasmus On Wed, 24 Apr 2002, Michal Dvoracek wrote: > Hello, > > i have problem with %subj%. > > It's possible to build php witho

Re: [PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Rasmus Lerdorf
Well, it isn't likely to be any faster, it just uses less runtime memory. -Rasmus On Wed, 24 Apr 2002, Jimmy Lantz wrote: > Hi, > I'm looking into the new version of PHP it says in the changelog > "Highly improved performance with file uploads " > Has there be

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Rasmus Lerdorf
It works fine. Spell Header() right, or remove the header altogether so you can see the error message. I predict you will see a message telling you it couldn't open the font file. -Rasmus On Thu, 25 Apr 2002, zhaoxd wrote: > hello,all: > > I have already installed gd-1.8.4 in

RE: [PHP] compiling on freebsd

2002-04-24 Thread Rasmus Lerdorf
ed to add --with-apxs -Rasmus On Thu, 25 Apr 2002, Larry Brown wrote: > I don't mean to be rude but as I mentioned in my post "After running > ./configure make and make install...". Please review my post for the actual > problem. > > Larry S. Brown MCSE > Dimens

RE: [PHP] compiling on freebsd

2002-04-24 Thread Rasmus Lerdorf
want other flags on this configure line. --with-mysql is just an example. === Now why would you assume that you could build the Apache module version without the --with-apxs flag? -Rasmus On Thu, 25 Apr 2002, Larry Brown wrote: > I ended up using a port which eventually worked. I parsed

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread Rasmus Lerdorf
>zhaoxd > > > It works fine. Spell Header() right, or remove the header altogether so > > you can see the error message. I predict you will see a message telling > > you it couldn't open the font file. > > > > -Rasmus > > > &

Re: [PHP] New "Variables"

2002-04-25 Thread Rasmus Lerdorf
You are better off reading the Security chapter in the PHP documentation. That study-in-scarlet document is right on some points, but ill-informed and misleading on others. -Rasmus On Thu, 25 Apr 2002, Erik Price wrote: > > On Thursday, April 25, 2002, at 10:06 AM, Nico van der Dussen

Re: [PHP] Variables not set

2002-04-26 Thread Rasmus Lerdorf
Please read http://www.php.net/manual/en/language.variables.scope.php On Fri, 26 Apr 2002, Liam Gibbs wrote: > I have a problem with my variables not being set. I > have a file I use for constants and functions, > structured like so: > > $this = "this"; > $that = "that"; > . > . > . > function t

Re: [PHP] Safe mode

2002-04-26 Thread Rasmus Lerdorf
You need to use php_admin_flag for safe_mode. But I wouldn't expect any effect here since you defaulted it to On and in your httpd.conf you are turning it on... So what are you expecting to see different? -Rasmus On Fri, 26 Apr 2002, Ashley M. Kirchner wrote: > > On our se

Re: [PHP] getting session data

2002-04-26 Thread Rasmus Lerdorf
You forgot to do a session_start() in your a.php script. Also make sure register_globals is turned on. If it isn't, use $_SESSION['userip'] in b.php. -Rasmus On Fri, 26 Apr 2002, Deval Parikh wrote: > hi, > IF I am using this code in one script... > > a.p

Re: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini file. On Sat, 27 Apr 2002, baldey_uk wrote: > Hello all, im not sure if its my installation or if on doing something wrong > but i cant seem to use any of the variables from forms that i PUT to. Or any > full stop! even > > > > doesnt out put anything. A

RE: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
essage- > From: Nathan [mailto:[EMAIL PROTECTED]] > Sent: 27 April 2002 02:34 > To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Variables not working > > > Before you get carried away with registering globals, try echoing: > $_SERVER["

Re: [PHP] PHP Team: PHP 4.2.0 & SSL Support?

2002-04-26 Thread Rasmus Lerdorf
4.3 will have better support courtesy of Wez's cool streams code. -Rasmus On Fri, 26 Apr 2002, [-^-!-%- wrote: > > Hello PHP Team ! > > I was wondering if the latest PHP release had any improved support for SSL > and secure connections. > > Are there any plans to ad

Re: [PHP] mail() through a form

2002-04-26 Thread Rasmus Lerdorf
mail( $to, $From, $email, $message ); The argument to mail() are to, subject, message. See http://www.php.net/manual/en/function.mail.php The rest looks ok. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problems upgrading PHP..

2002-05-02 Thread Rasmus Lerdorf
-with-mysql=/usr/local --with-apxs=/mypathtoapxs etc etc .. > > Still really confused.. > > Chad > > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 2002 2:52 PM > To: Rasmus Lerdorf > Cc: [EMAIL PROTECTED] > Subject:

Re: [PHP] Search engine indexing

2002-05-02 Thread Rasmus Lerdorf
yup On Tue, 30 Apr 2002, Charl wrote: > Are PHP files indexed the same way as plain HTML files by search engines? > > -- Charl > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] asking about upload file

2002-05-02 Thread Rasmus Lerdorf
Did you read the chapter in the manual on that? On Fri, 3 May 2002, wong wrote: > please help me > how upload 5 file gif or jpeg together with php. > > RiZaL > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mail

Re: [PHP] date(), strtotime(), Wed, Dec 31, 1969 ??

2002-05-03 Thread Rasmus Lerdorf
Because your strtotime() call is returning 0. Replace the '-' with '/' and I bet it would work. -Rasmus On Fri, 3 May 2002, ROBERT MCPEAK wrote: > Running PHP3 on a Linux box and I've got trouble with date(). > > Here's the code: > > $blah=2002-05

RE: [PHP] I want to use a mailer other than sendmail

2002-05-03 Thread Rasmus Lerdorf
but this file isn't actually all that bad) Now find the line that starts with "DS" and change it so it says: DSmail.mindspring.com for example. Then restart your sendmail. And now hocus-pocus-presto-shazzam, your sendmail suddenly works great for all your apps, not just PHP. -Rasm

Re: [PHP] Grabbing ALL $_POST var at once.

2002-05-06 Thread Rasmus Lerdorf
See either extract() or import_request_variables() in the manual. -Rasmus On Mon, 6 May 2002, David J Jackson wrote: > The code below works (but its ugly), but I know there has to be a why to > grab all the $_POST[] at once and then parse them out? > > Isn't there a why for

RE: [PHP] file_exists

2002-05-06 Thread Rasmus Lerdorf
Not until 4.3. On Mon, 6 May 2002, Jonathan Rosenberg wrote: > Does fopen() actually work for https connections? I thought this > implementation was not yet released. > > > -Original Message- > > From: Austin Marshall [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 06, 2002 9:40 PM > >

Re: [PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Rasmus Lerdorf
Relax Dan, open source non-commercial PHP-related announcements of interest to a lot of PHP users are welcome here. -Rasmus On Tue, 7 May 2002, Dan Hardiker wrote: > > This is a minor bug fix release. > > Wasnt aware that php-general had incorporated a channel for product &g

<    2   3   4   5   6   7   8   9   10   11   >