Does anybody know of a way to redirect to another page once you have already
outputted html to the screen. In other words, I want to output some text to
the screen for 10 secs and then re-direct to another page.
Thanks,
Dale
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
not with php directly, but you can do that with HTML meta tags, check google
for Meta refresh
Dale [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Does anybody know of a way to redirect to another page once you have
already
outputted html to the screen. In other words, I want to
Hi
What is the easiest way to find out how long a page takes to load? I have a
client that is concerned about how long the pages are taking and I want to
find some way of analysing it. Is there a PHP script that can do this?
Ade
--
PHP General Mailing List (http://www.php.net/)
To
Hi:
May be you can try javascript:
function goto($where,$string)
{
?
script
alert(\?=$string;?\);
location.href=\?=$where?\;
/script
? exit;
}
if(true)
{
goto(\http://www.yam.com\,\thank you!\);
}
The time that a page takes to load is a client side issue.
Your php script can be done but the web server may still be sending
information such as
heavy graphics and such to the client.
There are applications that let you measure the time a site and all of
it's
parts take to load as well as view
To save you the search :
How to use META REFRESH to auto refresh an html page after x seconds.
http://examples.weberdev.com/get_example.php3?count=124
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Bobby
Monty,
The best way to avoid SID Hijacks is to assign an IP variable, and an
expiration
session_register(USERIP);
$_SESSION['USERIP'] = $_SERVER['REMOTE_ADDR'];
session_register(EXPIRES);
$_SESSION['expires'] = time() + 900; // 900 seconds (15 mins)
and then the session has the users Ip
Hello,
I while back somebody on this list posted me a link to a registry update
which enabled syntax highlighting of PHP file in Visual Studio .Net. Due
to some tragid data loss, I am now back with a unpatched Visual Studio
.Net and I can't find the mentioned registry hack on google. If anybody
How comfortable are you with IPTables?
I'm running several web, email, etc services behind a very detailed iptables firewall.
Granted for me though, the firewall is it's own server protecting a private net.
I wouldn't do it any other way, well except something similar using freebsd and
PUT THE CODE BELOW INTO HEAD TAG OF ANY PAGE TO
REDIRECT IT:-
script language='JavaScript'
setTimeout(location.href='http://www.your-page.com/index.php',
200);
/script
Change the number 200 to anything you want.
The following sample is what I use it for:
http://www.eastlothian.org/03eloG.php
Should have been:
http://www.eastlothian.org/03eloG.html
not .php page which was the page it redirected to.
Just have a look at source code of above page as this
list message has removed a tag.
Chris
---
Quoting myphp [EMAIL PROTECTED]:
PUT THE CODE BELOW INTO HEAD TAG OF ANY PAGE TO
This is all dependent on how you are performing the transaction. Are you using raw
sockets to connect or perhaps cURL? The answer lies in that when whatever is making the
connection and reading the data returned, the headers will be sent there.
--
Jason k Larson
Ralph wrote:
Hi, I'm
Hi there
Anyone have a PHP Helpdesk that they'd recommend. We are using Perldesk at
the moment, so want something as good, but preferably better :)
Thanks
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 7 Jun 2003, Bix wrote:
Monty,
The best way to avoid SID Hijacks is to assign an IP variable, and an
expiration
session_register(USERIP);
$_SESSION['USERIP'] = $_SERVER['REMOTE_ADDR'];
session_register(EXPIRES);
$_SESSION['expires'] = time() + 900; // 900 seconds (15 mins)
Hi,
Is there any way to get a COUNT of records (SELECT count(*) FROM main_my
where type=$t) for 5 types using hopefully one select statement and then
dumping that into an array?
The reason I am asking is running 5 selects on the DB at once is not a very
good idea...right?
Thanks,
-Ryan
People,
I have two blocks for phpnuke 6.5.
These blocks show registers inside one marquee, of the left for the right.
The first block is functioning normally. However, if I make some alterations
in it, so that it pass to show registers of another table, it does not
function and presents the
Try
select type, count(*) from table group by type;
This should return a count for each distinct type value.
Regards
Peter Goggin
- Original Message -
From: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 08, 2003 12:13 AM
Subject: [PHP] selecting count and then
I have a way of getting the distances from one zip code to the next in the
US, but I need to be able to do that for other countries as well.
I've found a web site on the net that sells a database of all postal codes
and their longitude and latitudes but they want a $1000 which I am not
willing to
I am very big on Internet security and anyone running a web server should
know IPChains and IPTables. If you don't get a couple of books and learn.
Once you understand how things work you we will be much better equipped to
handle any security issues that may come up.
Having said that you don't
O.K. so how can I determine if output buffering has been started???
Thanks!
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks guys,
will give it a shot and write back if i have any problems.
Cheers,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 7 Jun 2003 14:53:06 - Issue 2103
Topics (messages 150560 through 150582):
Scalable Vector Graphics
150560 by: Bob Strasser
150561 by: Hugh Bothwell
REDIRECT
150562 by: Dale
150563 by: Bobby Patel
150567 by: Boaz Yahav
- Original Message -
From: Jakob Mund [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 9:04 AM
Subject: [PHP-DB] Possible to store arrays in mySQL without
explode()/implode()
is it possible to store an array in mySQL without using implode() /
explode(), like this:
building on the only reply that I saw try this also.
Say you had 12 different TYPE's that are in your table, and you only wanted
5 of them.
Then you will want something like what follows.
SELECT type, count(*) FROM table WHERE type='$1' OR type='$2' OR \
type='$3' OR
output some html and then try and do an header() redirect.
if it works, then some sort of buffering is turned on.
if it fails and tells you that output has already been sent to the browser,
then it isn't turned on.
Jim Lucas
- Original Message -
From: Shawn McKenzie [EMAIL PROTECTED]
Yay, a hack! The correct answer is ob_get_level().
Jim Lucas wrote:
output some html and then try and do an header() redirect.
if it works, then some sort of buffering is turned on.
if it fails and tells you that output has already been sent to the browser,
then it isn't turned on.
Jim Lucas
Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local
win2k+Apache2+php4.3.2 box?
Using phpinfo() does not show PATH_TRANSLATED
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: Øystein Håland [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 11:37 AM
Subject: [PHP] PATH_TRANSLATED
Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local
win2k+Apache2+php4.3.2 box?
echo Path Translated:
That gives the following error: Notice: Undefined index: PATH_TRANSLATED
and the reason is the variable isn't set by Apache/PHP
Matt [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
- Original Message -
From: Øystein Håland [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Look up gpgext on
http://freshmeat.net/projects/gpgext/?topic_id=44%2C809
Its a php extension that enable you to manage keys, encrypt, decrypt
with gpg and php.
Yann Larrivee
www.phpquebec.org
On Fri, 2003-06-06 at 18:44, Ryan Vennell wrote:
chances are, if it's possible it'd be a plugin or
On Saturday 07 June 2003 17:12, Bix wrote:
The best way to avoid SID Hijacks is to assign an IP variable, and an
expiration
Never rely on an IP address to be unique to a particular browser/user. For
reasons why search archives.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open
On Saturday 07 June 2003 05:42, Luis Lebron wrote:
I know there is a lot of expertise on running web servers in this group.
So, I'm going to ask a couple of questions.
I am currently a public web server with an iptables firewall. A security
consultant has suggested that we buy a separate
Hi,
Feeling a little braindead, please help.
The below program as you can see is extremly simple,
it connects to the database and runs a select (COUNT) query, this query will
return 5 rows...so far so good, everything is working but I have no idea how
to assign each of the rows to a variable so I
I am running into a strange problem. I have a script that parses a database
for results. It cycles through the data one record at a time looking for
matches to the query. Up til now I haven't had any problems as the results
have been limited in length. Now I have one that has a significant
What is the easiest way to find out how long a page takes to load?
Is there a PHP script that can do this?
There is no way to do this by just PHP script IMHO, but I can imagine
something like this one. Very suck, but
The idea is using PHP in order to write timestamp of the moment when
Hi,
Basically I am offering some packages and I want to say:
These are the following packages with your account:
package1 (-$row1-)
package2 (-$row2-)
package3 (-$row3-)
package4 (-$row4-)
package5 (-$row5-)
how to do it?
Thanks,
-Ryan
Maybe you should tell us what you really want to do?
I guess you mean something like :
?
$result=mysql_query(Select PackageName FROM Packages ORDER BY
PackageName) or die(mysql_error());
While($row = mysql_fetch_object($result)) {
Echo$row-PackageName BR;
}
?
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP
Hi,
I dont have packageName therejust id,type
Plus i need to do this in 2 placesso if i could assign each counts
result to a variable...it would be reay easy.
Cheers,
-Ryan
- Original Message -
From: Boaz Yahav [EMAIL PROTECTED]
To: Ryan A [EMAIL PROTECTED]
Cc: [EMAIL
This is likely due to Win32 not being required to do any virtual to real
mapping. This itself isn't PHP's fault, as the variable itself is set by
Apache.
Jason Reid
[EMAIL PROTECTED]
--
Exumweb Network
www.exumweb.net
- Original Message -
From: Øystein Håland [EMAIL PROTECTED]
To: [EMAIL
This was just an example :)
You can do :
?
$result=mysql_query(Select * FROM Packages) or die(mysql_error());
While($row = mysql_fetch_object($result)) {
Echopackage . $row-id : $row-type BR;
}
?
You can reuse $result if you need to or you can just assign it all to a
variable and dump
Hello All,
I have a problem with downloading new PHP 4.3.2. Whenever
I try to download it from whichever mirror I got a HTTP 404 error.
Could someone tell why?
Thanks Milan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Heres the code (very simple stuff) but not working:
if(session_is_registered('my_email')){}
else{
do_session_crap();
}
function do_session_crap()
{
if(isset($id[0]))
{$p1=$id[0];
echo $p1;
$_SESSION['p1'] = $p1;
}
if(isset($id[1]))
{$p2=$id[1];
echo
Hi all,
Please disregard the last mail.
Cheers,
-ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just as an additional note: the page has one continuous table so another
potential problem would be a limit to the length of a table?
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 1:55
Are you sure it doesn't work? I thought it didn't at first, that variable
doesn't exist unless you call the script with a index.php/dir/file.txt if
you get what I mean... This was my case, pretty long ago so maybe things
have changed...
ØYstein HåLand [EMAIL PROTECTED] skrev i meddelandet
Is there anyway to do dtd validation of an xml file? I realize the expat
implementation doesn't inherently support it. Is there anything that I
could use from php to validate against the dtd?
Josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Alright with the following code I am using is printing/echoing to the
browser a 1 before the html output. It's like it's adding 2 variables
together.
Here is what I am trying to do. I have a form that enters information to a
text file, and at the same time sends the information to a predetermined
I was wondering where I could get the rewrite urls for the rewriting of
urls like here on php.net.
- Tularis
P.S. I don't think they're in the phpweb on CVS, I checked that already
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it isn't a hack. that is a good way to tell. :)
all depends on if he plans to continually use this check in his script or if
he is just going to just test for it durning development.
Jim Lucas
- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: Jim Lucas [EMAIL PROTECTED]
Alright with the following code I am using is printing/echoing to the
browser a 1 before the html output. It's like it's adding 2
variables
together.
Here is what I am trying to do. I have a form that enters information
to a
text file, and at the same time sends the information to a
I am running into a strange problem. I have a script that parses a
database
for results. It cycles through the data one record at a time looking
for
matches to the query. Up til now I haven't had any problems as the
results
have been limited in length. Now I have one that has a
Feeling a little braindead, please help.
You post here more than I do.
The below program as you can see is extremly simple,
it connects to the database and runs a select (COUNT) query, this
query
will
return 5 rows...so far so good, everything is working but I have no
idea
how
to assign
Example is a page that displays the concerts and bands at each concert for a
given spectator. Table one gives information on the spectator and has a
field that lists the concert events he/she has been to. Table two lists
concerts along with location information and date along with bands and then
On Sat, 7 Jun 2003, Tularis wrote:
I was wondering where I could get the rewrite urls for the rewriting of
urls like here on php.net.
- Tularis
P.S. I don't think they're in the phpweb on CVS, I checked that already
What you see in phpweb is what you get, there is no
mod_rewrite, just a
Try a different mirror.
On Sat, 7 Jun 2003 [EMAIL PROTECTED] wrote:
Hello All,
I have a problem with downloading new PHP 4.3.2. Whenever
I try to download it from whichever mirror I got a HTTP 404 error.
Could someone tell why?
Thanks Milan
--
PHP General
I would like to know where i should be looking to pass an image through PHP
Thanks
/ Phil
Philip J. Newman wrote:
I would like to know where i should be looking to pass an image through PHP
Could you elaborate on what you mean by pass an image through PHP? I'm
not quite sure what you mean. What exactly do you want to do?
Jean-Christian Imbeault
--
PHP General Mailing List
I would like to know where i should be looking to pass an image
through
PHP
Pass it from where to where? What to you mean by pass?
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
If you view source in IE, do you see the entire page? If so, then it's
an IE display issue.
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
-Original
Hello. I'm attempting to upload a file using the script below and I'm not
having any success. The temp directory I'm using does exist and is
writeable. When I browse for the file then hit the send button it appears to
be working then displays the form again with no errors. I look for the file
on
I can't build php-4.3.2 with apache 2.0 under a RedHat 9 box.
I've upgraded apache to 2.0.46 by adapting a rpm source packet.
The configure section within the spec file looks like this
./configure -C \
--prefix=%{_sysconfdir}/httpd \
--exec-prefix=%{_prefix} \
Hi all
How can I print table in my page without I use print command from file
menu? I means just table not all page
Can anybody help me?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mudhar wrote:
How can I print table in my page without I use print command from file
menu? I means just table not all page
I'm not sure I understand ... what do you mean by print? Print to a
paper printer or display in the web browser?
Can you explain more clearly exactly what it is you want to
I can't build php-4.3.2 with apache 2.0 under a RedHat 9 box.
Okay, Apache2 has some issues, and Redhat itself always
has issues with it's unique setups...
[snip]
php compilation fails even when I try just:
[EMAIL PROTECTED] php-4.3.2]# ./configure --with-apxs2=/usr/sbin/apxs
Okay
Not sure what you mean, but try passthru().
Philip J. Newman wrote:
I would like to know where i should be looking to pass an image through PHP
Thanks
/ Phil
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full
How can I print table in my page without I use print command from file
menu? I means just table not all page
Make a print-friendly page that just contains your table. Printing is
pretty much a client side issue, not a PHP issue.
---John W. Holmes...
Amazon Wishlist:
i'm trying to make a POST request to my merchant's https server using
the following:
foreach($HTTP_POST_VARS as $key = $value){
$value = urlencode(stripslashes($value));
$req .= $key=$value;
}
$header
php-general Digest 8 Jun 2003 03:35:03 - Issue 2104
Topics (messages 150583 through 150627):
Re: [PHP-DB] Possible to store arrays in mySQL without explode()/implode()
150583 by: Matt
Re: selecting count and then dumping to an array
150584 by: Jim Lucas
Re: How to
Anyone know of a good free thumbnail program that can be called from a PHP
script using the exec() call or something similar?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
but I get following error:
Warning: fsockopen() [function.fsockopen]: no SSL support in this build
in
/usr/home/trivisions/html/sextoymerchant.com/payment/checkout_confirm.ph
p on line 64
So does this mean that my PHP installation does not support SSL, and
that I have to
On Sat, 7 Jun 2003, Artoo wrote:
Anyone know of a good free thumbnail program that can be called from a PHP
script using the exec() call or something similar?
By far, the most popular are the tools offered by
ImageMagick, such as mogrify:
http://www.imagemagick.org/www/mogrify.html
Anyone know of a good free thumbnail program that can be called from a
PHP
script using the exec() call or something similar?
Netpbm is used by Gallery. Works very well.
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP Architect - A monthly magazine
By no errors, do you mean you have a PHP version greater
than PHP 4.2.0 and checked the ['error'] code, and it
has a value of 0? Are you sure you want the filename
to be $file_name? I doubt you do.
Regards,
Philip
ref: http://www.php.net/features.file-upload
On Sat, 7 Jun 2003, Rodney Green
Fatal error: Call to undefined function: xml_parser_create() in
/home/httpd/rootdir/sstats/includes/XPath.class.php on line 1410
I now get this error on my phpsysinfo page. I have changed nothing in my
install except for updating recently. My Linux Flavor is Gentoo if that
helps. If you need
thanks. I'll give that a try. Happen to know where to get sample code that
uses this program?
Philip Olson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, 7 Jun 2003, Artoo wrote:
Anyone know of a good free thumbnail program that can be called from a
PHP
script using
On Sun, 8 Jun 2003, Dustin Pate wrote:
Fatal error: Call to undefined function: xml_parser_create() in
/home/httpd/rootdir/sstats/includes/XPath.class.php on line 1410
I now get this error on my phpsysinfo page. I have changed nothing in my
install except for updating recently. My Linux
Hi, I just installed PHP 4.3.2 and tried to run php_pdf. I found that I was
able to generate a pdf in memory using pdf_open_file($pdf), but when I tried
to generate a real file using pdf_open_file($pdf,$filename) nothing
happened, no file was generated. What's going on? Just as a sanity
On Sun, 8 Jun 2003, Artoo wrote:
thanks. I'll give that a try. Happen to know where to get sample code that
uses this program?
After doing a google search for the terms mogrify php:
http://www.google.com/search?q=mogrify+php
The first result was this article, it appears to touch
on the
On 04-Jun-2003 Jason Wong wrote:
In case 1, a malicious person can bypass your password checks by passing
admin=1 in the URL.
As Rasmus has correctly pointed out, the usage of register_globals=off
per se cannot be considered a security measure. If you don't initialize
and/or check *all*
Thank you. I checked my php_info() and sure enough --disable_xml is
present. Are there any Gentoo Users out there having this problem as well?
Any Gentoo Users out there that might be able to help me work out a
solution? I have 'xml' and 'xml2' in my make.conf use flags.
D
On Sun, 8 Jun 2003,
80 matches
Mail list logo