I am working with php and mysql and have the need to write a query like:
$sql_statement=mysql_query( select * from table where column='string' );
What comes out is:
select * from table where column=\'string\'
Only if you pass that variable through a GET/POST/COOKIE operation and you
For my website I created an updating system in php. Where my staff and I can
write articles that then get saved to the server, linked to, etc. I allowed
html to be passed from the form because a lot of the staff likes to use html
tags in their articles. Which I know is a security issue.
I
-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:39 AM
To: PHP Mailing List
Subject: [PHP] PHP mail() security hole on 4.0.5+
http://www.net-security.org/text/bugs/995534103,28541,.shtml
Anyone have
Read http://php.net/set_error_handler
and http://php.net/trigger_error
Pay particular attention to the user notes on the set_error_handler()
page.
-Rasmus
On Thu, 19 Jul 2001, Randy Miller wrote:
Using mod_perl when an error is encountered, I have a customized error
screen that is defined
Did you compile php using --with-readline ?
On Thu, 19 Jul 2001, Adrian D'Costa wrote:
Hi,
I am trying to use the socket or readline functions but get a message:
call to undefined function readline(). Why? Is this not implemented in
4.0.6.
Adrian
--
PHP General Mailing List
Does anyone know of a reputable PHP web hosting company that also
supports the libswf (i.e. Flash) module?
And, specifically, does anyone know if Pair.com does/doesn't? (yes, I'm
going to ask them directly as well)
Any provider which runs on a sane platform and doesn't disable the dl()
http://php.net/empty
On Sat, 21 Jul 2001, Justin French wrote:
Hi,
I'm a semi-newbie, and if I want to check if a variable is set, or
contains something, i've been doing it like this:
if($var != ) { ... }
I'm sure there is a better/safer/smarter/faster/more reliable way?
Justin
I need to store username and password for mysql in a file to be used by PHP.
I am concerned with PHP's security. Can anyone use showsource() to read php
source even if they are on a different server or they are spoofing my ip
address (hacking)?
No, of course not.
If I put a file with the
Check phpinfo()
On Sat, 21 Jul 2001, Thiago Locatelli da Silva wrote:
Well, this code get the name of the user that is logged in win9x/2k/nt (ASP)
Request.ServerVariables(LOGON_USER)
and, how can i do it in php?
I tryed getenv() and not worked.
Please, help me!
--
PHP General
could be wrong. You will have to do a little bit of
digging on your own.
-Rasmus
Hi,
I have now compiled php --with-readline and --with-sockets but I still get
the call to undefined function socket() what could be wrong.
Adrian
On Thu, 19 Jul 2001, Rasmus Lerdorf wrote:
Did you
Please read http://www.php.net/manual/en/configuration.php
You need to use:
php_value auto_prepend_file /usr/local/htdocs/oi2kplus1/phplib/prepend.php
-Rasmus
I'm trying to get auto_prepend to work on Mandrake 8.0, apache is
configured with mod_php4 and mod_vhosts. Where do I add the
I want to use both PHP and SSI on the same page. My server requires that
SSI files are .shtml. If I set it to also treat .shtml files as php files
(like I have done with .htm) then what will happen? Will it get parsed
first for php and then for ssi, or the other way round? Or puke
System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000
i586 unknown
Build Date Jul 20 2001
Configure Command './configure' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug'
$REMOTE_USER
On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote:
If I have a directory protected with an .htaccess file that requires users to
log in, is there anyway to determine what username they used in my PHP scripts?
--Jon
--
PHP General Mailing List (http://www.php.net/)
To
Does any one have any good code for creating PDF's on the fly with graphic
images?
Putting an image in a PDF is trivial:
?
$pdf = pdf_new();
pdf_open_file($pdf);
pdf_begin_page($pdf, 612, 792); // US-Letter size
$x = 5; $y = 792-72;
$scale = 0.5;
$im = pdf_open_jpeg($pdf, logo.jpg);
This is driving me nuts. I'm trying to compile PHP 4.0.6 on RedHat 6.2.
After I ran ./configure --with-imap make make install,
/etc/rc.d/init.d/httpd configtest tells me:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol:
I'm discovering the joys of PHP as supplied by RH on their 7.1 release.
Actually, everything about it is SO much nicer than ASP or pure Perl. (Not
to take anything away from either--PHP's just a LOT easier to get hold of!)
I'm running PHP as an Apache module (default RedHat installation)
in order to prevent my visitors from seeing more than one popup in less than
120 second, I added this to my php page(index.php)
--
setcookie(popup,1,time()+120);
if ($popup!=1)
echo script src=http://www.peel.net/frames/PMNforce.js/script;
}
-
When I reload
Use the urlencode() function.
Or at the very least use str_replace.
And by the way, the ereg_replace() you have works fine. You must be doing
something silly.
-Rasmus
On Wed, 25 Jul 2001, Clayton Dukes wrote:
Can someone tell me why this doesn't work?
$home_street = ereg_replace ( , +
Just use the standalone php binary and write yourself a little php script
and run it from your cron periodically.
-Rasmus
On Wed, 7 Feb 2001, GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote:
Hi there,
I need to do some kind of alarm in php, I have a date(dd-mm-)
in mysql and need that
rasmus Thu Feb 8 06:21:13 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Jin Tae-Young
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.76 CVSROOT/avail:1.77
--- CVSROOT/avail:1.76 Thu Feb 8 06:17:37 2001
+++
rasmus Thu Feb 8 06:26:08 2001 EDT
Modified files:
/CVSROOTcvsusers gen_acl_file.m4
Log:
Doc account for Ingmar Heinrich
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.205 CVSROOT/cvsusers:1.206
--- CVSROOT/cvsusers:1.205 Thu Feb 8 06:21:13
rasmus Thu Feb 8 06:31:48 2001 EDT
Modified files:
/CVSROOTcvsusers gen_acl_file.m4
Log:
PEAR account for Björn Schotte
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.206 CVSROOT/cvsusers:1.207
--- CVSROOT/cvsusers:1.206 Thu Feb 8 06:26:08
rasmus Thu Feb 8 06:45:36 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Change waldschrott to andre
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.77 CVSROOT/avail:1.78
--- CVSROOT/avail:1.77 Thu Feb 8 06:21:13 2001
+++
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since
included files share the same namespace as the parent file. You can
simply do:
$asin = 123;
include 'book_reviews.php';
And the $asin variable will be accessible to you book_reviews.php script.
-Rasmus
On Thu, 8 Feb
Adding ?asin=$asin doesn't make much sense but
do it like this:
include('book_reviews.php?asin=' . $asin);
Which makes just as little sense. Included files share the same namespace
as the file doing the including. You don't pass arguments to included
files.
-Rasmus
--
PHP General
rasmus Fri Feb 9 07:28:23 2001 EDT
Modified files:
/php4/ext/standard datetime.c file.c
Log:
What the heck is CUT? Assume someone meant UTC here. And fix a
warning.
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.65
Hrm.. When was this changed in PHP 3? It used to be on by default. And
it is on by default in PHP 4.
-Rasmus
On Sat, 10 Feb 2001, Jim Winstead wrote:
jimw Sat Feb 10 11:43:58 2001 EDT
Modified files:
/php3 php3.ini-dist
Log:
we claim php3.ini documents the
rasmus Sun Feb 11 01:43:28 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
CVS account for Emiliano Heyns (Midgard Project)
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.79 CVSROOT/avail:1.80
--- CVSROOT/avail:1.79 Fri Feb 9
rasmus Sun Feb 11 05:31:21 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
More karma for Emile
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.80 CVSROOT/avail:1.81
--- CVSROOT/avail:1.80 Sun Feb 11 01:43:27 2001
+++ CVSROOT/avail Sun
rasmus Sun Feb 11 12:50:36 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
CVS account for David Guerizec
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.81 CVSROOT/avail:1.82
--- CVSROOT/avail:1.81 Sun Feb 11 05:31:20 2001
+++
rasmus Mon Feb 12 03:43:45 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
CVS account for Alan Knowles
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.82 CVSROOT/avail:1.83
--- CVSROOT/avail:1.82 Sun Feb 11 12:50:35 2001
+++
rasmus Mon Feb 12 04:05:12 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Switch mgddavid to davidg
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.84 CVSROOT/avail:1.85
--- CVSROOT/avail:1.84 Mon Feb 12 03:46:24 2001
+++
You should be using: --with-jpeg-dir=/usr
Also make sure that you don't have the old gd.h from gd-1.3 lying around.
ie. locate gd.h and make sure you only have one. rpm -qa | grep gd
-Rasmus
On Mon, 12 Feb 2001, Greg Kopp wrote:
I am having trouble getting PHP, GD and apache compiled. I
No, you can't just add random .so libraries directly like that. You will
have to write a PHP extension that maps the API implemented by your
library to a set of user-callable PHP functions. The ext/ext_skel script
gets you on your way towards writing such an extension, but you need to be
an
I've been programming in C all my life, and now I just started developing
in PHP and I'm really enjoying it, it has all the missing improvements that
C needed to be more user-likely.
But one thin I can't get, how can PHP call a variabel global, if it isn't
global.
A global var, is a var
I believe you use globals $var to ACCESS a global variable, not to
define.
That's correct. To be perfectly correct here, what you are doing is
creating a reference to the global variable. Think of it as an alias to
the same variable as the global variable.
global $foo;
would be
count($myarray) will give you 3
On Sat, 17 Feb 2001, bill wrote:
How can i get the count of a multi-dimensional array?
if I have
$myarray[0][chicken]
$myarray[0][fish]
$myarray[0][meat]
$myarray[1][fries]
$myarray[1][chips]
$myarray[2][coke]
$myarray[2][pepsi]
$myarray[2][rootbeer]
Attempting to use this in PHP causes Apache to segfault. Is there anywhere
I can download the source and make sure it's linked against my libs
properly?
The source for what? PHP? Sure, click on the Downloads button on
www.php.net. For libswf, nope. Use ming instead.
Upgrade to the latest tarball from snaps.php.net
On Sun, 18 Feb 2001, Charles Peters wrote:
Geetings and Salutations-
I am experiencing a similar problem, but only on two
similarly configured FreeBSD 4.0-Stable servers. Here
are the details...
We are running php-4.0.1p12, and it is
Yes
On Sun, 18 Feb 2001, Charles Peters wrote:
Thanks Rasmus,
I appreciate your quick response.
I would imagine that there was a know issue involving
this bug and the version of php that I was using?
Charles
--- Rasmus Lerdorf [EMAIL PROTECTED] wrote:
Upgrade to the latest tarball
rasmus Thu Feb 22 10:37:33 2001 EDT
Modified files:
/CVSROOTcvsusers gen_acl_file.m4
Log:
doc account for Dmitry Tkatchenko
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.215 CVSROOT/cvsusers:1.216
--- CVSROOT/cvsusers:1.215 Thu Feb 15
rasmus Thu Feb 22 10:40:02 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Lucas Rocha
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.88 CVSROOT/avail:1.89
--- CVSROOT/avail:1.88 Tue Feb 20 10:23:17 2001
+++
rasmus Thu Feb 22 10:47:54 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc accounts for Juhyon Kim and Luiz Augusto Gonçalves Flores
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.90 CVSROOT/avail:1.91
--- CVSROOT/avail:1.90 Thu
rasmus Thu Feb 22 10:51:03 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Ernani Joppert Pontes Martins
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.91 CVSROOT/avail:1.92
--- CVSROOT/avail:1.91 Thu Feb 22 10:47:54
rasmus Thu Feb 22 10:53:52 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Arne Blankerts
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.92 CVSROOT/avail:1.93
--- CVSROOT/avail:1.92 Thu Feb 22 10:51:03 2001
+++
rasmus Thu Feb 22 10:56:53 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Carlos Eduardo Vargas Miranda
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.93 CVSROOT/avail:1.94
--- CVSROOT/avail:1.93 Thu Feb 22 10:53:51
rasmus Thu Feb 22 10:59:40 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Adonias Malosso
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.94 CVSROOT/avail:1.95
--- CVSROOT/avail:1.94 Thu Feb 22 10:56:52 2001
+++
rasmus Thu Feb 22 11:01:21 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Jaemin Byon
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.95 CVSROOT/avail:1.96
--- CVSROOT/avail:1.95 Thu Feb 22 10:59:40 2001
+++
I have a string of 1034 and I want to have an array that has each number in
an element.(ex: num[0] = 1, num[1] = 0, num[2] = 3 num[3] = 4) Is there a
way to explode a string by each character?
Just convert it to a string: ie. $foo = (string)$num; echo $foo[1];
-Rasmus
--
PHP General
rasmus Fri Feb 23 18:50:13 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
More karma for Jesus
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.98 CVSROOT/avail:1.99
--- CVSROOT/avail:1.98 Thu Feb 22 11:18:10 2001
+++ CVSROOT/avail Fri
rasmus Sat Feb 24 02:20:38 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Midgard cvs account for Alexander Bokovoy
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.99 CVSROOT/avail:1.100
--- CVSROOT/avail:1.99 Fri Feb 23 18:50:13
rasmus Mon Feb 26 11:34:09 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Julio Cesar Carvalho Rocha
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.103 CVSROOT/avail:1.104
--- CVSROOT/avail:1.103 Sun Feb 25 16:25:35
rasmus Thu Mar 1 18:46:21 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Add a couple of doc accounts
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.105 CVSROOT/avail:1.106
--- CVSROOT/avail:1.105 Tue Feb 27 06:56:43 2001
+++
They probably didn't build jpeg support into their gd library.
On Thu, 1 Mar 2001, Cherie Benoit wrote:
I can't create or manipulate jpegs, but pngs work fine. I am using a hosting
service. They installed GD 1.8.4 with jpeg support a few days ago, but I'm
thinking they did it wrong. I'm
rasmus Tue Apr 3 18:42:03 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
dev account for David Reid
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.130 CVSROOT/avail:1.131
--- CVSROOT/avail:1.130 Tue Apr 3 12:07:22 2001
+++
rasmus Wed Apr 4 08:25:44 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
CVS Account for David Benson (Thies-approved)
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.131 CVSROOT/avail:1.132
--- CVSROOT/avail:1.131 Tue Apr 3
rasmus Wed Apr 4 09:01:32 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
GTK CVS account for Joe Stump
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.132 CVSROOT/avail:1.133
--- CVSROOT/avail:1.132 Wed Apr 4 08:25:44 2001
+++
Done. Anything from mail.thecasino.com and thecasino.com is now blocked.
-Rasmus
On Wed, 4 Apr 2001, TV Karthick Kumar wrote:
Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to
continue.
I am sure the list master (in php.net) can do it, for the sake of the list.
Hope
rasmus Wed Apr 4 09:08:41 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Dev account for Brendan W. McAdams to work on CCVS
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.133 CVSROOT/avail:1.134
--- CVSROOT/avail:1.133 Wed Apr 4
rasmus Wed Apr 4 09:12:21 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
CVS account for Gavin Sherry
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.134 CVSROOT/avail:1.135
--- CVSROOT/avail:1.134 Wed Apr 4 09:08:40 2001
+++
rasmus Wed Apr 4 09:15:56 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Doc account for Djalma Carneiro
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.135 CVSROOT/avail:1.136
--- CVSROOT/avail:1.135 Wed Apr 4 09:12:21 2001
+++
rasmus Thu Apr 5 08:26:26 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
doc account for Sean Preston
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.136 CVSROOT/avail:1.137
--- CVSROOT/avail:1.136 Wed Apr 4 09:15:56 2001
+++
It seems to me that ftp_get() is a potential security hole, or maybe we've
just got it misconfigured on our system. When a script calls ftp_get() and
transfers a file, the new file on the local system (e.g. the box running php)
is owned by the webserver. Now this would make sense if the
urldecode($string)
On Sat, 7 Apr 2001, Victor wrote:
Hello friends,
For those who are not allergic to newbie questions:
I want to make a button for a web page from a background gif and a
string. Till here nothing unusual. I used the example from the php
manual and it works like a breeze.
I'm doing file uploads through PHP and now have a need to retrieve and store
the original fully qualified directory path name used for the upload. For
example if the user copied image file sample.jpg from c:\temp I need to
retrieve and store the c:\temp\ in addition to the sample.jpg that I
I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from a
.tar file.
Just remove the LoadModule line from your httpd.conf assuming you built
PHP as a DSO. If you compiled it into your Apache as a static module you
will need to recompile Apache.
-Rasmus
--
PHP General
httpd -l
If php shows up in your list it is static.
Or, check phpinfo() and see if the configure line you used was --with-apxs
(DSO) or --with-apache (static)
-Rasmus
On Sun, 8 Apr 2001, David Loszewski wrote:
how do I tell?
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL
It doesn't, but you don't need Freetype support in GD in order to get
GD+Freetype support. PHP takes a vanilla GD library and adds Freetype
support itself (assuming you have the Freetype lib, of course).
-Rasmus
On Mon, 9 Apr 2001, trogers wrote:
Hi
I don't think gd uses freetype by default
Don't put complex variables inside quoted strings like that. Simply break
out of your quoted string and do:
print "blah blah blah " . $this-arrayname['value'] . " blah";
-Rasmus
On Mon, 9 Apr 2001, DELAP, SCOTT F (SBCSI) wrote:
I've been trying to figure this out for a day or so now.
I want to write to a given file using the code below. Somehow I get the
parse error. I thnk it has something to do with --- @Listing
Is this a setting in my php.ini which is wrong or is the code maybe wrong (I
copied it out of a php text book.)
What is this @Listing thing supposed to
rasmus Tue Apr 10 09:00:19 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Fix Kevin's password and add some karma
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.142 CVSROOT/avail:1.143
--- CVSROOT/avail:1.142 Mon Apr 9 13:32:31 2001
+++
rasmus Tue Apr 10 09:16:17 2001 EDT
Modified files:
/CVSROOTcvsusers
Log:
Fix email address
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.253 CVSROOT/cvsusers:1.254
--- CVSROOT/cvsusers:1.253 Mon Apr 9 13:32:31 2001
+++ CVSROOT/cvsusers
rasmus Tue Apr 10 09:31:01 2001 EDT
Modified files:
/CVSROOTloginfo
Log:
Fix email address for pear commits
Index: CVSROOT/loginfo
diff -u CVSROOT/loginfo:1.40 CVSROOT/loginfo:1.41
--- CVSROOT/loginfo:1.40Tue Feb 27 06:56:43 2001
+++
Kevin Murphy wrote:
I was just wondering if there was any thought one way or another on the
best practice for doing this.
Lets say I have 10 functions that I want to reuse on my site. Not every
page needs every function. So I move the function to an external page
and then require it for the
IE doesn't actually support XHTML, so if your primary target for
something is IE, you really shouldn't be using XHTML. Even IE7 doesn't
fully support it.
Setting the charset in the response header like you did is the best
approach. You can do it for all your pages in your php.ini file with:
John Taylor-Johnston wrote:
Is there something already created to open an rss file, parse it, and
include() the useful stuff into an html file?
Not all my students have an rss reader.
http://jtjohnston.ca/jtjohnston.rss
RSS is just XML. Use SimpleXML to map it to a PHP object and just print
tedd wrote:
At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote:
By the way, everyone should be setting a charset. If you don't set
it, IE will look at the first 4k of the body of the page and take a
wild guess.
-Rasmus
-Rasmus:
Ok, but why doesn't w3c use it?
http://validator.w3.org
Artzi, Yoav (Yoav) wrote:
I have the following in my php.ini:
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
The following PHP code prints nothing:
?php
$webroot = $_SERVER['DOCUMENT_ROOT'];
$server = $_SERVER[HOST];
It's a pecl extension, so it is with all the other pecl extensions for
Windows at http://pecl4win.php.net/
-Rasmus
steve wrote:
Yeah, sorry, it is missing from a test version of PHP 5.2. In the test
version, it is not available, nor is it on snaps. Likely doesn't work.
On 8/23/06, Alex
For any of you folks in the Bay Area, don't miss the open Hack Day at
Yahoo next Friday/Saturday. It is completely free and the density of
web experts will be higher than at most conferences.
More info on it at the following links:
http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/
Joseph Cheng wrote:
Is anyone using a reliable Linux/Apache/MySQL/PHP benchmarking suite?
There are benchmark software for individual pieces but I hope there is
one tool or several small tools that act together to give a picture of
how long a request takes from entering Apache, to PHP, to MySQL
Kevin Wilcox wrote:
I have a feeling this may be the wrong group to ask this question, but
I thought that if it is, someone can point me in the right direction.
I'm working on a application written in C that needs to parse and
understand php arrays that have been serialized and stored in a
Sean Pringle wrote:
The Caching systems such as Zend Cache (not the Optimizer), MMCache,
APC, etc are expressly designed to store the tokenized version of the
PHP script to be executed.
Note that their REAL performance savings is actually in loading from
the hard drive into RAM, not actually
Jochem Maas wrote:
Eric wrote:
Stut wrote:
Eric wrote:
When I create a socket/stream that connects to a news sever and try
to recv data from the socket when there is nothing there (Like if the
server sends one line and I call recv twice) the socket freezes. I
assume this is because using
$str is 10 bytes
then you repeat it 200 times
That gives you 2000 bytes. That's 20M not 10M
-Rasmus
Cabbar Duzayak wrote:
Hi,
I have written a simple test program to see how php allocates memory.
Test code allocates ~10 Meg of RAM in an array within a loop till it
runs out of
Daevid Vincent wrote:
-Original Message-
From: Ed Lazor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 12:05 PM
Cc: Daevid Vincent; PHP General
Subject: Re: [PHP] Microsoft Partners With Zend
ps... I wonder if .NET will ever support PHP *GRIN*
I guess that's
Rasmus Lerdorf wrote:
The only slight negative as far as you are concerned could be that they
may divert some Zend resources to work on Windows issues that aren't
interesting to you. But consider that there are 1133 people with PHP
cvs accounts. Only 11 work for Zend, and out of those 11
Beauford wrote:
Does the PHP list not monitor spam or filter out viruses? I am getting a lot
of this junk coming through the list. I am also getting some directly to
this address, but obviously that is out of the lists control.
We filter 1000's of spam messages every day. But a few do get
Christian Heinrich wrote:
Hey all,
I've just examined the latest Change-Log for Version 5.2.0 (see
http://www.php.net/ChangeLog-5.php for details).
Seems to be fine, but I couldn't figure out one point.
The changelog talks about
Added RFC1867 fileupload processing hook. (Stefan E.)
Google Kreme wrote:
On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote:
Content-type: image/
the browser expects only the image to output to the screen and no HTML
As if should.
Save the image in a temporary location and then send html that include
and img ... / tag
You don't need to
Roger Thomas wrote:
I have been serving my community with Invision Power Board (IPB) v1.3.1
Final. Things are working well with PHP 4.3.8 and Apache 1.3.29.
Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word
attachments with IPB. Whenever I click on those
You did more than just turn register_globals off. You also changed your
error warning level. You have turned notices on. Set the same error
warning level in your PHP 4 setup and you will see exactly the same
messages.
To be notice-free, your code should look like this:
$action =
Aras wrote:
First of all, Happy New Year for everyone in the list. I wish 2007 brings
all us happiness, health and peace.
I want to read your advises at a point i am stuck within, i have an
application that serves downloads to clients. For some reason i am limiting
total open slot for some
Prathaban Mookiah wrote:
Is it true that ob_start(ob_gzhandler) can cause problems on IE 5.5+?
Since IE any-version is on the client side, it shouldn't cause any problems
to ob_start(), in that case any other PHP function.
That's not true. ob_gzhandler is extremely browser-dependant
http://au.php.net/flush
Kirsten wrote:
How do I make the browser to display data as it being generated? I've
noticed some websites do this with cgi.
For example:
html
head
titleXXX/title
/head
body
%
$i = 0;
while (true){
echo p . $i++ . /p;
sleep(1);
}
%
/body
/html
Evert | Rooftop wrote:
Chris Shiflett wrote:
Danny Brow wrote:
Zend sells a compiler to speed up your PHP code. Since it's compiled,
it also does not contain the source code in readable form. You should
visit the Zend website.
Any free ones?
http://pecl.php.net/package/APC
APC won't work for
I can't say for sure, but I'm betting that APC doesn't support the
version of PHP that you are trying to use. Specifically, I don't
think it supports PHP5+
Correct, APC is currently PHP4 only.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Rob Agar wrote:
From: Rory Browne
This is primarly a mailing list. Not a news group. The whole idea of a
mailing list is that you get every message mailed to you.
uh, I think the OP is complaining about the emails that *don't* go via
the list, because this list is set up so that hitting
Michael Stearne wrote:
I am having the strangest problem using system() or exec() or any
variation. None of them work on the Fedora Core 3 system that was
just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default
installation for Fedora Core 3. Everything in PHP works as
901 - 1000 of 1546 matches
Mail list logo