Ernest E Vogelsinger wrote:
>
if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) {
Ok, please forgive my ignorance, but in PHP isn't $_COOKIES the same as
$_SESSION?. I thought it was if the user had cookies turned off (and
even if the user had cookies turned on come to t
hi,
you should try to take the php.ini-recommended and edit it a little bit so that it
fits your needs.
the settings there are very secure but also increase php's performance and coding
standard.
if some settings won't fit to a single script, you can use ini_set(..., ...).
so you'll have to disa
Hi,
I am looking to secure my php install, like the settings in php.ini etc.
I am using apache 1.3.27 and running latest php.
Is there like a tut or something that can take u thought the php.ini and
explain ina little more detail?
safe_mode = Off
is that a bad idea or should i leave it on..
On Sun, 24 Nov 2002, Rich Gray wrote:
> Answer is No. 2)
> Use cron to run the mysqldump utility instead of a php script.
> Let me know if you need more info.
I use this one with crontab, it works pretty well, if your email program
can handle uuencode:
#!/bin/sh
# File: db_backup.sh
# D
Answer is No. 2)
Use cron to run the mysqldump utility instead of a php script.
Let me know if you need more info.
Cheers
Rich
-Original Message-
From: See Kok Boon [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 07:35
To: PHP
Subject: [PHP] getting mysql dump using php
hi,
can anyo
hi,
can anyone tell me how to make auto backups of mysql databases?
i have a particular database that i want to backup everyday. what i can
think of now is to use crontab to execute a .php that will do the work, then
send the db schema (dump) via email every midnight.
however, i do not know the
from the archives of the list
http://www.phpbuilder.com/mail/php-windows/2001042/0222.php
-tom culpepper
Stephen wrote:
They are entering in a whole paragraph or two of text and I want to search
the paragraph for URLs then make it a clickable URL and then store it in a
MySQL database.
- O
They are entering in a whole paragraph or two of text and I want to search
the paragraph for URLs then make it a clickable URL and then store it in a
MySQL database.
- Original Message -
From: "Tom Culpepper" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent:
not entirely sure what is going on there, but if the user is entering
the url in a html form. Then just grab the variable on the next page
and run this
$url=user $HTTP_GET_VARS["url"]; (or $HTTP_POST_VARS depending on your
form method)
$url="".$url."";
echo $url;
the only way to change it dyn
I have a simple post script and I want to make it so if a user
types in a URL of some sort, to change it to make it clickable. How could I do
that?
Thanks,Stephen Cratonhttp://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got from
the person you love mos
yiihhuuuvvv
it works;
I heard it, i remember variable variables I guess
Thanks all
EEV> $var = 'string';
EEV> $$var will resolve as $string
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 02:05 24.11.2002, empty said:
[snip]
>i have string like: "string";
>
>how can i get variable $string;
[snip]
$var = 'string';
$$var will resolve as $string
--
>O Ernest E. Vogelsinger
(\)ICQ #1339
Hi;
i have a string and I want to set it as a variable name.
like tahat
i have string like: "string";
how can i get variable $string;
I suppose you are trying to do the following:
$variable = "some value";
So if you wish to assign "string" as $string, simply do the following:
$string = "s
Hi;
i have a string and I want to set it as a variable name.
like tahat
i have string like: "string";
how can i get variable $string;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Ken Nagorski <[EMAIL PROTECTED]> wrote:
> I have never used cookies before, however I am trying to
> implement them to make things a little more secure. Rather
> than passing a sql statement via a hidden input tag I am
> setting a cookie.
I think someone else already mentioned this, but let m
Floyd,
if you are using mysql then you can use the mysql_list_fields to get the
names of the mysql table's column (field) names, then do mysql_num_fields to
get the number of columns (fields), then fill the columns with whatever
using a while loop.
I've attached a php page that fetches this info fr
Probably just a problem with register_globals
Try:
$contents = "{$_REQUEST['firstname']}, {$_REQUEST['lastname']}, {$_REQUEST['email']}";
Marco
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at
I have a html form that has just 3 fields and each are defined as
name="firstname", name="lastname", and name="email" . The action is
calling a sendmail.php file and the method is POST. Here is the contents
of sendmail.php:
http://probsd.org/rlewis/thankyou.txt";);
?>
When submitting the form, ma
Hi,
In a html i use a form to post data to a php file in a Apache server. I'd
like to take a look at the raw data submitted from the web browser to the
php, where can i find this info? the access.log in Apache does not contain
this info. thanks.
Frank
--
PHP General Mailing List (http://www.p
if you mean something like bla.php?foo=bar, etc and you have register_globas enabled
it'll be stored as $_GET['foo'] ($_REQUEST['foo'])
On Sat, 23 Nov 2002 11:42:49 -0800
[EMAIL PROTECTED] (Craig Edgmon) wrote:
> I am sure this question has been answered, but there is a ton of data to
> sift thro
On Sat, 23 Nov 2002 10:58:02 -0500, you wrote:
>> I am trying to generate arrays to hold inputs to columns. Column
>> titles are input to a table as needed. They are read by the program
>> and placed across the page. Then an array goes under each column name
>> to collect the inputs to the vari
Try using fopen() to open the file and then fread() to read it into the
buffer and set that equal to the variable.
Tom Culpepper
Multicast Technologies
Patrick Anderson at TUE wrote:
Hi,
For some (strange, I know) reason I would like to copy the content of a
webpage into a database.
I would li
Try this function, Ijust wrote it for the same purpose. You just need a
unique string in front of the stuff you want, and one after it. You
can usually get a string of code on either end that will do this. The
function will open the URL, find the anchor strings you told it, then
strip them
Is your register_globals setting set to Off? This is the default setting in
v4.2.x upwards.
Rich
-Original Message-
From: Craig Edgmon [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 11:43
To: [EMAIL PROTECTED]
Subject: [PHP] Passing Variables
I am sure this question has been answered,
I wrote this function to fetch a news item off another web page but with
a little modification it should work for you. To use it you needed to
identify a set of of strings in the source to use as anchors ($start,
$end) and then it pulls that section and crops off the anchor text so
you are left wi
Try looking into the manual for register_globals
Marco
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com
On Sat, 2002-11-23 at 14:42, Craig Edgmon wrote:
> I am sure this q
Try the system() or passthru() functions...
Rich
-Original Message-
From: Paul Marinas [mailto:[EMAIL PROTECTED]]
Sent: 23 November 2002 13:09
To: Rich Gray
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] using cookies
dose anyone how to send a "ping" in local network
thank
I am sure this question has been answered, but there is a ton of data to
sift through on this. I am running Apache 1.3 and the latest PHP 4.2.3. .
I am just working with variables and I cannot seem to get them to pass from
my html file to the php call. I will get the html portion fine, but not the
I took the liberty of changing the subject of your e-mail because this
way everyone can follow it better.
Well, you can execute the ping command directly from within PHP and then
parse its input. For example:
/dev/null"), $a);
if (count ($a) && $a[1])
echo "success";
else
echo "f
dose anyone how to send a "ping" in local network
thanks
Paul Marinas
Technical Support
RDS Craiova
Phone: +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.
Privileged/Confidential Information may be contained
php-general Digest 23 Nov 2002 20:55:04 - Issue 1722
Topics (messages 125716 through 125738):
Re: php teleprogramming -- How to avoid being ripped off ?
125716 by: Khalid El-Kary
How to obtain unique XML Elements
125717 by: David Pratt
125718 by: Khalid El-Kary
Unde
Ken
Do *not* use hidden form statements or cookies to store any SQL this is
extremely dangerous and a relatively simple hack could destroy your database
completely!
By all means use hidden form fields to store row ID values but your PHP
scripts should treat all user input data via $_GET/$_POST/$_
Hi there,
I have never used cookies before, however I am trying to implement them to
make things a little more secure. Rather than passing a sql statement via a
hidden input tag I am setting a cookie. This works fine except that when I
look at the sql after it is pulled from the cookie everything
How can I insert a file into a binary field in sql server 2000. Do I
need some function in the query like upload or just read the file and
insert it.
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo ${$pdag[$n]}; // is also possible in case the [$n] is the index to
pdag. Otherwise use this:
echo ${$pdag}[$n];
- Tularis
PS. This is basicly the same thing as Ernest said, but shorter...
Ernest E Vogelsinger wrote:
At 16:50 23.11.2002, -<[ Rene Brehmer ]>- said:
[snip
Thanks.
At 16:50 23.11.2002, -<[ Rene Brehmer ]>- said:
[snip]
>Shouldn't
> echo($$pdag[$n]);
>be able to pull the string contents of the array? Or is there some extra
>needed when using referenced variable?
[snip]
This
> I am trying to generate arrays to hold inputs to columns. Column
> titles are input to a table as needed. They are read by the program
> and placed across the page. Then an array goes under each column name
> to collect the inputs to the various rows. Everything works except to
> dynamically
Hi @ Edwin,
On Fri, 22 Nov 2002 12:34:35 +0900, you wrote about "Re: [PHP] echo'ing
array contents through reference variable ... why doesn't this work???"
something that looked like this:
>> This is my test code:
>>
>> $premieredag =
>> array("2002-11-22","2002-11-29","2002-12-06","2002-12-18
Naif,
I think your problem is related to register_globals. The authors of the
book probably based their scripts on a version of PHP that had that
option turned on by default, but as 4.2.0, it's been turned off as it is
usually considered a security risk. So, either use the superglobal
arrays (like
At 22:02 22.11.2002, [EMAIL PROTECTED] said:
[snip]
>Has anyone heard of or used somthing like this, just received this notice
>from my registrar?
[snip]
This simply means:
Buy this domain, pay for this domain, so i
-Forwarded Message-
> From: Marco Tabini <[EMAIL PROTECTED]>
> To: Naif Al-Otaibi <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Some error in file upload.
> Date: 23 Nov 2002 07:56:06 -0500
>
> I think this needs changing:
>
> error-> if(isset(!$WINDIR) && !@unlink($userfile))
>
> into
>
>
Naif Al-Otaibi wrote:
I copy a complete example from a book to upload file and I got this
message error when I browse the file:
Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$'
in c:\inetpub\wwwroot\php5\file_upload.php on line 32
Change
if(isset(!$WINDIR)
to
if(!isset($WI
I copy a complete example from a book to upload file and I got this
message error when I browse the file:
Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$'
in c:\inetpub\wwwroot\php5\file_upload.php on line 32
Here is the content of the file (file_upload.php):
Adriano Santos wrote:
My php.ini: error_reporting = E_ALL & ~E_NOTICE
I have a form to send of the variables, but my page do not receive values.
This my code:
I guess you use PHP 4.2.0+; since this version the register_globals setting
defaults to off. See http://www.php.net/release_4_2_0.p
My php.ini: error_reporting = E_ALL & ~E_NOTICE
I have a form to send of the variables, but my page do not receive values.
This my code:
thanks
"Derick Rethans" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Adriano Santos wrote:
> > Hi,
> >
> > I'm
Ernest E Vogelsinger wrote:
One thing - be warned that some sites (esp. M$) send a redirect at the
index (or default) pages... the fopen() will not honor this redirect. Using
cUrl would be a better way to handle this, IMHO.
fopen() in the upcoming PHP 4.3.0 will support this though.
Derick
--
Jungsu Heo wrote:
Hello~.
I made a PHP script which resize GIF Image.
But, Animated GIF don't Animate ;-(
Manual says 'use imagecolortransparent() to format GIF89'.
The library that PHP uses, libgd, can't handle multiple frames in a GIF. SO
if you resize a GIF with it the result that comes o
Liug wrote:
I just compiled/installed apache/php4.2.3 with postgres
support. the default php.ini-dist is used. I added
extension=pgsql.so
but when I start apache, error_log shows it can't find
pgsql.so.
after some trial and error, I found the following line in
the default php.ini causes the probl
Adriano Santos wrote:
Hi,
I'm with problem: Undefined Variable.
I'm using :
PHP 4.2.3
MySql 3.2.39
Windows 2000
How do I make to soluction my problem ?
at the top of your script:
error_reporting(E_ALL & ~E_NOTICE);
or initialize your variables likes:
$number = 0;
$string = "foo";
Derick
--
Hi,
I'm with problem: Undefined Variable.
I'm using :
PHP 4.2.3
MySql 3.2.39
Windows 2000
How do I make to soluction my problem ?
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
you can get this parser
http://creaturesx.ma.cx/kxparse/
if you want only this limited functionality (take an old version) 0.2 for
example, you may also want to take only particular functions from it
this is valid in all cases (as i think), except that you are developing
another parser :)
Anyone have a simple technique for obtaining a unique list of elements from
an XML file?
Am looking for something that will identify the first opening tag ie
and the single tag so that I get an array of tags
that I can print out. Having a bit of trouble with regex to get something
to work.
Bas
hi,
don't be so unhappy withit, because you won however, money comes and goes
knowledge stays, through this experience you learned much, right? so you
didn't lost much! :-)
_
Tired of spam? Get advanced junk mail protection with
FOR THE RECORD:
I (spud who really is at nothingness.org) did NOT post this original
message to the list, despite the apparent sender address (and the
authentic signature at the bottom). Even the message-id header was
forged to appear to have emanated from my server (whose logs I checked,
to be
55 matches
Mail list logo