On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it
On Sat, Mar 18, 2006 at 11:01:07AM +0100, smr78 wrote:
Hi,
What is the best method to update a single line in a text file?
I have a file made of identifiers, that is pointed on by a htaccess file and
used by a server to give access to a web site.
The file content is like this :
On Sun, Mar 19, 2006 at 05:12:06AM +, [EMAIL PROTECTED] wrote:
Ok...
it has to be a way to do such a thing.
I do i get the column names?
I can get the number of columns using mysql_num_fields() right?
but what if i want to get the columns name? Wich functtion and how should i
use?
On Sun, Mar 19, 2006 at 06:41:54PM +, Richard Davey wrote:
On 19 Mar 2006, at 18:32, Leonard Burton wrote:
I am putting together an site and will accept payments via Paypal's
IPN. I have came across many classes for this so I am curious if
anyone has any recommendations?
Isn't there
On Mon, Mar 20, 2006 at 11:26:34AM -0500, Manuel Amador (Rudd-O) wrote:
Curt Zirzow wrote:
Isn't there a full proper PayPal API now? IPN hasn't changed in ages,
...
Yeah, they have their new Payment Pro system which has a gateway
API. I dont think they have any preference over
On Mon, Mar 20, 2006 at 10:13:21AM -0500, Bruce wrote:
I am having trouble porting some code originally written in Borland Delphi
to PHP. The Delphi code expects certain behavior on integer overflows that I
can only duplicate on some PHP systems. For example:
$BB = -2181087916;
$AA =
On Thu, Mar 30, 2006 at 08:46:46AM +0800, Tom Wong (Yakang Accessories) wrote:
Dear All:
Looks good so far.
-
On Wed, Mar 29, 2006 at 05:32:25PM -0600, Chris Boget wrote:
I totally blew past that part with the sybase because we aren't using
sybase. I guess I should have paid more attention. I'm curious why that
directive affects general PHP code and not just the sybase functions.
This is why
On Wed, Mar 29, 2006 at 02:52:39PM -0500, Rahul S. Johari wrote:
Ave,
I�ve run into a slight problem. We maintain a Guestbook for our company�s
website. Lately we have been getting a lot of �Spam� entries into the
Guestbook.
Is this a common guestbook, like a 3rd party tool you got and
On Wed, Mar 29, 2006 at 05:16:54PM +0200, [EMAIL PROTECTED] wrote:
-- Opprinnelig melding ---
Emne: Download problems
Fra: [EMAIL PROTECTED]
Dato: ons 29. mars 2006 9:53
Til: php-general-digest@lists.php.net
On Thu, Mar 30, 2006 at 09:20:28AM +0200, Barry wrote:
Tom Wong (Yakang Accessories) wrote:
Dear All:
-
On Sun, Apr 02, 2006 at 10:34:48PM -0700, [EMAIL PROTECTED] wrote:
The same as before:
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 03 Apr 2006 00:35:34 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
On Mon, Apr 10, 2006 at 03:43:55PM -0500, Richard Lynch wrote:
In order to attempt to figure out why my script segfaults PHP (5.0.4,
5.1.2, 5.1.3RC3) I've been compiling --with-debug
That then gives me warnings such as:
Run-time warning. String is not zero-terminated () (source:
On Wed, May 24, 2006 at 02:28:33PM -0600, Phillip S. Baker wrote:
Greetings All,
I have a problem that I usually solve in MySQL pretty easily, but using
PEAR identifiers are not working.
Any suggestions.
I want to loop through a result set in two different while loops that
are not
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones that allow significant quantities of data to be
sent by the client. Ideally,
On Tue, May 23, 2006 at 03:51:51PM -0400, Adam Zey wrote:
PHP seems to cache POST data, and waits for the entire POST to finish
sending before it makes it available to php://input.
I'd like to be able to read the post data from php://input while the
client is still uploading it. How can I
On Wed, May 24, 2006 at 05:44:56PM -0400, Adam Zey wrote:
Curt Zirzow wrote:
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones
On Tue, 01 Nov 2005 14:31:12 -0800, Manish Marathe wrote:
...
My question is to use the Reflection API, I need to import the original
class for which I am generating tests. For example to generate a tests for
class Company which is in Company.php:
include_once('company.php');
$c = new
On Mon, 31 Oct 2005 21:31:51 -0500, John Taylor-Johnston wrote:
New server, new config. PHP 4.3.9 and new mysql db.
...
http://testesp.flsh.usherbrooke.ca/testdb.phps
http://testesp.flsh.usherbrooke.ca/phpinfo.php
I cannot even see the aa\naa?php ...
All I get is htmlbody/body/html
On Tue, 01 Nov 2005 14:06:04 -0500, Robert Prentice wrote:
I am attempting to connect to a remote server using fsockopen to post data
to a php file. Here is the error i get:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name
or service not known (is your IPV6
On Tue, 01 Nov 2005 17:54:26 +0200, Rasim ÞEN wrote:
Hi,
This function was working until this morning, but now I couldn't send any
email to hotmail. What is the problem, any idea?
Honestly, i would trust this function even if it proposed to mary me; see
below.
function
On Tue, 01 Nov 2005 19:10:31 +0100, Max Belushkin wrote:
Hi everyone,
I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0,
FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a
buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer
is
On Wed, 02 Nov 2005 21:19:24 +0100, Jochem Maas wrote:
I totally agree with Richard. about the need for a php func for checking a
correct email addr.
given that php 'is all about the web', idealogically (still?) pragmatic
and dynamically typed:
is_email_addr() or is_email()
There
On Wed, 02 Nov 2005 10:29:25 -0800, Manish Marathe wrote:
...
My current problem is this: Below is some chunk of the scrip I am writing
to generate test code.
include_once Company.php;
class TestGenerator {
public function TestGenerator() {
}
public function catchReflection() {
On Wed, 02 Nov 2005 10:38:15 +0100, max wrote:
In this case are you sure that the file is being sent via proc_open()?
can you provide a simplified script that does this?
Sure, here's a test script, the output from it, and a few words on the
email I receive:
?php
$descriptorspec = array(
On Wed, 02 Nov 2005 15:20:46 -0500, John Nichel wrote:
There has to be a way to do thisreset the internal STDIN pointer to
the begining but I'll be damned if I can find it.
reset ( STDIN );
returns an error.
The internal STDIN pointer? there is no such thing by the name of STDIN in
On Thu, 03 Nov 2005 13:42:34 +1000, Ligaya Turmelle wrote:
There already is:
http://php.net/imap_rfc822_parse_adrlist
quote from user contributed notes:
| This function does NOT test the syntax of either the local part, or the
host part, it will permit illegal characters on either
On Wed, 02 Nov 2005 23:22:24 -0600, Greg Donald wrote:
On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote:
The internal STDIN pointer? there is no such thing by the name of STDIN
in php.
Sure there is, php://stdin.
http://php.net/manual/en/wrappers.php.php
My point in context was since
On Thu, 03 Nov 2005 19:51:05 +1300, Jasper Bryant-Greene wrote:
On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote:
On Wed, 02 Nov 2005 15:20:46 -0500, John Nichel wrote:
There has to be a way to do thisreset the internal STDIN pointer
to the begining but I'll be damned if I can
On Thu, 03 Nov 2005 13:14:48 -0800, Philip Hallstrom wrote:
...
Anyway, on FreeBSD 5.4 running CLI PHP 5.0.5 with your previously sent
script I get output of:
10240
10240
anyway, thought that might be helpful...
...
The output is:
10240
6144
which makes up exactly the
On Fri, 04 Nov 2005 14:09:06 -0500, conditional motion wrote:
Here is what the field content from the database would look like. I have
removed any sensitive data.
str = Name;Grill Transom (GT302)^% -
Sort;Find/Replace^% - Calc;2568.09x^% -
On Fri, 04 Nov 2005 09:59:16 -0500, Leonard Burton wrote:
Greetings,
What do I need to do to extract foo.bar from path/to/file.php/foo.bar
$_SERVER['REQUEST_URI'] will return the whole string but is there anything
more direct than doing a regex and 'REQUEST_URI'?
See:
On Thu, 03 Nov 2005 21:17:39 -0500, John Taylor-Johnston wrote:
Ok, you are all used to working with register_gloabsl=off.
mail($to, stripslashes($subject), wordwrap($message, 60), From:
$from\r\n);
I change this line to:
mail($to, stripslashes($_POST[subject]),
On Fri, 04 Nov 2005 22:09:01 -0500, GamblerZG wrote:
AFAIK, there are no official forums for PHP. Considering the fact that
PHP is a web development tool, such distaste for message boards is ironic
at the least. So why exactly there aren't any forums on php.net?
I wonder why you use the term
* Paul Williams [EMAIL PROTECTED] [2005-11-07 12:31:17 -0500]:
I'm trying to write the following code into my program but each time it
runs, I get an error message. Can anyone help?
print EOF
!-INSERT HTML HEADER HERE --
$_SERVER['PHP_SELF']
EOF;
You might want to
* -k. wrote:
...
pg_exec(): Query failed: ERROR: invalid regular expression: invalid escape \
sequence .
It seems to happen when using just a \ or text ending with a \ but not if
a \ is in the
middle of a string of text.
I would guess you have magic_quote_gpc on, you can check this:
On Mon, Nov 07, 2005 at 09:40:23PM -0500, Unknown Unknown wrote:
you only need 3
Indeed, as well as Pablo's guess of escaping an array within a
heredoc, and i would guess as well that that space between his '
EOF' is invalid as well.
Btw, you do realize your name is 'Unknown Unknown'?
Curt
On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
Dan Trainor wrote:
Good afternoon, all -
I've had problems with auto_prepend_file off and on for as long as I can
remember. It's hit or miss, and browsing the archives, it looks like
I'm not alone. I've even written to the
On Tue, Nov 08, 2005 at 06:32:00PM -0500, Paul Williams wrote:
Nope sorry. It says this error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web
Server\htdocs\document1.php on line 6
Acutally he
On Tue, Nov 08, 2005 at 07:32:06PM -0600, Richard Lynch wrote:
On Fri, November 4, 2005 10:22 pm, John Nichel wrote:
Larry E. Ullman wrote:
snip
All that being said, I think everyone should send me $5. I've
monitored
this list long enough to predict the most probable replies...
Bah,
On Tue, Nov 08, 2005 at 10:55:57PM -0500, Chris Shiflett wrote:
Curt Zirzow wrote:
Here are some counts (per email address):
Is this thing back? :-)
It would be cool to see a top 10 or something.
Almost. I ended up re-doing all the code, it took like 4 days just
to fetch all the posts
On Tue, Nov 08, 2005 at 10:00:27PM -0600, Richard Lynch wrote:
On Tue, November 8, 2005 9:47 pm, Curt Zirzow wrote:
Richard Lynch:
http://news.zirzow.dyndns.org/news.php/php.general/user/dbe152a0d3b3e8284b39cab6b1fdde7d/
Add in richard-AT-zend.com and rlynch-AT-ignitionstate.com
On Tue, Nov 08, 2005 at 11:32:33PM -0500, Ben Ramsey wrote:
On 11/8/05 10:27 PM, Tony Di Croce wrote:
The sites are both physically located on the same machine.
What if I encrypt the session_id, and put it in a hidden text input
box in a form, that is delivered via POST to the other site.
On Tue, Nov 08, 2005 at 12:00:06AM -0500, John Taylor-Johnston wrote:
Hi,
$pieces = explode(,, $_POST[fieldtype1]);
What is a way to echo each pieces[x] separately so I can echo them like
this:
while(x=0 to xMax)
{
$sql .= `.$pieces[x].` \r\n;
}
Well, explode() returns an array so
On Wed, Nov 09, 2005 at 04:27:08PM -0500, Unknown Unknown wrote:
I was working with objects, and suddenly i got this error:
*Parse error*: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in *
D:\Apache\Apache(re)\Apache2\htdocs\Include.php* on line *11*
is this like a bug in PHP or is it a
On Wed, Nov 09, 2005 at 11:21:36PM -, Ross wrote:
What is the correct syntax for
$query = SELECT * FROM login where username='$_POST['username']' AND pass
='$_POST['pass']';
?php
if (get_magic_quotes_gpc()) {
$_POST['username'] = stripslashes($_POST['username']);
$_POST['pass']
On Wed, Nov 09, 2005 at 08:23:04PM -0800, kumar kumar wrote:
Hi
i am new to PHP .I am facing some problems .
Here is the code below
Here the applet will send the files thru http . files
from 30 bytes to 2 GB.
?php
$getdata = fopen(php://input, r);
...
while (strlen($data
On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote:
Hi there, ive been having issues with mod_rewrite and apache2 with PHP
5.1RC1. I have googled the php bugs and people have been experiencing
the same issue however the php people cant see to reproduce the bug.
Its most definately
On Thu, Nov 10, 2005 at 05:21:51PM -0500, Ben Ramsey wrote:
On 11/10/05 4:48 PM, Richard Lynch wrote:
Here's an idea... Quite possibly half-baked.
Suppose PHP had a superglobal $_CLEAN which was an empty array.
Further suppose it was documented in the manual as *the* place to put
your
On Thu, Nov 10, 2005 at 06:10:50PM +1100, Dan Rossi wrote:
On 10/11/2005, at 4:18 PM, Curt Zirzow wrote:
On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote:
Hi there, ive been having issues with mod_rewrite and apache2 with PHP
5.1RC1. I have googled the php bugs and people have
On Fri, Nov 11, 2005 at 01:27:32PM +1100, Dan Rossi wrote:
On 11/11/2005, at 1:21 PM, Curt Zirzow wrote:
Of course i dont get what your trying to do, the rewriterule
doesn't match your description of what you said.
Ok i am vague at most times, i wasnt going to give an exact example
On Fri, Nov 11, 2005 at 01:09:39PM +1300, Jasper Bryant-Greene wrote:
[EMAIL PROTECTED] wrote:
Is there a way when making a MySQL database entry through a PHP script and
there is no data to make the db treat it as NULL?
Wouldn't this just work:
INSERT INTO myTable (myField) VALUES (NULL)
On Thu, Nov 10, 2005 at 11:35:06PM -0600, matt VanDeWalle wrote:
hello,
I was wondering, is there a way to get a connection's name(host's name
instead of just ip),
i am using the cli version of php and am now using the function
getpeername() but for example, i would like to be able to
On Mon, Nov 14, 2005 at 10:06:17AM -0800, russbucket wrote:
Trying to get apache2, php5 and mysql running. get the following error when
opening phpMyAdmin. Can someone explain what it means. There is an include
path in php.ini.
I think you forgot to include the error message.
curt.
--
--
On Mon, Nov 14, 2005 at 10:41:53AM -0800, Brian Dunning wrote:
Does anyone know if there's a handy way to create a numeric hash from
a text string? I'm trying to generate an integer as a sort of quick
dirty checksum for text strings. Needs to be a decimal integer, not
hex or otherwise.
On Mon, Nov 14, 2005 at 02:08:08PM -0600, Richard Lynch wrote:
On Mon, November 14, 2005 12:41 pm, Brian Dunning wrote:
Does anyone know if there's a handy way to create a numeric hash from
a text string? I'm trying to generate an integer as a sort of quick
dirty checksum for text strings.
On Tue, Nov 15, 2005 at 05:39:36PM +, Richard Davey wrote:
Hi Jim,
Tuesday, November 15, 2005, 5:25:58 PM, you wrote:
I don't know, but those who do should not use short tags. And those
who hope to should not get into the habit of using short tags.
And for the vast majority
On Tue, Nov 15, 2005 at 02:50:53PM -0500, Brad Glonka wrote:
I think I may be headed down the wring direction.
Yeah, the Virtual Directory Support isn't really what its name
seems to be, it basically is enabled when php is compiled with
Zend Thread Saftey which only effects how certain things
On Tue, Nov 15, 2005 at 10:48:56PM +, Thiago Silva wrote:
...
So, __autload has to *try* include_once's. Something like that:
function __autoload($className) {
include_once(${className}.php);
if(class_exists($className, false)) return;
include_once(${className}.class.php);
On Tue, Nov 15, 2005 at 09:33:42PM -0500, wayne wrote:
I tried to unsubscribe on several occasion without
success. I followed the instruction at the bottom
of the email. Can someone take me off the list.
Thank You.
you can always send an email to:
[EMAIL PROTECTED]
Curt.
--
--
PHP
On Tue, Nov 15, 2005 at 04:39:05PM -0300, Mariano Guadagnini wrote:
Hi, i�m writting a php program that parses and saves some xml files on a
server. The problem is that i want to catch warnings so as to be able to
store them in a variable, but not to be put directly on client�s
browser. I
On Tue, Nov 15, 2005 at 03:47:21PM -0500, Leonard Burton wrote:
Does anyone know of a regex to work for Amateur Radio Callsigns that
will work with any from across the world?
What does a amateur radio callsign look like? And in what context
are you trying to parse this callsign?
Curt.
--
On Wed, Nov 16, 2005 at 03:33:22AM +0530, Yaswanth Narvaneni wrote:
Hi!
I have a server written in C++ and my webpages are in PHP. The PHP has
to communicate with the server using shared memory. This was working
fine on the server running FC-1 with php-4.3.8. We recently migrated
to CentOS
On Tue, Nov 15, 2005 at 06:05:20PM -, Ross wrote:
When I test locally I get a weird error..
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
any ideas?
Not really, how did you set php up locally?
On Tue, Nov 15, 2005 at 11:16:15AM -0500, Leonard Burton wrote:
Hi All,
I know that it is pretty darn impossible to come up with a regular
expression for validating emails.
How do you all validated emails on form submission?
Is it good just to do something like /[EMAIL PROTECTED]/ ?
On Wed, Nov 16, 2005 at 01:27:12AM +0200, Robin Vickery wrote:
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote:
On Tue, 15 Nov 2005, Jim Moseby wrote:
for file in *.php; do
cp $file $file.tmp
sed -e s/?$/?php/g $file.tmp $file
rm $file.tmp
done
...
for file in *.php; do
On Tue, Nov 15, 2005 at 10:39:19PM -0500, Leonard Burton wrote:
HI Curt,
Thanks for the reply,
What does a amateur radio callsign look like? And in what context
are you trying to parse this callsign?
Basically here is the regex I used (I am not the best with regexes):
$pattern =
On Wed, Nov 16, 2005 at 05:19:52PM +1300, Jasper Bryant-Greene wrote:
John Taylor-Johnston wrote:
My question is simnple. I want to randomly select a row in a mysql
table. I have a primary id.
?php
$server = localhost;
$user = foo;
$pass = foo;
$db=foo_db;
$table=foo_table;
On Mon, Nov 14, 2005 at 06:01:21PM -0400, Miles Thompson wrote:
Can someone get rid of him?
Every time I post, which I admit is not often, I get a bounce.
I put in a request to remove that email from the list, hopefully it
will get remove shortly.. i had to look in my gmail spam to find
that
On Tue, Nov 15, 2005 at 09:28:22PM -0800, kumar kumar wrote:
HI
How to uncompress compressed data with php://input
Which one of the following is correct
1 .$unzip = gzinflate(php://input,r);
$getdata = fopen($unzip.r);
2. gzcompress(php://input,r);
$getdata =
On Wed, Nov 16, 2005 at 12:25:22AM -0500, Leonard Burton wrote:
HI Curt,
W1W
W1AW
WA1W
AD4HZ
N9URK
WB6NOA
4N1UBG
Ok, so i can conclude so far we have alpha numeric chars minimum of
3 chars up to 6, this would make a regex:
/[A-Z0-9]{3,6}/
The only problem with this
On Wed, Nov 16, 2005 at 10:12:53AM -0600, [EMAIL PROTECTED] wrote:
Hi to all,
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of caurse :))
Solution 2a:
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
Server #1 (working)
http://www.limiteds.com/includes/image_load.php?image_id=8522field_id=image_full_2
Headers for this one:
Content-Transfer-Encoding: binary
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
P3P:
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
I have checked both phpinfo() and php -i via the cli as follows and both
produce the expected results. Also phpinfo() shows the exact same
Configure Command data for both servers.
Server #1
[EMAIL PROTECTED]
On Tue, Nov 15, 2005 at 09:20:54PM +0100, Age Bosma wrote:
Hi,
I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error
Command failed for target 'ext/xml/xml.lo' during the make process.
[snip]
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582:
`XML_Char'
On Wed, Nov 16, 2005 at 07:29:18PM +0200, Yonatan Ben-Nes wrote:
Hi all,
After searching for a framework which work with PostgreSQL PHP I've
found Framewerk (http://svn.framewerk.org/) which seem to fit my needs,
the only problem that I've found is that it use the PDO functions.
Now
On Tue, Nov 15, 2005 at 09:49:10PM -0700, The Doctor wrote:
IS their a way to set the time to localtime instead of GMT in
the ini file?
No.
Some users are complaining that they are seeing GMT, which this server
is set to.
What timezone are the users expecting the time to be displayed in?
On Wed, Nov 16, 2005 at 07:39:28AM -, George Pitcher wrote:
I grabbed the following from a web-published article (sorry, can't remember
where):
There a few things wrong with it as well.
function validate_email($email) {
if(preg_match(/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@(
On Thu, Nov 17, 2005 at 02:37:49PM -0500, blackwater dev wrote:
How can I check to see if a string var holds a number? Is regex the
only way to do this? For example I have code where the var could hold
10 or ten. If the string is a number, do one thing, if it isn't
do something else. is_int
On Thu, Nov 17, 2005 at 04:00:21PM -0600, Nate Nielsen wrote:
I'm having an issue with cURL. I have installed it on two different boxes,
one is working properly, and another isn't.
The script auto login's a user to a site. One server it works as expected
and logs the user in, the other
On Thu, Nov 17, 2005 at 07:10:06PM -0500, Chris Drozdowski wrote:
Hello,
When using the mail() function to send a simple mail message, which
specific parameters of the function need to cleaned to prevent mail
injection?
This is a good topic. I'm in the process of writing an article on
On Fri, Nov 18, 2005 at 05:06:36PM -0800, Ligaya Turmelle wrote:
$message - yes
---
This usually can go without any special escaping, unless you have
certain headers (the Boundary: header) or allow an injection into
the $additional_headers field. If this is the case a malicious
On Wed, Nov 16, 2005 at 04:32:29PM +0100, Jochem Maas wrote:
I have started making use of the APC extension to cache opcodes, etc
now I'm also trying to cache the output of some sql queries and I want to
use a hash of the query as key to store/fetch the value e.g:
apc_fetch(md5($qry))
If
On Fri, Nov 18, 2005 at 06:08:16PM -0600, Nate Nielsen wrote:
Okay, I've added the verbose output to copare exactly what is happening
between the two versions - thanks to Curt, the verbose info shows there IS
something different happening.
To recap, the code is exactly the same, the php
On Fri, Nov 18, 2005 at 09:34:56AM -0500, Leonard Burton wrote:
HI All,
Does anyone on here use the MySQL C API? Would you mind if I asked
you a few questions off the list?
You might want to ask someone on a related mysql list.
Curt.
--
--
PHP General Mailing List (http://www.php.net/)
On Sat, Nov 19, 2005 at 07:05:37AM +0100, Erik Franzn wrote:
...
Using the following DTD as an external file:
!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbEntry E_iEntryId ID #REQUIRED
The result is the following:
?xml version=1.0 encoding=iso-8859-1?
On Sun, Nov 20, 2005 at 03:38:56PM +0100, ukasz Hejnak wrote:
Brian V Bonini napisa�(a):
You are saying:
From the CLI you can write to a file all day long, no prob.
Yes, the shell command php test.php works fine when executed as root
(any other user has the same problem as from the web)
From
On Sun, Nov 20, 2005 at 09:26:15AM -0700, Suhas wrote:
This is not a disk usage as it works when script is run from terminal as su\
root can break the 100% barrier, it usually can get around 110%.
[EMAIL PROTECTED]:/tmp df -h /tmp
Filesystem SizeUsed Avail Capacity Mounted on
On Sun, Nov 20, 2005 at 05:14:08PM +0100, Andy Pieters wrote:
Hi all
I wanted to make a simple script to make a resized image from an uploaded one.
I used the example found on the php.net website
...
{imagecopyresized($thumb,$main,0,0,0,0,$newwidth,$newheight,$width,
$height);
On Sun, Nov 20, 2005 at 04:12:05PM +1300, Jasper Bryant-Greene wrote:
xkorakidis wrote:
Webmaster, thanks very much but I think it would be safer to do that by
post, not by get. Furthermore, if I use indivudual files
The difference between POST and GET lies in the semantics -- POST
On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote:
I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still
get the same error when i try to use phpmyadmin Can not load mysql
extensions. I checked the path it is correct, the extensions exist
in /etc/php5/extensions but
On Mon, Nov 21, 2005 at 09:41:40PM -0700, Ashley M. Kirchner wrote:
Trying to compile APXS version of PHP5.05 and towards the end, when
it tries to compile the CLI version, it bombs with the following:
ext/ftp/ftp.lo(.text+0x76): In function `data_close':
On Tue, Nov 22, 2005 at 07:41:10PM +0100, Eric wrote:
I would like to have some assistance in debugging php. It's about a bug in
php not a script of mine.
First off there is a big difference between 5.0.x and 5.1.x as well
as 5.0.1 and 5.0.5, what version are we talking about?
I can't post
On Wed, Nov 23, 2005 at 06:48:25AM +0100, twistednetadmin wrote:
This did the trick:
elseif ($_FILES['guildimage']['type'] == image/pjpeg or image/jpeg)
Not for reasons you think. The (or image/jpeg) is going to
evaulate as TRUE, so your expression will always be true. For
example:
On Wed, Nov 23, 2005 at 01:13:22AM -0500, Matt Monaco wrote:
On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an
instance of a mysqli extension.
class Data extends mysqli {
$link = new Data(localhost, user, password, db);
This invokes the error Trying to
On Wed, Nov 23, 2005 at 06:48:50PM -0500, Matt Monaco wrote:
Thanks for your attention Curt, but unfortunatly that is not the issue.
Compatibility mode is not on.
What does this say just before you do $link = new ...:
var_dump(ini_get('zend.ze1_compatibility_mode'));
If it says string(1) 0,
On Wed, Nov 23, 2005 at 04:53:50PM -0800, bruce wrote:
hi...
this might not be a php question but might still provide interest...
I'm working on a project, and need to know if there's anyone who's a guru
with Web Server/Client interactions. Basically, I'm trying to get a much
On Wed, Nov 23, 2005 at 11:43:56PM -0500, Matt Monaco wrote:
I get string(1) , should that be taken just the same as 0? In addition
phpinfo() indicates php 5.0.4 - does the upgrade to .5 involve remove .4
first?
I'm not sure how you are getting 'string(1) ' with php5.0.x you
should have
On Sat, Nov 26, 2005 at 02:36:26PM +0200, Andrei Verovski (aka MacGuru) wrote:
Hi,
Someone have benchmarked SPL iterators vs for / foreach loops? What is the
performance penalty?
SPL is �interpreted wrapper� on the top of C++ STL (correct me if I am
wrong), and I am sure it uses STL
On Sat, Nov 26, 2005 at 11:55:25AM -0400, robert mena wrote:
Hi,
I am trying to compile php 5.1 but it fails with pdo error messages
'./configure' '--with-apxs2' '--with-mysql=/usr' '--enable-soap'
'--with-xmlrpc' --with-zlib --enable-pdo=shared --with-pdo-mysql=/usr
101 - 200 of 1998 matches
Mail list logo