Then you are going to have to lock a text file, but chances are you will
end up deadlocking things. I'd rethink the whole thing if I were you.
-Rasmus
On Tue, 13 Aug 2002, vic wrote:
I have no database, this has to be done in PHP
- Vic
-Original Message-
From: Rasmus Lerdorf
It's not, your provider is simply lazy.
-Rasmus
On Tue, 13 Aug 2002, Alan Hale wrote:
My Web hosting company has just withdrawn (with no notice) support for PHP
extensions on the grounds they represent security risks and they don't wish
to spend time and effort in evaluating and
Thanks for quick response. Just a couple of silly questions:
- changed where? in php or apache? My host is running the three week old
v 4.2.2 of php so I guess you mean apache?
No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only.
None of the changes for the past couple of
of the problem seems to be my virtual host's environment.
Most things I've tried with directives in an htaccess don't work and the
error log says not allowed etc.
I appreciate your help.
Rasmus Lerdorf wrote:
What does include have to do with DirectoryIndex? And what exactly is
your problem
I know many people hate top-posts, but when you get 1400+ emails every day
and answer 50+, it sure does speed things up. Having the relevant text
right up front means I don't have to scroll down to find it. If I don't
understand the reply and need more context, that's when I scroll down to
see
If I have to do that for every reply then I will only reply to half as
many messages each day.
On Tue, 13 Aug 2002, Jason Wong wrote:
On Tuesday 13 August 2002 00:03, Rasmus Lerdorf wrote:
I know many people hate top-posts, but when you get 1400+ emails every day
and answer 50+, it sure
If register_globals is known to be on, why are you worrying about
the $HTTP_* arrays?
On 12 Aug 2002, Petre Agenbag wrote:
Hi
Me again
Still having problems with forms not sending variables, and session
variables dissapearing.
I have 2 systems, one older 4.0.3 PHP which is my main
, Rasmus Lerdorf wrote:
If register_globals is known to be on, why are you worrying about
the $HTTP_* arrays?
On 12 Aug 2002, Petre Agenbag wrote:
Hi
Me again
Still having problems with forms not sending variables, and session
variables dissapearing.
I have 2 systems, one
If they are able to lift your database they are more than likely able to
lift your scrambling code as well. And assuming you want the ability to
descramble the card number, there is simply no way to do this securely.
Sorry.
-Rasmus
On Mon, 12 Aug 2002, Mike Mannakee wrote:
Does anyone have
file() returns an array, show_source() takes a string.
On Mon, 12 Aug 2002, eriol wrote:
Thanks for the reply..
I did try what you suggested, but am getting the following warning:
Warning: Failed opening 'ArrayArrayArray' for highlighting in
/hsphere/local/home/eriol/oo0oo.com/o0o.o0o on
On UNIX PHP hands the message off to sendmail to be delivered. You want
this stuff to happen out of band, it makes no sense to sit there and watch
a browser spin while something is off communicating with an smtp server.
So, depending on your sendmail configuration, and how you are invoking
Just about any mailing list system that supports subscriber passwords
should do. I can't imagine a way they would store these passwords that
PHP wouldn't be able to grok with a little 10-minute hack job.
-Rasmus
On Tue, 13 Aug 2002, Jean-Christian Imbeault wrote:
Rasmus Lerdorf wrote
Because you are comparing a string to a number. PHP has to choose to
either compare the two as strings or as numbers. The numerical value of
the string 'test' is 0 which means it works out to 0 == 0 which is true.
If you want to force a string comparison, you can use strcmp() or, if you
want
Does your AllowOverride include Indexes? If it doesn't, you can't put
DirectoryIndex in a .htaccess.
httpd -L is your friend.
-Rasmus
On Sun, 11 Aug 2002, Al wrote:
Appreciate the feedback, but.
The .htaccess approach appears to fit my situation best; but, I've not
been able to get
Filesystems are meant to be case-sensitive, and yes, URL's are as well.
It's an abomination that Windows and old-style Mac filesystems are not.
You need to keep track of that in your code. 'a' and 'A' are just as
different as 'a' and 'b'.
-Rasmus
On Sun, 11 Aug 2002, Rich Hutchins wrote:
What does include have to do with DirectoryIndex? And what exactly is
your problem with include? The only trick is setting the include_path
which doesn't seem all that obtuse to me.
-Rasmus
On Sun, 11 Aug 2002, Al wrote:
The problem may be due to the fact that my environment is Apache Unix.
First of all, which OS and PHP version?
On Mon, 12 Aug 2002, Gandalf wrote:
Hello!
First of all, i am trying to solve this problem for more then a week now, i
looked through php.net for hours and have posted on numerous boards but
nobody could come up and tell me what is going wrong.
You really should also do a bit of work to make it easy for people to help
you. I just spent 5 minutes decyphering your text file so I could
reproduce your problem using this script:
?
$array1 = array( array(aus_name=Videografik, aus_id=1),
array(aus_name=Webdesign,
This isn't really a PHP question, is it? This is a function of your
database, and since you don't mention which database you are using it is a
bit hard to answer. Assuming MySQL, there is an entire chapter in the
MySQL docs on exactly how to do this:
Try leaving off the .ttf
On Fri, 9 Aug 2002, JR wrote:
I am trying to use the imagettfbbox function. Am testing the script on my
local network
running W2K. Have defined :
$fontfile = arial.tff; // this file is in the same directory
with my script
The instruction that
function foo($str,$num) {
return preg_replace('/ {'.$num.',}/',str_repeat(' ',$num),$str);
}
On Fri, 9 Aug 2002, Henry wrote:
Hi All,
Are there standard functions for removing multiple spaces (or even better
limiting contiguous space to specified lengths)?
i.e
foo(Hello
Probably a quote problem, or you are adding a ; at the end. The
mysql_error() output after the failed query would tell you exactly. Much
easier than asking here.
-Rasmus
On Fri, 9 Aug 2002, Liam Gibbs wrote:
Is there any reason why a MySQL query won't run
properly in a mysql_query command,
You are mixing up some things here. JSP is server-side Java, applets are
client-side. The two have very little to do with each other. You can use
PHP and still send a Java applet to the browser, for example.
But if you are asking if doing client-side graphics with a java applet is
faster or
You'll never hear anything from the core php group since they are a tight
click so it's business as usual.
That's probably the most uninformed statement I have seen posted to this
list in a very long time.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: August 3, 2002 1:04 PM
To: Acer
Cc: Dennis Moore; Andrey Hristov; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Protect PHP coding
You'll never hear anything from the core php group since they are a tight
in a very long time.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: August 3, 2002 1:04 PM
To: Acer
Cc: Dennis Moore; Andrey Hristov; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Protect PHP coding
You'll never hear anything from the core php group since
I think your problem is that you are passing the output of
ldap_get_entries() directly back into ldap_modify(). ldap_get_entries()
returns an array of result elements whereas ldap_modify() is expecting a
single element.
So, to change the 'st' attribute for the uid=testing record, you should
Hey php-general,
maybe somebody can explain me what happens in this line? because how
mutch i read it..thought i don't get it :)
list ($date, $laik) = split (' ', $row['time'], 2);
Well, it is rather inefficient code. Applying a regex just to break a
string up on a single character
, as then I would have
two pictures that I can compare and see where my reasoning failed.
Thanks for your time.
Rasmus Lerdorf wrote:
What issues? Just ask.
-Rasmus
On Mon, 29 Jul 2002, Petre wrote:
What are good books/websites about sessions.
I'm looking for more advanced stuff, I have
missing the picture, as then I would have
two pictures that I can compare and see where my reasoning failed.
Thanks for your time.
Rasmus Lerdorf wrote:
What issues? Just ask.
-Rasmus
On Mon, 29 Jul 2002, Petre wrote:
What are good books/websites about sessions.
I'm looking
Well, how did you do the install? You really need to provide more
details. Heck, any details. You don't mention your OS, whether you
compiled from source, if so which configure flags, from packages, which
packages, etc.. We are not mind readers.
-Rasmus
On Tue, 30 Jul 2002, Mark Colvin
code below, I can simply remove the
ini_set('session.use_trans_sid',false); and ?=$sid? from your code to make it work
exactly as is?
Thanks
Rasmus Lerdorf wrote:
The trick is to not name your form vars the same as your session vars.
Keep them separate so you have full control of what
So, I've been using my own implementation of session handling which is
mainly storing the userinfo in a cookie (an array, serialised and signed)
but I'm starting to come around to the idea of storing this info on the
server and just passing a session key about - but I have a couple of
3 How can I get a count of currently active (I.e non expired)
sessions?
Count the number of session files.
Can I be sure that the count will only include active sessions though?
By definition, if the session file is there, it is an active session.
There is no such thing as counting
Can't you just use CDATA blocks?
Personally I'd either use an entity reference or base64 the stuff.
-Rasmus
On Tue, 30 Jul 2002, Sebastien Mole wrote:
Hello,
I have a question concerning characters : I use the function xml_parse on a
standalone XML file with the encoding ISO-8859-1
and I
Your default error reporting level must be set different on your Windows
box. If you turn off E_NOTICE warnings on your Windows box it will act
the same as your Linux box.
But, in general, to write E_ALL clean code you would check if each exists
first, or swallow the errors if you know that
The latest stable versions of both. Apache 1.3.26 and PHP 4.2.2.
On Wed, 31 Jul 2002 [EMAIL PROTECTED] wrote:
So, which version of apache and php are the best for working together under any
OS system ?
Scott Fletcher wrote:
I wouldn't jump on Apache 2.0.39 for the production website and
Simply install the php-mysql rpm.
On Mon, 29 Jul 2002, Joel Lopez wrote:
Hi,
I would like to recompile php with mysql support. I am a newbie. I really
don't want to have to reinstall RedHat just to be able to use MySQL with
php.
I ran:
rpm -qa | frgrep php
and I see these:
Sounds like you didn't call pdf_end_page() before calling your next_page()
function.
-Rasmus
On Tue, 30 Jul 2002, Jeffrey wrote:
Here we go again; I posted the message pdflib, NEED HELP with
function problem (newby) and thank you to all that helped. Even
after that help, seems I cant
Yes, you would need to. serialize() does not encode any of the variable
data.
-Rasmus
On Tue, 30 Jul 2002, Danny Shepherd wrote:
Hi,
Is it necessary to perform addslashes() on serialised data before inserting
it into a database?
Thanks,
Danny.
--
PHP General Mailing List
Which php version? This code works just fine here.
On Tue, 30 Jul 2002, Kerry Gray wrote:
Also , Fatal error: Call to undefined function: is_uploaded_file() in
/host/g/i/a/8/b/i/giapai3k.8bit.co.uk/mail.php on line 20
Kerry Gray [EMAIL PROTECTED] wrote in message
[EMAIL
Try rm config.cache, re-configure and try again
On Tue, 30 Jul 2002, John Williams wrote:
I'm having a problem getting the mail() function working on php 4.2.2.
I get the error message:
Warning: mail() is not supported in this PHP build
I'm running Solaris 8 and have set the symlink for
);
next_page(close);
I can remove those next_page function calls and just put in the
PDF_begin_page and end page calls and it works right away, but it wont work
inside the function :(.
Jeff
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You would probably stand more chance of an answer on the ming-fun mailing
list.
-Rasmus
On Mon, 29 Jul 2002, Richard Lynch wrote:
Please cc me on answers, as I'm way behind in this list...
I have a perfectly good Ming (Flash) movie coming out of PHP, but it's a bit
large...
I'd like to
What issues? Just ask.
-Rasmus
On Mon, 29 Jul 2002, Petre wrote:
What are good books/websites about sessions.
I'm looking for more advanced stuff, I have the Luke Welling/Laura
Tompson book, and have read the manual, but I still have issues that are
unresolved.
Thanks
--
PHP
$ts = strtotime(-10 days);
On Mon, 29 Jul 2002, Christopher J. Crane wrote:
I believethisto be one way to find out yesterday's date:
$tomorrow = mktime (0,0,0,date(m) ,date(d)-1,date(Y));
However, I would like to have a snippet of code to tell me how to get the
date of today - 10 days
You need == instead of = there
On Fri, 19 Jul 2002, John Wulff wrote:
Any ideas on why this won't work? It will only include(inc/entrance.php)
It never, no matter what the value of $mode, displays collection.php.
?php
$mode = entrance;
if ($mode = entrance) {
In 4.3 you would use file_get_contents()
In prior versions I would suggest:
$fp = fopen('filename','r');
$string = fread($fp, filesize('filename'));
fclose($fp);
The implode(file()) stuff is very memory-inefficient.
-Rasmus
On Thu, 18 Jul 2002, Analysis Solutions wrote:
On Thu, Jul 18,
Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
production environment?
Nope
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The difference between adding a path and not is that without a path the
bundled mysql client library will be used, whereas if you add a path then
your system's mysql client libs will be used. It is usually a good idea
to use the system libaries if you have them because they are more likely
to
No such logs are kept on our end.
On Thu, 11 Jul 2002, Jason Soza wrote:
Well, my attempts at getting discipline for Erik Hegreberg will have to
go unfinished for now. I guess a list admin would have to retrieve the
original headers from Erik's original posts -before- they hit the
mailing
He's been blocked at the server level. He won't be able to post to any
php mailing lists.
On Thu, 11 Jul 2002, Scott Fletcher wrote:
Well, you better pray that he won't return!!
theme music playing from terminator
I'll Be Back!!
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL
Only using the commercial PDI library from pdflib.com
On Thu, 11 Jul 2002, Tobias Talltorp wrote:
Is it possible to produce a PDF, use it as a template and populate
predefined sections of it from a database?
The PDFs I want to create are a little too complex for me to produce from
scratch.
PHP 4.2.1 does not support Apache 2.0.39. You'll need to download a more
recent snapshot, and you will actually also need Apache 2.0.40-dev to get
it to work.
As you can tell, this stuff is very much in flux and is nowhere near
production-quality.
-Rasmus
On Fri, 12 Jul 2002, Peter wrote:
We use qmail/ezmlm to run this list. High-traffic lists like this require
software written specifically to solve this problem. You would not write
such a mailing list system in PHP. It would make no sense. The parts you
might write in PHP would be web interfaces to allow your user to
php.net/pdf
On Wed, 10 Jul 2002, Jeff D. Hamann wrote:
I've got a project that requires lots of goofy reports. These reports are
more than a simple html table (which would be nice) that the client wants to
print out on standard 8.5x11 paper. Crystal Reports type of reports. I need
to be
Right off the bat, any good development tool will have code completion
abilities, which are basically the programmers version of nix consoles tab
completion. This little feature alone helps save time by reducing the
amount of typing required, not to mention can virtually eliminate type-o's
Works fine here. Are you actually in EDT?
On Wed, 10 Jul 2002, Brian V Bonini wrote:
Any idea why this is off by 4 hours?
Server time zone is set correctly,
%date
Wed Jul 10 14:26:18 EDT 2002
but the script below returns the time as being 4 hours later then that.
?
$date =
register_globals on or off?
On Tue, 9 Jul 2002, Preston Wade wrote:
Hello All,
I am trying to use the isset function to test if the page has been
submitted, but it seems as though it is not working. I am wondering is
there a configuration option that is messing with the functionality of
Yup
On Wed, 10 Jul 2002, vins wrote:
that seem always to be the prob with any php coding now days
globals on or off
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
register_globals on or off?
On Tue, 9 Jul 2002, Preston Wa
No, they are written in C. And yes, you can of course download the C
source code from php.net.
-Rasmus
On Tue, 9 Jul 2002, Leif K-Brooks wrote:
If I understand correctly, all php functions are written in php. If
this is true, is it possible to view function source code? Thanks for
any
Try localhost:143/notls there
On Wed, 10 Jul 2002, [gb2312] ÚÈ Ñ« wrote:
Hi all,
I got a problem when I use php's imap functions in rh7.3 system.
In the php script file imaptest.php I wrote such code:
$user=usernamexxx;
$password=passxxx;
$mbox = imap_open ({localhost:143}, $user,
Well, you can set it at runtime, it just won't do what you might expect.
That doesn't mean that it may not be useful to be able to set it at
runtime. If, for example, you have register_globals off and you write an
auto-prepend script, or even just a normal snippet of code that you insert
into
On Mon, 8 Jul 2002, Rasmus Lerdorf wrote:
Well, you can set it at runtime, it just won't do what you might expect.
That doesn't mean that it may not be useful to be able to set it at
runtime. If, for example, you have register_globals off and you write an
auto-prepend script, or even
Job postings are fine on this list. Some people will invariably gripe,
but overall people like to see that there are jobs out there involving
PHP. And it they don't, well tough. None of the people who help run this
list, including myself have any problems with them.
-Rasmus
On Sun, 7 Jul
You need to use ImageCopyResampled() instead. And don't forget to turn on
alpha blending beforehand using ImageAlphaBlending($im,true);
-Rasmus
On Sat, 6 Jul 2002, [ISO-8859-1] Victor Spång Arthursson wrote:
Hi!
I'm trying to copy a transparent (copyright) image over an existing
using GD,
So putting the line:
register_globals = on
In your php.ini file (path to it specified in your phpinfo() output)
didn't work?
Check the following:
1. Are you sure there isn't a second register_globals = off entry
somewhere in that file?
2. Does the web server have read access to the
And the php.ini file you are changing is the one listed in your phpinfo()
output? Looks to me like your php.ini file is in the wrong place.
On Fri, 5 Jul 2002, Scott Fletcher wrote:
I tried following all of your suggestion and so far, still the same. I
tried changing other feature in the
.
Unless a user clears the cookie himself, you basically limit votes to one
per computer or one per computer per user.
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL
I don't see how. But if what you are saying is actually happening, then
it is a Linux kernel-level bug if memory is leaking from one process to
another. No matter how badly we screwed up in PHP, the kernel prevents
such a screwup from infecting a separate process.
I'd suggest having a close
There is no imagejpeg() call in the code snippet you provided. And you
don't say how it is failing. You haven't provided us with enough data to
answer this question.
-Rasmus
On Sat, 29 Jun 2002, andy wrote:
Hi there,
I would like to save a jpg into a blob field of mysql. The function
You can only get it if the proxy provides you with this data. Most don't,
so this is not a reliable approach.
-Rasmus
On Sat, 29 Jun 2002, JJ Harrison wrote:
I want to check to see if people have voted yet for a poll.
How can I get the ip of a user from both behind a proxy and the proxies
and non-spoofable, easily verifiable id number,
what you are trying to do is impossible.
Basically live with the fact that your voting system will be inaccurate
and spoofable.
-Rasmus
On Sun, 30 Jun 2002, JJ Harrison wrote:
what esle could i use?
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
See your php.ini file:
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
On Thu, 27 Jun 2002, Jefferson Cowart wrote:
I'm writing a web application in which I would like the session to
http://www.php.net/manual/en/language.variables.variable.php
On Wed, 26 Jun 2002, Lee P Reilly wrote:
Thanks for the replies. I'm still having a litte trouble though...
Say I have an array called $compX, and given the letter 'X'... how can I
access the variable $compX using these methods?
That is the technical difference. Both will make HTTP requests and issue a
GET request to fetch the image file. One opens a connection to localhost
(normally the loopback at 127.0.0.1) and the other opens a connection to
www.domain.com (at whatever ip that resolves to)
-Rasmus
On Wed, 26 Jun
People can post to this group from nntp://news.php.net
On Wed, 26 Jun 2002, Rick Emery wrote:
Somewhat related to this discussion.
There are some posters to this email list that appear as Newsgoup entries in my
OutLook Express. Most posters, however, are identified as mail, not news
We are using the PCRE library for this. I don't think there are any plans
to drop the Perl5 syntax.
On Wed, 26 Jun 2002, Peter Thoenen wrote:
Anybody know if PHP 4.x (5.x?) will be sticking with
Perl5 RegEx syntax for preg's or will it be changing
to the new Perl6 RegEx syntax (which I
// this won't work b/c of quoting issues
echo This script is called $_SERVER[PHP_SELF];
// this should work fine IIRC
echo This script is called $_SERVER['PHP_SELF'];
Nope, use:
echo This script is called $_SERVER[PHP_SELF];
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To
Not inside a quoted string.
On Mon, 24 Jun 2002, Johnson, Kirk wrote:
I thought this syntax, an unquoted key name, was deprecated ;)
From the manual at http://www.php.net/manual/en/language.types.array.php:
You should always use quotes around an associative array index.
Kirk
Nope,
You mean like php.net/version_compare ?
On Mon, 24 Jun 2002, Dreamriver.com wrote:
Hello All,
I also have the challenge of distributing php code to unknown php versions. There is
a wide discrepancy in the functionality of even various PHP 4.x code. Since at the
time of coding I don't know
http://php.net/operators
which would take you to:
http://www.php.net/manual/en/language.operators.comparison.php
and
http://www.php.net/manual/en/language.operators.errorcontrol.php
It's all there.
-Rasmus
On Sun, 23 Jun 2002, Phil Schwarzmann wrote:
What exactly happens when you put three
Use the date() function.
On Sat, 22 Jun 2002, Phil Schwarzmann wrote:
I want to produce the current date time in a MySQL datetime format
that I can then put into a MySQL database.
How do I do this? I've tried mktime() and getdate() but it's not
working.
Thanks!!
--
PHP General
I bet you are double-escaping it. Try without the AddSlashes() call. By
default PHP will escape this for you automatically.
-Rasmus
On Thu, 20 Jun 2002, David McInnis wrote:
After posting this on the MySQL list and getting some feedback we were
able to determine that this was not a flaw
As a rule you never put include in a configuration directive. Use
--with-mm=/usr
PHP expects to find both the library and the header files under the
specified dir.
-Rasmus
On Fri, 21 Jun 2002, Ray Hunter wrote:
Find out where you bsd has all the mm header files and add that to your php
Without the actual error message, there is nothing we can do.
On Fri, 21 Jun 2002, Patrick Aland wrote:
Hey all,
I just upgraded to 4.2.1 on apache 1.3.26 and now apache won't start.
If I comment out the LoadModule in the httpd.conf apache starts fine,
otherwise it just starts and exits
-0700, Rasmus Lerdorf wrote:
Without the actual error message, there is nothing we can do.
On Fri, 21 Jun 2002, Patrick Aland wrote:
Hey all,
I just upgraded to 4.2.1 on apache 1.3.26 and now apache won't start.
If I comment out the LoadModule in the httpd.conf apache starts fine
Line 706 of php4/main/SAPI.c implements this. Go ahead and submit a patch
and we will consider it.
-Rasmus
On Thu, 20 Jun 2002, Peter Thoenen wrote:
PHP Manual says there are two special cases for
headers, Location and Status. Not to concerned about
status here, but it states that
Are you using a broken editor of some sort? All I can think of here is
that your spaces aren't really spaces. Try an od -c on that file from
your prompt.
-Rasmus
On Wed, 19 Jun 2002, Joshua Alexander wrote:
I just installed the php 4.2.1 from entropy.ch and when running this script:
?php
Well, 312 is not a space. Please use a text editor that knows what a
space is. The other lines look fine, but your $test312=312 stuff
there is bogus.
-Rasmus
On Wed, 19 Jun 2002, Joshua Alexander wrote:
Thanks, I didn't know about od
000 ? p h p \n \n $ t e s t
You need to enable the mysql extension in your php.ini file:
extension=mysql.so
and then restart your server.
-Rasmus
On Tue, 18 Jun 2002, Anthony 'Crash' Ciarochi wrote:
I am having trouble connecting to my MySQL database: The error message I receive
in my browser is:
Fatal error: Call
.).
- AFC
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Anthony 'Crash' Ciarochi [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 10:01 AM
Subject: Re: [PHP] cannot find mysql_connect; _pconnect
You need to enable the mysql extension in your php.ini
Simply install the appropriate rpms. apache, php, php-mysql, etc.
They are all on your cd.
-Rasmus
On Tue, 18 Jun 2002, Phil Schwarzmann wrote:
I have a nice formatted PC Linux Redhat 7.2 that I got at a local
retail store for $60.
All I want this PC to do is be a PHP/MySQL server and
That's one of the main reasons you would want to use the mail() function.
I wouldn't advise a fork() here, but if you really insist, see the pcntl
extension - http://php.net/pcntl
-Rasmus
On Wed, 12 Jun 2002, Nathan Cassano wrote:
Hi PHP folks,
I have a program that sends out email by
There are times where a GOTO is really the most efficient way to get out
of a deeply nested set of loops or switches where the overhead of adding
the additional checks at each level would be painful. There are 1125 gotos
in the PHP C code. But, PHP has multi-level breaks to get around this
Sounds like a weird thing to want to do, but this will do it:
preg_replace('/(\w)\1$/','2',$str)
-Rasmus
On Wed, 12 Jun 2002, Zac Hillier wrote:
Does anyone know how I can use preg or any other function to identify a
double letter on the end of a string and then replace it.
So 'foo'
If you had searched the list archives yourself you would have seen that
this has been suggested a few times and rejected each time because nobody
would stick around and answer the newbie questions and newbies, being
newbies, would figure out where the people who can answer their questions
hang
PHP has a built-in mechanism for logging high-watermark memory usage by
scripts. Make sure you compile PHP using --enable-memory-limit then you
can modify your Apache LogFormat and stick %{mod_php_memory_usage}n in
there somewhere which will be replaced with the peak memory usage for that
script
Did you check the manual?
http://php.net/hexdec
On Sat, 1 Jun 2002, Michael Davey wrote:
Does anyone know of a function within PHP that will convert a hexadecimal
string (without the leading 0x) into an integer?
regards,
Mikey
--
PHP General Mailing List (http://www.php.net/)
To
ip2long and long2ip and a bit of bitwise logic is really all you need.
-Rasmus
On Fri, 31 May 2002, Chris Knipe wrote:
Hi all,
anyone know of any good pre-written classes or functions to work with IP
address space?
I'm looking for things which can verify correct notation of IP addresses
601 - 700 of 1546 matches
Mail list logo