I am almost there folks. The issue is being resolved by
using the ob_start("garbage"); at the begining of the
login.php script, and ob_end_flush(); at the end of the
login.php script (in case the authentication fails and user
stays on the page), and also put ob_end_flush(); at the top
of the inde
Erica
Can I suggest that you use PGP to send the information encrypted. There is
a wonderful script which can be found here:
http://www.phpuk.org/code.php
We use this on various sites to encrypt sensitive information
In terms of a server certificate, you will need this to protect the client
f
Hello All,
I have switched hosting companies. previous server was
php4.04pl1 now I am on a server that is php4.06.
I have a file (functions.php) that stores all my SESSION
and other functions. A Header file, that has the general
feel and look of the site. In brief most of my pages have
include
When you doa phpinfo() look at the top block. you will probably see
something like ./configure --enable-track-vars --enable-trans-sid etc. If
it is not here your PHP module was not compiled with trans-sid enabled.
--Jon
At 09:13 PM 12/10/2001 -0500, John King wrote:
>Running a script that re
(posting again because it looks like the first one didn't go through)
Hi,
I've sniffed around on Google and PHPBuilder, but I can't seem to find any
information on creatnig encrypted pages with PHP.
Here is what I am looking for. I have a client who owns a retail store.
Thus, he has a manual cr
i'd be interested in knowing this too (for future reference...)
-Original Message-
From: August Zajonc [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Single character input on command line
Interested in getting a single character
Interested in getting a single character at a time on the command line using
php.
ie, I'd like to type 2 and be able to trap that keystroke right away and act
on it.
Before spending a lot of time tracking down possibilites (readline
input_buffer, reading the stdin pipe) thought I'd ask if anyone
Running a script that requires:
"Trans-sid enabled in php"
How would I find if this is enabled or disabled? Did a phpinfo() on the
server but could not find this? Was it a misprint?
Thanks,
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
* J. Heffner ([EMAIL PROTECTED]) [Dec 10. 2001 20:06]:
> I need to write a script that will stuff the names of all the files
> in a directory into an array, which I can then use for some
> adminstrative processing. Seems easy enough:
>
> exec ("ls", $fileArray, $isComplete);
>
> This will run
Hello, first of all, thanks very much for your answer about WAP and WML
php headers. I corrected headers and page works ok now.
==
Now a question about uploading files (.gif .jpg) using to be stored into Mysql blob fields.
I hope somebody here having sites on www.blueboxinternet.co
Hello,
I need to write a script that will stuff the names of all the files
in a directory into an array, which I can then use for some
adminstrative processing. Seems easy enough:
exec ("ls", $fileArray, $isComplete);
This will run fine if I call the php file containing this code from
bash (
When I use the script to upload an attachment to my form it does not email
the attachment. I am using the mail() function to email the results of the
form to me. Is there any other code I need to put in my mail() function to
make this work, if so where would I put it?
I am currently using the fo
Yes, you are out of luck without Freetype. You need to install Freetype,
then build GD against that and then finally build PHP against that
Freetype-enabled GD.
As for your second question, the ImageTTFText() function takes the TTF
font filename as an argument. See php.net/imagettftext
-R
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> suppose the date is 12-10-01
> --
> $timestamp = time();
>
> //this is the "sent on" date
> $yd_expl = explode(':',08-01-01);
Uh, better make that
... = explode('-', '08-01-01
"Steve Osborne" <[EMAIL PROTECTED]> wrote in message
000901c181db$bfca1f40$[EMAIL PROTECTED]">news:000901c181db$bfca1f40$[EMAIL PROTECTED]...
> Is there a function or command in php that will redirect a user to another
> page, similar to Response.Redirect(URL) in ASP?
>
header("Location: http://
Was wondering if anyone could help?
suppose the date is 12-10-01
--
$timestamp = time();
//this is the "sent on" date
$yd_expl = explode(':',08-01-01);
$today=mktime(0,0,0,strftime('%m',$timestamp),strftime('%d',$timestamp),strftime('%y',$timestamp));
Hi,
This is regarding the same problem that Jeff posted earlier (yes, the exast
same problem - I'm working with him). He seems to have given some of you
the wrong impression about the problem - he is not ignoring your posts, it's
just that the posts aren't helping the problem ;)
The problem is
I need to get data from a web page generated by mrtg in my page
i have come up with the following code
", $string);
$string2 = explode("", $string1[1]);
$stat = eregi("",$string2[0]);
echo $stat;
//while (list ($key, $val) = each ($string3))
Add the -q argument to the php command, i.e.
$ php -q
or edit the first line of your script to something like this:
#!/path/to/php -q
There are some other arguments to the cgi executable. Use the -h argument
for details.
J
Dan McCullough wrote:
> I am setting up a shell script to provid
header("location: $url");
-Original Message-
From: Steve Osborne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 11:36 AM
To: PHP-General (E-mail)
Subject: [PHP] Redirect function
Is there a function or command in php that will redirect a user to another
page, similar to Res
After a lengthy QA process, PHP 4.1.0 is finally out. Download at
http://www.php.net/downloads.php !
PHP 4.1.0 includes several other key improvements:
- A new input interface for improved security (read below)
- Highly improved performance in general
- Revolutionary performance and stability i
Hi..
I'm making changes to an PHP application (Postnuke).
The problem is than I can not see the PHP variables, like
echo "host=".$HTTP_HOST;
But just in a specific modulethe question is, is there a PHP
instriction to enable an disable those variables???..
Thanks
Is there a function or command in php that will redirect a user to another
page, similar to Response.Redirect(URL) in ASP?
Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
After a lengthy QA process, PHP 4.1.0 is finally out. Download at
http://www.php.net/downloads.php !
PHP 4.1.0 includes several other key improvements:
- A new input interface for improved security (read below)
- Highly improved performance in general
- Revolutionary performance and stability i
Bizzare --
About 2 hours ago http://www.php.net/downloads.php
listed 4.1.0 dated 10 Dec 2001 as being the latest release.
Now it's back to 4.0.6
I guess I will wait :)
Thanks
-bob
--
Bob Scott Web / DB Developer
http://www.covalent.netCovalent Technologies,
to stop errors from being email to you, redirect stderr to /dev/null:
*/2 * * * * /home/crontest.php > /dev/null 2> /dev/null
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 6:19 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP
What's the point of something like this? Just to type { instead of (just in case any of the people on PEAR-DEV will read this at all,
> since everyone must be tired of the template class debates :-) )
>
> i just wanted to say what i had to write, because i didnt see any of
> the existing templ
(just in case any of the people on PEAR-DEV will read this at all,
since everyone must be tired of the template class debates :-) )
i just wanted to say what i had to write, because i didnt see any of
the existing template classes/engines provide me with that
the main features are:
# compiling
Good day,
While I am sure most of the readers of the list are finding this
conversation amusing, I will still try to explain this a bit better to you.
DNS, or Domain Name Service, is the protocol which translates names into IP
addresses. If you supply a computer with a name, it must use DNS (or
as far as I can see the current release is 4.0.6.
did you see any announcement about 4.1.0?
they'll let you know when 4.1.0 is released. just be patient :-)
Maciek
> -Original Message-
> From: Bob Scott [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 10:06 PM
> To: [EMAIL
Hello all!
I've tried several times today to get the
latest PHP (4.1.0) tarball from php.net (as well as
a few mirror sites) and it looks like the
tarball is broken...!
Anyone having like problems??
Cheers!
-bob
.
.
.
.
.
php-4.1.0/ext/sysvshm/setup.stub
php-4.1.0/ext/sysvshm/sysvshm.c
tar: Sk
Hi Chamarty,
The function you are looking to use is:
filesize("file");
This will return the size of a file, surprisingly! Use it on all the files
in your docuemnt and add the results.
Regards
Matt.
Email: [EMAIL PROTECTED]
- Original Message -
From: "Chamarty Prasanna Kumar" <[EMAIL
Again, this works on some servers and othes not. Does IIS support this
particular function?
Jeff
- Original Message -
From: "Darren Gamble" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 3:32 PM
Subject: RE: [PHP] Using @fi
Good day,
Again, this error means that the server can not resolve a name.
Please ensure that the name www.myserver.com can be DNS resolved. Please
contact your DNS administrator if it can not.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd
Sorry that was a typo, it is a period, I mistyped into the email. If it
cant resolve the name, what would cause that problem?
Jeff
- Original Message -
From: "Darren Gamble" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 3:
Good day,
The error means that it can not resolve the name.
Replace the comma in the name with a period.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
Fr
I am using this line in part of my code but am getting an error that looks like below:
Code:
$serverDetails = @file("http://www.myserver,com/versions.php?l=$scripturl&v=$version";);
Error:
2: php_network_getaddresses: gethostbyname failed
(c:\inetpub\wwwroot\yabbse\Sources\Admin.php ln 43)
Wha
Start php with -q, eg: php -q script.php
-Stathis.
Dan McCullough wrote:
>
> I am setting up a shell script to provide a menu for some tasks that our server
>admin would like
> to do via script rather then vi'ing the file, now I am almost finished but I would
>like to get rid
> of this ugly p
I am setting up a shell script to provide a menu for some tasks that our server admin
would like
to do via script rather then vi'ing the file, now I am almost finished but I would
like to get rid
of this ugly part of the output.
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
Is there away
so i have a mail script which allows people to send attachments. This is
activated by an htmlform, which allows users to select the file from their
hard drive and post to the recipient.
The problem I have is this-
The file attachment is sent via email as a .dat file.
If I specify the name of th
or you could use:
http://phpclasses.upperdesign.com/browse.html/package/288
py
At 01:08 PM 12/10/01 -0500, Jeremy Reed wrote:
>The easiest way is to use cookies.
>=CODE
>require 'auth_functions.php';
>if (authenticateUser($form_username, $form_password)){
>setcookie("cook
Good day,
Calling another program with this script is unnecessary, since you are using
the "shebang" operator.
Instead of:
*/2 * * * * php /home/crontest.php > /dev/null
Use:
*/2 * * * * /home/crontest.php > /dev/null
Which should work just fine.
As pointed out, the reason you were getting
I don't want to use lynx to run the script because I don't want this script
accessible through a web browser :)
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Darren Gamble" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 1:12 PM
Subje
I was wondering how to disable the auto email after the cron job is done.
How exactly do you disable it?
thanks for the help btw!
- Original Message -
From: "Shane Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 12:47 PM
Subject: Re: [PHP] php as cron
Why not just use lynx to run it?
*/2 * * * * /usr/local/bin/lynx -dump crontest.php
JR
> On Monday 10 Dec 2001 5:54 pm, Jay Paulson wrote:
> > I'm trying to test php running as a cron job and I have installed php as a
> > CGI in /usr/local/bin and I have edited my crontab file to call a php
On Monday 10 December 2001 14:39, Steve Osborne wrote:
> Warning: Cannot add header information - headers already sent by
> (reference to current page)...
>
> At this point I have authenticated the user, and am trying to set the
> cookie before redirecting them to the registered users section.
Not necessary on the top, but before any html begins
Zliy Pes, http://zliypes.com.ua
- Original Message -
From: "Steve Osborne" <[EMAIL PROTECTED]>
To: "PHP-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 9:39 PM
Subject: [PHP] Setting Cookies
> I am attempting to
Good day,
Doesn't having the statement #!/usr/local/bin/php -q at the start of the
program makes running php (rather than the script itself) redundant? Why
not just call the script in the crontab?
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3
Yes, setting and cookie and redirecting in the same request is not
reliable. Some browsers can do it sometimes, others can't.
-Rasmus
On Mon, 10 Dec 2001, Steve Osborne wrote:
> I am attempting to use the SetCookie command. I receive the following
> error:
>
> Warning: Cannot add header inf
Hi
You probably need to set the path to your PHP binary in crontab.
Alternatively (this is probs a better way), wrap the whole lot up in a simple
shell script and get cron to run the shell script.
It's easier than it sounds...
#!/bin/bash
cd /path/to/php/scripts
php < myscript.php > /dev/null
You are getting that error because you have sent output to the browser
BEFORE you try to set the cookie information. When dealing with cookies, it
is important to do all processing before sending any output to the browser.
Jeremy Reed
"Steve Osborne" <[EMAIL PROTECTED]> wrote in message
002b01c
I am attempting to use the SetCookie command. I receive the following
error:
Warning: Cannot add header information - headers already sent by
(reference to current page)...
At this point I have authenticated the user, and am trying to set the cookie
before redirecting them to the registered
The easiest way is to use cookies.
=CODE
http://$SERVER/index2.php";);
exit();
} else {
header("Location:http://$SERVER/error.html";);
}
?>
This code takes in input from a form as simple as this:
Login:
Password:
Checks it against the database values using the
My experince: MsSQL is keeping silence even freetds or sybase is not
installed at all...
- Original Message -
From: "Dave Brotherstone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 7:58 PM
Subject: [PHP] Returned error messages
>
> Has anyone got error mes
Has anyone got error messages working from MSSQL or Sybase (connecting from
a unix box)?
Dave.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROT
I'm trying to test php running as a cron job and I have installed php as a CGI in
/usr/local/bin and I have edited my crontab file to call a php file every two minutes.
However, it's not working and I was wondering if you all would know what's going on.
Anyway, here's how I have things set up
I'm using the POST method.
We may be on the right track though, there may have been a problem with the
insertion of the data, rather than the retrieval. However, I still don't
know what could be causing the problem.
"JøRg Vidar Bryne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">new
"Paul Roberts" <[EMAIL PROTECTED]> wrote in message
000d01c18101$5dbb2220$01f8883e@laptop1">news:000d01c18101$5dbb2220$01f8883e@laptop1...
> Hi
>
> I'm trying to pre-fill a form ( the data is passed via sessions or from
> another script).
>
> i have some check boxes on the form that i would like
Hello world of php-programmers!
It seemes to me PHP is very powerful tool and very popular among
web-programmers, too. As for me I use php for solving web tasks for 2 years
and I'm very satisfied with it.
It seemes to me current PHP logo (can be found by
http://www.php.net/gifs/logo.gif) doesn't
"Rich Buggy" <[EMAIL PROTECTED]> wrote in message
018a01c18160$c463c180$[EMAIL PROTECTED]">news:018a01c18160$c463c180$[EMAIL PROTECTED]...
> > I'm wondering if anyone has any information about how to get the
> > proximity data for postcodes in Australia? Or is it safe to assume
> > that if a post
I've got a mySQL database with usernames and passwords. What's the best way
to allow authorized users to enter my site? I'm having some problems using
the forms properly, they've always been my achilles heel when it comes to
web programming. Any help is appreciated.
Mark Ward
--
PHP General M
Hey thanks! That was a good starting point...
-Brian
> -Original Message-
> From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 9:35 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] RegEx gurus help...
>
>
> The code below does almost
Security, you know...
Browser will not allow you to save files on LOCAL drive
Otherwise Internet should be very dangerous thing
- Original Message -
From: "Helmut Habiger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 5:57 PM
Subject: [PHP] file downlaod
hi!
is's such a simple question, but ...
i'd like to download a picture.
but instead of typing the URL into my browser, loading the page into the
browser, then right-clicking to to get the "save picture as" menu, then
entering the local path and press "save",
I'd like to write a litte script, wh
This is a critical bug fix release. If you use caching, you'll need to
upgrade from 1.5.0.
http://www.phpinsider.com/php/code/Smarty/
Version 1.5.1
-
- removed error message from the generic _read_file() method, the
caller
should take care of that. (Andrei)
- fixed a bu
If you have the whole in frame A and want the result in frame B then
use
If you have the form in frame A and the "search" button in frame B then
you'll have to use JavaScript
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 4:03 PM
Subject: [PHP] Frames creating problems...
> Hello Gu
on 12/10/01 10:03 AM, dhaval desai at [EMAIL PROTECTED] wrote:
> Well I have a website with frames. The problem here is
> that I have a serach box in the top frame and I want
> the results to be displayed in the other frame.
This isn't the appropriate forum for the question since it isn't php
re
from the way you describe, i can't help but think that it'd be one hell of a
regex.if all you're doing is stripping out .. i'd load up your fav
editor and do a search and replace where you can approve each changeor,
just change them all and fix what's broken.it'll be much quicker than
> Well I have a website with frames. The problem here is
> that I have a serach box in the top frame and I want
> the results to be displayed in the other frame.
Javascript! Use the OnCLick event of a button to take the value of the
textbox and update the href of the other frame passing the conte
php-general Digest 10 Dec 2001 15:10:38 - Issue 1044
Topics (messages 77176 through 77197):
Re: Doing statistics with MySql data?
77176 by: Martin Towell
77179 by: Fred
Announcement: Frederick Webmail v1.0.0 released
77177 by: Richard Heyes
KISGB (Keep It Simple Gu
Hello Guys,
Well I have a website with frames. The problem here is
that I have a serach box in the top frame and I want
the results to be displayed in the other frame.
I have seen this on lot of websites but now I am
wondering how to do it when I am facing this problem..
Any help would be great
I need to replace all relative links in an html
doc with absolute links on the fly weather it
be an image link,
a URL,
a link to an external JS file
or external css file.
Anyone done this before and have a prefab regex laying
around they want to share?
-Brian
--
PHP General Mailing Li
"Jeremy Reed" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is the problem: The user tries to submit a news article of 2+ pages
> (approx 4400 characters) but the article gets truncated to about 4050
> characters. Is there some sort of limitation on PHP
Hi All,
Using PHP,is there any function for
calculating the size of a Web page, means the size of
everything the browser has to load to render the page.
That includes the HTML file, all the graphics,
animations, CSS, php. And the input being URL of the
page.
Than
Hi.
First, please avoid cross-posting.
Try to narrow down the problem by trying from the command line client
(i.e. try to rule out PHP as source of the problem). If that doesn't
work, try the PHP list.
If you are successful, it belongs to the MySQL list (as PHP is no
longer part of the problem)
Hy,
is there any way to detect the plugins a user has installed in his
browser with PHP? I want to write a page where users get a plugin
depending on their installation. If none of the required plugins
is available an error page should be viewed.
If it's not possible using PHP, can it be done wi
Have you checked the docs? Have you double-checked the username, password
and permissions?
Have you added " or die(mysql_error())" to your database connection function?
If this site is remote, does your username/password have rights to access
the database?
Good luck - Miles Thompson
At 11:58 A
> I'm wondering if anyone has any information about how to get the
> proximity data for postcodes in Australia? Or is it safe to assume
> that if a postcode is, say, 3107, that 3120 or 3110 (for example)
> are nearby as well as 3108 (so, perhaps, 10 above and 10 below could
> be safely assumed to
I can't select a database from a php script.
I've set privileges in both the user and the data base tables
and I've done FLUSH PRIVILEGES;
WHY?
JOSEP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
I don't see any reason not to.
But you should allways try and make your varible names meaningful...
In some cases I do end up having the same, for example if I'm passing X,Y
coords around. But in othercases they have totally different names.
Also out of interest, activator=formal parameter, the
I've did:
FLUSH PRIVILEGES
but nothing changes.
Josep.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Is it advisable to use the same names for variables both in a function and in
its activator([?] I'm sorry I don't know the correct word) as follows?
Lennart Johansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
> I get:
>
> unable to select database
>
> when I visit my guestbook.php
>
> The user trying it is set in the mysql.user (without any perms) and in
the
> mysql.db (with all perms).
>
> Do I have to set all perms to this user in the mysql.user table?
Did you 'flush privileges' ?
--
Jon Farmer
Hey all,
I just finished an article on Safe Mode control for PHP but it is based on
non-Win32 systems. Can somebody with a bit more experience in Win32 servers
take a look at it and let me know what can be done to achieve, if not the
same level of control then close to it, on a Win32 platform?
I get:
unable to select database
when I visit my guestbook.php
The user trying it is set in the mysql.user (without any perms) and in the
mysql.db (with all perms).
Do I have to set all perms to this user in the mysql.user table?
Josep
--
PHP General Mailing List (http://www.php.n
85 matches
Mail list logo