> I looked in the manual (twice now). I want to keep logging to the log
> file but print to browser on this one script.
>
> I have in my script:
> error_reporting (E_ALL);
> error_reporting (E_ERROR | E_WARNING | E_PARSE);
>
> but they're still only being logged to file. I dont have access to
>
ok.. thanx
ive looked at it a little, and havent tested this yet as my server "broke"
down recently. but i thought this might work:
the php4 and php5 modules have different modules name, if i dont remember
totaly wrong, so writing
LoadModule php4_module modules/libphp4.so
LoadModule php5_modu
create a script getFile.php
when this is called first update the database, then using header you can
stipulate what type of document it is and it will prompt for download
for example for a Word document
Notes:
make sure you don't echo anything before the headers even suppress any
errors that m
Tony Arcucci wrote:
Why this error ( Linux Redhat 8.0, PHP 4.2.2):
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 1048576 bytes) in /var/www/html/xpai/xmail.class on line 71
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 131 byte
I was wondering if there was a way to stick PHP code into html docs and have it
processed only in certain web folders.
I'm running a Windows 2000 server... IIS with the CGI version of PHP 4.3.
not very server savvy so I'm not really sure how to make it work.
A heads-up to those who are moving old code with register_globals "on" to a
server with a newer PHP version and register_globals still "on":
In the old days, the rule was simple. For a session variable, whatever value
was in the global variable at the end of the script was what was saved to
the se
On Friday 20 June 2003 02:55, Mignon Hunter wrote:
> Still no out put here's my script test.php:
> $output = shell_exec("/var/www/htdocs/vertex_test/a.out");
> echo $output;
>
>
> tried "" and ''. Both test.php and a.out are in same directory and both
> have 777 perms.
OK, it *ought* to work. P
Ahhh, but then marketing gets involved and changes the 1024 to 1000 and
ta da, you now have more MegaBytes. 1024 is the right number to use,
but don't be surprised if it doesn't match with some numbers you might
compare it to.
On Thursday, June 19, 2003, at 02:45 PM, Mike Migurski wrote:
Is th
Is there any way I could loop thru and print all the month names (i.e.
January, February)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
Just make an array and loop through the array. You know the rest of the
names, right? :)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
i'm having a heck of a time getting snmpv2 to work with php. does anyone else
have it working yet?
i'm on rh 7.3 with apache v 1.3.23-14 and php v 4.1.2-7.3.6 on a test system
not on the internet.
what i'm trying to accomplish is a mib walk with php on a device that only
supports snmpv2.
here is
Hello,
This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58,
lines prefixed by '>' were originally written by you.
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
for($i=1;$i<13;$i++){
echo date("F",mktime(0,0,0,$i,1,1));
}
Hi,
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
I suppose you could do something like:
for ($i = 1; $1 >= 12; $i++) {
echo date("F", mktime(0, 0, 0, $i, 1, 2003)) . "";
}
Unless you just want to m
that's what I'm looking for - thanks.
David Nicholson wrote:
> Hello,
>
> This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58,
> lines prefixed by '>' were originally written by you.
>
> > Is there any way I could loop thru and print all the month names (i.e.
> > January, Feb
hi all,
i am using curl to post data to the payflow link server.
now here are the questions that i want to ask.
here is the server stats
Linux+ php + mysql + curl + ssl
1) now i want to know if curl is safe to use?
i know about the payflow sdk but i also know that i can execute the sdk by
exec call
--- SpyProductions Support Team <[EMAIL PROTECTED]> wrote:
>
> I have this in a script:
>
> header("Location: $Relative/outstanding.php?pdd=1&pddid=$poid");
A good way to make sure you are sending the header you think you are is to use
echo instead of header() for a quick debugging run. For exam
Yes, this question is about PHP cookies.
Two questions:
1. How do you setup a cookie that will not expire??
2. How do you put 2 items that you want to save in the cookie and retrieve?? Examples
in the PHP manual only show how to work with a single value.
Thanks!
Robin E. Kopetzky
Black Mesa C
Hello,
This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 21:13,
lines prefixed by '>' were originally written by you.
> Yes, this question is about PHP cookies.
> Two questions:
> 1. How do you setup a cookie that will not expire??
You can't, but you can use an expiry date in th
Thanks everybody
system() worked in this case, but safe mode off, had to switch machines
but at least i got something.
The below produced my output:
system('/var/www/html/vertex/a.out');
-
not is more easy use system ?
$output = system('/path/to/a.ou
On Thu, 2003-06-19 at 12:57, drparker wrote:
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
--
Tyler Lane <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
1. Set a big value in seconds for the time argument
2. Send 2 cookies
OR
Create one string value containing the two values you want to save,
seperated by a a sepcific character of your choice and send this new value
as your cookie. Remember to parse the cookie's value when you request it in
you
Both.
1. If you don't specify an expiration date, it's good for the session.
Usually this means until the exit the browser. Otherwise you must set a
date far into the future.
2. You can name cookies, thus storing multiple values in multiple
cookies. Or you can store multiple values in one cookie
> 1. How do you setup a cookie that will not expire??
You can't.
> 2. How do you put 2 items that you want to save in
> the cookie and retrieve?? Examples in the PHP manual
> only show how to work with a single value.
You can't. Use an array or two cookies.
---John Holmes...
--
PHP Gener
Hi,
> > 1. How do you setup a cookie that will not expire??
>
> You can't
however you could just set the year into the distance future a few
years.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
this is an extract from setcookie documentation - how to handle a cookie
array.
Is this what you were looking for??
You may also set array cookies by using array notation in the cookie name.
This has the effect of setting as many cookies as you have array elements,
but when the coo
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote:
> 2. How do you put 2 items that you want to save in the cookie and
retrieve??
Smuch 'em together into a single variable with a delimiter you're sure
won't show up in either value, something like "#@@#", between them. Then,
when you read the cookie
Is there a way in PHP that I can secure a graphic, so that when the page is
loaded it will show the graphic, but is not able to be right clicked on or
downloaded to there desktop.
Thanks
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yeah there is a way you have to use some third party tools for that.
http://www.antssoft.com/htmlprotector/index.htm
.php can't do this AFAIK
- Original Message -
From: "Ryan Holowaychuk" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 2:26 AM
S
Hi, Im having this problem:
I set a cookie using this:
$sql = "UPDATE member SET cookie=$cookie WHERE
".
"id = $this->id";
$this->mysql->query($sql);
$cookie =
urlencode(serialize(array($_SESSION['u
I have this bit of code to crypt user password in user registration as shown
below.
$cryptpass=crypt($makepass);
which generated crypted password like eg 37Q9fppLHc4fQ with php 4.0
And am using the codes below to check for valid login..
// $pass - from login page
// $dbpass - from the database
Try using md5() instead because it is more widely supported than crypt()
and it leaves no room for errors.
Hope it helps,
Sævar ICELAND
-Original Message-
From: Huzz [mailto:[EMAIL PROTECTED]
Sent: 19. júní 2003 21:43
To: [EMAIL PROTECTED]
Subject: [PHP] strange crypt() problem
I have
At 6/20/2003 02:33 AM, Haseeb Iqbal wrote:
> yeah there is a way
No there is not a way. The way the web works is by sending your content to
someone else' computer. Once it's there, they have a copy, whether it's in
their cache or actually saved as a file. There's no way to prevent a
determined
Thank you to those of you who helped me with my last problem earlier today.
Now I have a text file (setup.txt) that has a series of values all seperated by
\r\n's. Inside of another file I'm trying to read setup.txt into $rawSetupData and
explode that with \r\n's into an array called $setupData
I already have about 1000 members their password crypted using crypt();
would they able to login using their password or they have to change it
again??
Thanks
"SævË Ölêöyp" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Try using md5() instead because it is more widely supported th
why don't you just do this?
***
***
file() returns the file in an array, each line as new value, so line nr.
1 is $line[0], line nr. 2 is $line[1] etc...
I added stripslashes() on the output so that you won't get "John\'s X
Log"
Sævar - ICELAND
--
PHP General Mailing List (http://www.php.n
At 6/19/2003 10:41 PM, Kyle Babich wrote:
> Inside of another file I'm trying to read setup.txt into $rawSetupData
and explode that with \r\n's
> into an array called $setupData.
Why on earth?
http://us4.php.net/file
>
> if (file_exists("setup.txt")) {
>$rawSetupData = readfile("setup.txt
Well, if you don't find another solution for this, you could generate
random passwords for each member and mail them to them. Then you would
md5() them and update the DB with new md5()'ed passwords... This is not
the easy way out so I hope someone finds out why the crypt() is behaving
strangely.
It looks like "Some operating systems support more than one type of
encryption. In fact, sometimes the standard DES-based encryption is
replaced by an MD5-based encryption algorithm. The encryption type is
triggered by the salt argument. At install time, PHP determines the
capabilities of the crypt
Hello,
I am building an database of wines. I have fields of stuff like year,
grape, etc. However, I want to be able to go in and change something
without having to retype every field. As I have it right now, I use the
UPDATE where id=$id function. However, this changes EVERY field. For
example
Hi Matt
Am Freitag, 20. Juni 2003 01:06 schrieb Matt Hedges:
> Hello,
>
> I am building an database of wines. I have fields of stuff like year,
> grape, etc. However, I want to be able to go in and change something
> without having to retype every field. As I have it right now, I use the
> UPDAT
The right SQL syntax would be:
UPDATE $table SET type='$type', year='$year' WHERE id='$id';
Sævar - ICELAND
-Original Message-
From: Matt Hedges [mailto:[EMAIL PROTECTED]
Sent: 19. júní 2003 23:07
To: [EMAIL PROTECTED]
Subject: [PHP] How to UPDATE only certain fields
Hello,
I am bui
Hi folks,
International PHP Conference 2003 is coming! From 11/02 to 11/05
Frankfurt/Main, Germany, will be the hot-spot of the PHP world
where another issue of the traditional PHP Conference will take
place.
We're now calling for papers and contributions to this unique
event. Whether you're runn
Thanks guys for your suggestions ...
"Jeff Harris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
It looks like "Some operating systems support more than one type of
encryption. In fact, sometimes the standard DES-based encryption is
replaced by an MD5-based encryption algorithm. The
For (2) you could even build an array, object, etc. if you need to store several
values and use serialize() right before setting the cookie, and unserialize when you
retrieve the cookie.
Joseph
"Henning Sittler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> 1. Set a big value i
If register_globals is turned off, and the php version being used is pre-4.1
(meaning no $_SESSION array) how do you access sessions values? How do you
"register" them?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>From manual on www.php.net:
"Use $HTTP_SESSION_VARS with PHP 4.0.6 or less"
Sævar - ICELAND
-Original Message-
From: Lee Herron QCS [mailto:[EMAIL PROTECTED]
Sent: 20. júní 2003 00:01
To: [EMAIL PROTECTED]
Subject: [PHP] Pre-4.1 / register_globals=off
If register_globals is turned of
Hi,
safe mode on and mass mailing wished. I know that it's not possible to set
the time limit, when safe mode is on. Sure mass mailing using mail function
takes longer than default execution time of the script. My codes should be
portable, that why modification of php.ini is not an option. The use
Hi,
I just wrote an script, which scans emails passed to it via a pipe and
adds the content to a MySQL database.
Attachments are also supported, however, zip files simply don't work.
They get processed & saved into the database just fine, but once i grab
such a zip file from the database, it sh
I have a class method that does one thing and one thing only.
Escape characters before going to the DB.
Part of it is ->
if (!get_magic_quotes_gpc())
{
$string = pg_escape_string( $string );
}
return "'" . $string . "'";
In everyday get/post operation it seems to work flawlessly.
I've come acro
this is slightly off-topic. I run a nonprofit website where people are
invited to contribute articles, papers, etc.
i'm in search of a system where i can manage all this website maintainence
(backups, restarting servers) and on-going correspondence. in some cases,
they ask me to contact them 2 mont
> From: "Ryan Holowaychuk" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Sent: Friday, June 20, 2003 2:26 AM
> Subject: [PHP] securing a graphic
>> Is there a way in PHP that I can secure a graphic, so that when the page
is
>> loaded it will show the graphic, but is not able
This seemed to do the trick for me. Thank you.
/ Mark
- Original Message -
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Awlad Hussain" <[EMAIL PROTECTED]>; "Mark Tehara"
<[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 1:14 AM
Subject: Re: [PHP] [Newman
Hello,
Any ideas on this? I have a form some users try and try to reload and it
floods my mailbox
Thanks,
Louie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Miranda, Joel Louie M wrote:
Any ideas on this? I have a form some users try and try to reload and it
floods my mailbox
Restrict them from submitting the form for X seconds?
or
Use a middle-man page that processes your form and then redirects back
to the form with a clean URL; the refresh will o
Miranda, Joel Louie M wrote:
Hello,
Any ideas on this? I have a form some users try and try to reload and it
floods my mailbox
This is one of the most asked questions, right behind "OMG! MY
VARIABLES DONT PASS111". Search the archives.
--
The above message is encrypted with double rot13 e
Do you have examples?
-Original Message-
From: Mark Tehara [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 11:33 AM
To: Miranda, Joel Louie M
Subject: Re: [PHP] Multiple Submission of the Same Form
Use a Databace and have a DateStamp String and an IP string, then when the
post has
Hey guys,
I want to know how I can add different border "styles" around an image.
Here's what I do to create an image:
function output_new_img () {
$new = $this->calc_new_size ($this->max_w, $this->max_h);
$new_w = $new[0];
$new_h = $new[1];
$src_img = ImageCreateFromJPEG ($this
Title: preg_match
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I am trying to code a search, and i need to get my matching
_expression_ to work right. The user can enter a value swhich is
stored in the vraible $search.
What the below loop needs to do, is search each entry of the array
for
Hi,
I've got a problem passing a query string from a HTML file to a PHP file. I created a
HTML file called "welcome.html" with the following link:
Hi, I'm Andy
I am trying to pass the query string Andy to a PHP file called "welcome.php" with the
following command:
check your php.ini file to see if you have register_globals set to "on" or
"off" (probably "off")
You can either turn it "on" or use $_GET["name"]
-Original Message-
From: Robby Ku [mailto:[EMAIL PROTECTED]
Sent: Friday, 20 June 2003 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can't pass
Hello!
I have an Apache web-server with PHP-4.3.2 installed. Directory
structure of my DocRoot is as follows:
www/
docs/
tm/
tts/
cache/
lib/
index.html
docs, tm, tts are directories of projects, published through ftp by
different people,
lib - common directory, containing p
Hi Robby,
try to add this line to your php-file:
$name=$_GET['name'] ;
change to:
Good luck!
Jan
"Robby Ku" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi,
>
> I've got a problem passing a query string from a HTML file to a PHP file.
I created a HTML file called "welcome.ht
101 - 162 of 162 matches
Mail list logo