great! it works! thank you very much!
this is the code which does exactly what I wanted:
$ch = curl_init ();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POSTFIELDS, RESP_FORMAT=1);
$result= curl_exec ($ch);
curl_close ($ch);
cheerio
Hi, thanks for all the replies on my two previous postings relating to
sessions and cookies.
I have set my mind on using sessions but without cookies, so that
entails passing the SID via relative URL's.
My problem comes in here, when I create a simple login page with a form
that send username
You need to start the session before any html. So:
?php session_start(); ?
html
Cheers!
Rick
Too much caution is bad for you. By avoiding things you fear, you may let
yourself in for unhappy consequences. It is usually wiser to stand up to a
scary-seeming experience and walk right into it,
I have a string that is separated by spaces like this
$string=test test1 test2 test3;
how can I make the string so it is separated by comas like this
$string=test,test1,test2,test3;
I know this is probably simple but I just can't figure it out
--
Best regards,
rdkurth
Hello all,
This may be a pretty naive question.
Do we have to use the key word
session_register(variablename);
in every single page, in which we plan to use the variablename?. Or is it
possible that we register the variablename once, and in the subsequent pages
continue to access it using
$string = str_replace( , ,, $string);
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:57 PM
To: php-general
Subject: [PHP] separated string by comas
I have a string that is separated by spaces like this
$string=test test1 test2
That answers my question.
Thanks,
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Tim Luoma [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
FWIW, a user note at http://www.php.net/manual/en/function.header.php
says :
There is this nasty bug in IE 5 for
What is your PHP Version ?
Try putting the
global $HTTP_SERVER_VARS;
print_r($HTTP_SERVER_VARS);
in your custom function and check out what is it printing...
-S. Sukumar
I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
within a custom function() this
On Monday 22 July 2002 15:35, Lord Loh. wrote:
1. How can I store an image in a database.. ?
2. How can this be now used to create an image ?
Search archives for various combinations of:
upload, image, mysql
3. Is there any way I can read an image from a remote site and save it's
On Monday 22 July 2002 14:56, [EMAIL PROTECTED] wrote:
I have a string that is separated by spaces like this
$string=test test1 test2 test3;
how can I make the string so it is separated by comas like this
$string=test,test1,test2,test3;
I know this is probably simple but I just can't figure
On Monday 22 July 2002 13:46, Monty wrote:
I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
within a custom function() this array appears empty. In the calling script,
however, the $HTTP_SERVER_VARS[] array is defined.
I thought this was supposed to be superglobal
Do we have to use the key word
session_register(variablename);
in every single page, in which we plan to use the variablename?. Or
is
it
possible that we register the variablename once, and in the subsequent
pages
continue to access it using $variablename ?
You just have to call it once.
i get php to allocate a colour then make it transparent using
imagecolortransparent()
instead of turning it transparent it becomes black.
Is it something i'm doing wrong? can anyone help me?
thanx in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi all,
I'm trying to use xslt_process() to transform a variable containing XML data
with an xsl file into a result using PHP. Incidentally the XML is from an
external source, i.e. a database. However despite following the examples in
www.php.net I am unable to do so. The code works out to
Hello Nick,
Monday, July 22, 2002, 8:47:39 PM, you wrote:
N i get php to allocate a colour then make it transparent using
N imagecolortransparent()
N instead of turning it transparent it becomes black.
N Is it something i'm doing wrong? can anyone help me?
N thanx in advance
Post a bit of
Dear ALL,
It seems that i have a very silly problem.
I can't get the new line escape character to work.
the following is my SIMPLE script and corresponding output.
PHP script:
!DOCTYPE HTML PUBLIC
-//W3C//DTD HTML 4.0 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
If you check the source of your code you'll see that in source the text
is in two lines.
\n doesn't work as br, so this is about how HTML works, not plain
text.
Niklas
-Original Message-
From: KK Lee [mailto:[EMAIL PROTECTED]]
Sent: 22. heinäkuuta 2002 14:01
To: [EMAIL PROTECTED]
Hello KK,
Monday, July 22, 2002, 9:00:47 PM, you wrote:
KL Dear ALL,
KL It seems that i have a very silly problem.
KL I can't get the new line escape character to work.
KL the following is my SIMPLE script and corresponding output.
KL PHP script:
KL !DOCTYPE HTML PUBLIC
KL-//W3C//DTD
nl2br()
KK Lee wrote:
**
This Message Was Virus Checked With : SAVI 3.59 May 2002
Last Updated 8th July 2002
**
Dear ALL,
It seems that i
Hello,
On 07/20/2002 07:14 PM, Alex Kirk wrote:
I've just set out to build a PHP-based mail system that will be able to
send HTML e-mails to a variety of mail clients. So far, I'm having
moderate success: I can get Yahoo! and Hotmail to see the HTML, but not
Netscape Mail or Outlook
My question is what can I do if someone searches for php script for search?
I would want to use OR in my SQL statment. The problem is how do I write the
query so that it will detect the number of words sent then put enough ORs
and LIKE '%$search[1]% in?
Thanks.
Here is the script.
?
include
[snip]
When i use div align=top on an include inside of a table
cell it dosen't work. Any reason?
Almost certainly there'll be a reason. Browse the page in question in
your web browser and then view the source - see if you've ended up with
your page source as you'd intended. Most of these
Just my opinion, but it is ALWAYS a good idea to terminate statements with semicolons,
no matter if there is or isn't additional statements.
But thanks Chris for at least using standardized HTML coding practices. I can't stand
it when I see tags and the like that don't cooperate with
Ctan wrote:
Hi all,
I'm trying to use xslt_process() to transform a variable containing XML data
with an xsl file into a result using PHP. Incidentally the XML is from an
external source, i.e. a database. However despite following the examples in
www.php.net I am unable to do so. The
php-general Digest 22 Jul 2002 12:54:28 - Issue 1479
Topics (messages 108782 through 108851):
Re: Hex Help Please...
108782 by: Georgie Casey
108824 by: Martin Towell
Re: get a list of clients with PHP
108783 by: Norbert Pfeiffer
Traversing an appendable file
Thanks for the quick response...
See the thing is the XML is stored in a MySQL database. Is that what you
mean Peter?
Chia
-Original Message-
From: Peter Clarke [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2002 13:56
To: [EMAIL PROTECTED]; Ctan
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re:
Ctan wrote:
Hi all,
I'm trying to use xslt_process() to transform a variable containing
XML data
with an xsl file into a result using PHP. Incidentally the XML is from an
external source, i.e. a database. However despite following the
examples in
www.php.net I am unable to do so.
If you want to get a warning when you accidentally do an assignment instead
of a comparison ( = instead of == ), get in the habbit of putting the
constant/function FIRST when you're doing a comparison.
For example, using 'while(mysql_fetch_row($result) = $row)' or 'if(5 = $x)'
should give the
I am a complete newbie, search the web for examples right now and use
them.
The host has php 3.0
Having problems with for submission
Right now, no error messages, but does not actually send the email.
Ideas?
?
$MailToAddress = [EMAIL PROTECTED];
$MailSubject = Get Involved List;
if
I often use: br\n
That way I get a new line in a browser and plain text as well.
KK Lee [EMAIL PROTECTED] wrote: Dear ALL,
It seems that i have a very silly problem.
I can't get the new line escape character to work.
the following is my SIMPLE script and corresponding output.
PHP
On July 22, 2002 10:12 am, 1LT John W. Holmes wrote:
[snip]
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
[/snip]
Looks like everyone will be using the new super globals, now... :)
Well, I guess I'm still assuming that in a perfect world, people will
upgrade
Think of it this way: br creates a line break in HTML Output, \n creates a line
break in HTML Code.
echo I really\n like\n PHP!;
HTML Code:
I really
like
PHP!
HTML Output:
I really like PHP!
HTH
It seems that i have a very silly problem.
I can't get the new line escape character to
From: Dean Ouellette [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 9:43 AM
Subject: [PHP] Newbie getting close, form submission
I am a complete newbie, search the web for examples right now and use
them.
The host has php 3.0.
^
That's really old, you
Hi,
I'm not sure how to do this but I have a form which I wish to do the following.
When the uses clicks the submit button, I wish to perform a check where I look for a
value in a MySQL database. If found, I need
to return an error page telling the user that the value already exists. I
I do not control server they will not upgrade. It is a tiny local host,
they suck, but the owner of site insists on using them.
Getting this
Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' in
/www/docs/site/email.php on line 78
This is the section
$Message =
IIRC, just about every upgrae has security fixes, you may be hard
pressed to find an older version that doesn't have any big holes in it.
On Mon, 2002-07-22 at 10:55, Ilia A. wrote:
On July 22, 2002 10:12 am, 1LT John W. Holmes wrote:
[snip]
PHP Security Advisory: Vulnerability in PHP
//post to this script
if($value_found_in_database) include('error_document.php');
else include('handling_script.php');
Op maandag 22 juli 2002 16:59, schreef DonPro:
Hi,
I'm not sure how to do this but I have a form which I wish to do the
following.
When the uses clicks the submit button,
I'm trying to redirect to another website but doing a post to that website
at the same time. (ie POST rather than a GET (eg: header(Location:
www.anothersite.com/index.php?page=22); )
How do you do an HTML post using the header() whats the syntax? I just cant
find it anywhere.
Thanks
--
From: Dean Ouellette [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 10:56 AM
Subject: RE: [PHP] Newbie getting close, form submission
$Message = $HTTP_POST_VARS['Message']; // should single quote
associative array indexes
if (isset($HTTP_POST_VARS['Header'])) {
This is 78
We recently upgraded to php 4.2.1 with Apache and our scripts that access
MySQL now fail in mysql_connect().Apache shows the following:
Warning: Access denied for user: '[EMAIL PROTECTED]' (Using password:
YES) in /var/apache/share/scripts/ais/itweb/projects.php on line 40
Warning: MySQL
Don't redirect, use curl to post your data to the new page.
Francis wrote:
I'm trying to redirect to another website but doing a post to that website
at the same time. (ie POST rather than a GET (eg: header(Location:
www.anothersite.com/index.php?page=22); )
How do you do an HTML post
No extra parameters have been added to the mysql_connect() function.
The error you're seeing is straight from mysql...so it's really not
php. Mysql says Using password: YES because you're trying to login
in with a password. If you took out password in the mysql_connect()
function, it'd say
Last line
Same error for this message
Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' in
/www/docs/www.electjoemarine.com/email.php on line 82
Was
$Message .= \n\n{$HTTP_POST_VARS['Footer']};
Tried this, but same message
$Message .= \n\n$HTTP_POST_VARS['Footer'];
Hi guys,
any one else able to get into www.php.net ?
I'm getting this
Warning: main(geoip.inc) - No such file or directory in
/local/Web/sites/phpweb/include/prepend.inc on line 6
Fatal error: Failed opening required 'geoip.inc'
(include_path='.:/local/Web/sites/phpweb/include') in
They seem to be working on it. It comes up every few minutes so keep
trying. I managed to sneak it just long enough to snag 4.2.2.
On Mon, 22 Jul 2002, R'twick Niceorgaw wrote:
-Hi guys,
-any one else able to get into www.php.net ?
-
-I'm getting this
-
-Warning: main(geoip.inc) - No such
[snip]
any one else able to get into www.php.net ?
[/snip]
Nope... :^[
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could try one of the mirrors. For example, http://php.ca is up and
running.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 11:56 AM
I can get in. Try a mirror if you having trouble.
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 11:56 AM
To: 'R'twick Niceorgaw'; [EMAIL PROTECTED]
Subject: RE: [PHP] is php.net down ?
[snip]
any one else able to get into
It took me about 30 minutes to get it...just keep trying...some mirrors are
really good...i used a canadian mirror and that worked great...
.: B i g D o g :.
- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED]; 'R'twick
Niceorgaw' [EMAIL
Hi PHPers,
To help along with the new PHP download crises I have added a temporary
mirror:
http://www.thehostingcompany.us/php/
Regards,
Daniel Kushner
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
They are moving to another machine. The intention is to move the download
resource to another resource to free the resources ot the current machine
because there are too many working apache processes. And this is a problem
for other applications. It will be fine soon.
Regards,
Andrey
-
using NT? all I need it for is so the user can skip a registration step put
its all coded using POST rather than GET, its gonna be quite simple but
whats the syntax? there must be a way to do it...
Pete James [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
cool...
thanks guys
- Original Message -
From: Sam Masiello [EMAIL PROTECTED]
To: 'Jay Blanchard' [EMAIL PROTECTED]; 'R'twick
Niceorgaw' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 22, 2002 11:59 AM
Subject: RE: [PHP] is php.net down ?
You could try one of the mirrors.
On Monday 22 July 2002 23:44, Dean Ouellette wrote:
Tried this, but same message
$Message .= \n\n$HTTP_POST_VARS['Footer'];
$Message .= \n\n$HTTP_POST_VARS[Footer];
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design Hosting *
Work by process of elimination... Here goes...
Start with testing whether your mail will actually send
the mail by executing a one line script... Just out of curiosity:
how come your host is running an old version of php...
Test the following:
?php
( [EMAIL PROTECTED], Testing, Just a Test,
Sorry I forgot to stick the mail function there
?php
mail( [EMAIL PROTECTED], Testing, Just a Test, );
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP 3.0 (I know I don't control it)
Getting Parse error on last line of code which is just html
Here is php code on page
?php
If ('GET' == $HTTP_SERVER_VARS['REQUEST_METHOD']) {
$MailToAddress = '[EMAIL PROTECTED]';
$MailSubject = 'Get Involved List';
?
?php
exit;
}
?
?
If
[snip]
Getting Parse error on last line of code which is just html
Here is php code on page ...
[/snip]
Check your curly braces, this is the most often cause of a last line error.
You either have too many or not enough.
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To
On Tuesday 23 July 2002 00:32, Dean Ouellette wrote:
PHP 3.0 (I know I don't control it)
Getting Parse error on last line of code which is just html
mail($MailToAddress,$MailSubject,$Message,$MailFromAddress); // don't
have to quote vars on parms } ?
I've got effectivly a glorified chat server which upon the arrival of a
message thorugh a socket connection goes off and runs a bunch of database
processed. My questions is this: How can I seperate the database
processing into a seperate processor process? I really don't want the chat
server
On Mon, 22 Jul 2002, Marko Karppinen wrote:
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
Not only did I get to re-write all my apps the past few months because of
the new register_globals default that was imposed by `the php group`...
Now I get to upgrade my PHP
Hey man, if you can't stand the heat, get out of the freakin sun.
Atleast PHP tells you about holes, not like Microsoft who will fix it
six months down the line (if they even admit a hole exists). Plus, if
your running anything past 4.1.2 on production systems, it's your own
damn fault because
?php
If ('GET' == $HTTP_SERVER_VARS['REQUEST_METHOD']) {
$MailToAddress = '[EMAIL PROTECTED]';
$MailSubject = 'Get Involved List';
?
?php
exit;
}
?
You appear to be moving in and out of PHP Mode that could be pretty
tough to follow... I've practically been looking at php Code
You can use threads with NT to accomplish what you are asking.
-Original Message-
From: David Buerer [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 11:29 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes
I've got effectivly a
What are some good e-commerce stores written out there for PHP and mySQL??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well from the sound of it, it's a quick painless process to upgrade php to
the newest version using the patch. Can anyone that has done it comment on
the complexities of the upgrade? Im just going on what it says on the php
homepage...
Rick
When you walk to the edge of all the light you have
I actually enjoy all the security releases. They give me something to
do at work!
tyler
On Mon, 22 Jul 2002 11:55:31 -0500 (CDT)
Greg Donald [EMAIL PROTECTED] wrote:
On Mon, 22 Jul 2002, Marko Karppinen wrote:
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and
4.2.1
Hi,
I have already php installed on linux running with mysql enabled.
Now I wanted to read dbf files and I came to know that we need to install
php with
**
Installation
In order to use these functions, you must
Quoting Greg Donald [EMAIL PROTECTED]:
It's not about that.. It's about the hell I've already been
through with the new register_globals setting. Then two huge ass
security holes following in the next couple of months after that.
If it doesn't bother you the hassles 'the php group' is
From: Vinod Palan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:41 PM
Subject: [PHP] dbf Help
I have already php installed on linux running with mysql enabled.
Now I wanted to read dbf files and I came to know that we
need to install
php with
Well from the sound of it, it's a quick painless process to upgrade php to
the newest version using the patch. Can anyone that has done it comment
on
the complexities of the upgrade? Im just going on what it says on the php
homepage...
Nice and easy for me, I'm running it on windows,
Heh
ASP.
Hehehehehe
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Monday,
[snip]
Can anyone that has done it comment on the complexities of the upgrade?
[/snip]
Well, trying to updrade on Slackware Linux 8.0 and compiling with the GD
(1.8.4) libraries are giving us some headaches. Some of what seems to be
wrong;
phpinfo() does not show new build times for each
-Original Message-
From: Chris Edwards [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:11 PM
Subject: [PHP] stores / ecommerce
What are some good e-commerce stores written out there for
PHP and mySQL??
http://marc.theaimsgroup.com/?l=php-generalm=101839857008918w=2
--
I am trying to execute a Script running a telnet command
testing through a range of IP connections...
Here goes:
?
$str = 123.456.789.;
$count = 0;
while ($count 999){
$runTheScriptCommand...
}
?
What I want to stick into the while loop is if connection
was successful,
The correct path for the windows binary version is
http://www.php.net/do_download.php?download_file=php-4.2.2-Win32.zip
/lasso ([EMAIL PROTECTED])
Rouvas Stathis wrote:
Hi all,
Just wanting to notify everyone that
the link for the PHP.4.2.2 download is broken.
-Stathis.
--
PHP
Did you do anything to Apache when you upgraded PHP e.g. change the host
name?
My MySQL scripts have worked through every upgrage from 4.0.6 to 4.2.1
without needing any modification.
Brian McLaughlin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
We recently
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
Issued on: July 22, 2002
Software: PHP versions 4.2.0 and 4.2.1
Platforms: All
The PHP Group has learned of a serious security vulnerability in PHP
versions 4.2.0 and 4.2.1. An intruder may be able to execute
[snip]
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
[/snip]
Looks like everyone will be using the new super globals, now... :)
Well, I guess I'm still assuming that in a perfect world, people will
upgrade because of security issues...
---John Holmes...
--
PHP
Can you post this to php.announce as well?
Marko Karppinen wrote:
PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
Issued on: July 22, 2002
Software: PHP versions 4.2.0 and 4.2.1
Platforms: All
The PHP Group has learned of a serious security
Hi all,
Just wanting to notify everyone that
the link for the PHP.4.2.2 download is broken.
-Stathis.
--
Rouvas Stathis
[EMAIL PROTECTED]
http://www.di.uoa.gr/~rouvas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The superglobals have been a round for a bit so it's not as if everything's
got to be updated overnight.
I run PHP on windows and upgrading is just a matter of unzipping the archive
to my PHP folder and overwriting all the older files - dead simple. Don't
even have to change php.ini if I don't
Yes. Please post something to php.announce! Nothing ever gets announced in
there anymore.
Steve Meyers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can you post this to php.announce as well?
Marko Karppinen wrote:
PHP Security Advisory:
Hello folks,
I'm wondering if anyone has experienced this before. I'm trying to
get sessions working for a small utility site I've developed. I'm
using PHP Vers 4.0.2 (I know its an oldie but I don't know how to
update it without crashing my entire server) on a Cobalt RAQ3 (RedHat
Linux).
On Mon, 22 Jul 2002, 1LT John W. Holmes wrote:
This other guy needs to quit his freakin whining and just do his job. Or go
use ASP...the choice is yours.
Or JSP, for that matter. I've just discussing with a friend about this
security issue, and he was trying to convince me to move to Java...
getservbyname takes in the following arguments:
getservbyname(string service, string protocol);
is the parameter service similar to those diefined under
unix's /etc/services file or is there something else
to it?
Thanks in advance...
--
PHP General Mailing List (http://www.php.net/)
To
session_register($employee);
session_register($employee_f_name);
session_register($employee_l_name);
session_register($employee_full_name);
session_register($department);
session_register($date);
[delete some flaming]
Hehe, and I thought I had to go to USENET to see a flamewar. This is great,
a flamewar delivered directly to my mailbox, it doesn't get better...
Let me put my $0.02 in. Security holes happen, no matter what software you
use. PHP and open source in general,
Tom Rogers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Nick,
Monday, July 22, 2002, 8:47:39 PM, you wrote:
N i get php to allocate a colour then make it transparent using
N imagecolortransparent()
N instead of turning it transparent it becomes
The easiest way to do this would be to write a wrapper function to
mysql_query() that does the writing to the log file and also executes the
query and returns the result set.
function my_mysql_query($query)
{
//assuming file would already be open...
global $fp;
$return =
Or you can use the error_log functions within your function, instead of
fopen/fwrite/fclose.
---John Holmes...
The easiest way to do this would be to write a wrapper function to
mysql_query() that does the writing to the log file and also executes the
query and returns the result set.
Hi,
I have been running 4.1.2 for a while with no problems. This morning, I
downloaded 4.2.2, did a configure/make/make install. All seemed to have
gone well. However, it broke all my sites that use PHP. Here is a
description of how it appeared to be broken. This is just an example,
as
Upgrade and turn on register_globals in php.ini.
---John Holmes...
- Original Message -
From: Kristopher Yates [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Monday, July 22, 2002 3:51 PM
Subject: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)
Hi,
I
You *did* read the notice that came up at the end of your 'configure'
run, right? (Specifically the part that said *** NOTE *** The default
for register_globals is now off. If your application relies on
register_globals being ON, you should explicitly set it to on in your
php.ini file. Note
I have never had a clear understanding about what this does, the php.ini
has an explanation but being newer to PHP I don't understand it very
well. Could someone prodive a human explanation about what
register_globals does and why it is so important?
Matt Babineau
MCWD / CCFD
I notice the INSTALL file in 4.2.2 mentions that people should write
their scripts to work with this [register_globals] turned off. Based
on what I've mentioned below, what can I do to conform to this statement
made by the PHP authors? From what I know about programming, I am
setting
Forging a POST is a complicated task when compared to its GET cousin,
and there is no 'easy' way
You must either use CURL, or write your own mini web client...
Francis wrote:
using NT? all I need it for is so the user can skip a registration step put
its all coded using POST rather than
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:59 PM
Subject: [PHP] What does register_globals do?
I have never had a clear understanding about what this does,
the php.ini
has an explanation but being newer to PHP I don't understand it very
well. Could
Forging a POST is a complicated task when compared to its GET cousin,
and there is no 'easy' way
You must either use CURL, or write your own mini web client...
Francis wrote:
using NT? all I need it for is so the user can skip a registration step put
its all coded using POST rather
My way of thinking about is:
With register_globals ON, all variables defined are available anywhere in the script
(with the exception of functions and classes, unless defined otherwise), whereas with
register_globals OFF, they are only available through the superglobals for the
respective
1 - 100 of 207 matches
Mail list logo