can anybody tell me please how to call a website from a php script.
meaning
if (something happens) {goto www.google.com} else {goto www.yahoo.com}
tanks,
christian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 16 Feb 2003 10:40:57 - Issue 1886
Topics (messages 135707 through 135730):
Re: Variables from the Form wouldn't transfer to my process page
135707 by: Jason Wong
135714 by: Geckodeep
135724 by: Jason Wong
processing status page
135708 by:
At 11:40 16.02.2003, christian tischler said:
[snip]
can anybody tell me please how to call a website from a php script.
meaning
if (something happens) {goto www.google.com} else {goto www.yahoo.com}
[snip]
I
Most of the content on my site is generated dynamically by PHP out of a
MySQL database. This is causing me problems when indexing the site.
Since pages are created dynamically htDig records the current date as
the date the document was created. I need the create date to be the
create date from
Tahnk you,
but I don't want to let web user see the log file
Nicholas Wieland [EMAIL PROTECTED] wrote in message
20030216011528.GA1411@localhost">news:20030216011528.GA1411@localhost...
On 2003.02.15 20:11 qt wrote:
I am planning to make a log file with fopen command.
I am succesfully
Dear Sirs,
How can I add or subtract two date easily. Is therea any lib or function
about this. I can not find any easy way in the manual
Best Regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Im trying to select only one row in a mysql database (in this case a poll
with the smallest pollID)...
Each row has a field called pollID which is the primary key and is auto
incremented when a new row is inserted.
I could possible do the following but I think its a bit extensive:
Hi Jason
Man you are great, well indeed I stumbled on my stupidity by putting the
hidden name instead of making it unique I've rectified it.
The reason for passing this variable to the next page is the cats table is
only needed in the first form and the name of the cat is just printed on the
Hello,
Im trying to select only one row in a mysql database (in this case a poll
with the smallest pollID)...
Each row has a field called pollID which is the primary key and is auto
incremented when a new row is inserted.
I could possible do the following but I think its a bit extensive:
This one time, at band camp,
H Prins [EMAIL PROTECTED] wrote:
Hello,
Im trying to select only one row in a mysql database (in this case a poll
with the smallest pollID)...
$query = SELECT * FROM polls ORDER BY pollID ASC LIMIT 1;
Kevin
--
__
Qt,
The easiest way is to convert your dates into a serial day number(i.e.
the number of days that have elapsed between your date, and some
arbitrary date in the dim and distant past - I think PHP uses 25th
November, -4714). There are some calendar functions in php that will do
this for you.
This one time, at band camp,
qt [EMAIL PROTECTED] wrote:
Dear Sirs,
How can I add or subtract two date easily. Is therea any lib or function
about this. I can not find any easy way in the manual
if the dates are timestamps, simply
$new = $timestamp2 - $timestamp1;
cheers
Kevin
--
christian tischler wrote:
Can anybody tell me how to call a website from within a php script.
Please ask user questions on the [EMAIL PROTECTED] list.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift:
Hans Prins wrote:
[...]
Please ask user questions on the [EMAIL PROTECTED] list.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
--
PHP General Mailing List
On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote:
Hello,
Im trying to select only one row in a mysql database (in this case a poll
with the smallest pollID)...
Each row has a field called pollID which is the primary key and is auto
incremented when a new row
- Original Message -
From: Gabor Hojtsy [EMAIL PROTECTED]
To: D'habi Arabians [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Northwind Arabians [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 2:14 AM
Subject: Re: Help Needed for Beginners trying to configure Correctly
Please forward user
Dear Kevin,
I used timestamp allready as following;
$today = strtotime (1 february 2003);
$enddate = strtotime (1 march 2003);
$diff = $enddate - $today;
But result comes as
2419200
How can I convert that numbers to days
Best Regards
Kevin Waterson [EMAIL PROTECTED] wrote in message
thank you,
that did the trick :)
Thomas Seifert [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote:
Hello,
Im trying to select only one row in a mysql database (in this case a
poll
Thank you, this looks like the kind of thing I'm looking for. I'll have to
give this a shot and see how it goes. :-)
On 02/15/03 8:44 PM, Justin French [EMAIL PROTECTED] wrote:
Using Apache's main config file (or at a per-directory level using a
.htaccess file), you need to black all .jpg,
Try:
$today = strtotime (1 february 2003);
$enddate = strtotime (2 february 2003);
$diff = $enddate - $today;
Should give you a clue!
SW
Qt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear Kevin,
I used timestamp allready as following;
$today =
Globals are turned on
- Original Message -
From: Ray Hunter [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 12:15 AM
Subject: Re: [PHP] Forms Help (continued)
Do you have globals turned on or off?
Ray
On
Hi ,
i'm using php in the command line and code snippet looks like:
?php
echo \033[1mTesting\033[0m\n;
echo \e[31;1mTesting\e[m\n;
?
I use ANSI sequences to colorize the output in the bash. Well executing
echo -e \e[31;1mTesting\e[m;
in
Dear Stephen,
Good clue!!
Is it working allways without problem such as 29 feb?
And one more hel how can I write 1 2 2003 instead of 1 february 2003
I wrote but directly but doesn' t work
thanks
Stephen Willcock [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Could someone please tell me why this code is not working:
ereg ('^[A-H]*([0-9]+)-$', $rank, $matches);
$workshop_ID = $matches[1][2};
where $rank is something like C12-1 and I just need the C12 part.
Many thanks
Peter Gumbrell
[EMAIL PROTECTED]
--
PHP General Mailing List
Hello List,
I'm having trouble with copy. I have this script that I got from php.net
but I can't figure out how to set the path. Right now it doesn't complain
but no files are copied. I'm trying to use a dynamically set directory to
do this, I have included ml_config to make the vars
Their site no longer responds.
Surely, we haven't lost one of the best php editors.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you're using a database, it may be able to take
care of this for you. If you're using mysql:
6.3.4 Date and Time Functions
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Date_and_time_functions
olinux
--- Fred Merritt [EMAIL PROTECTED] wrote:
Qt,
The
Greetings all,
I have some PHP code that is inserting records into a DB.
Most of this is auto increment.
However I know there is allot of breaks in the sequencing.
I am wondering if there is some way to write the SQL code to search through
the existing records in the DB and to find where the
Does anyone else get bounced messages saying they can't send email to
[EMAIL PROTECTED] when sending email to the list? Every email I send to
the list I get this. I don't get this when sending email to anyone else or
any other list.
TIA
--
PHP General Mailing List (http://www.php.net/)
To
On Sunday 16 February 2003 23:48, Malcolm wrote:
I'm having trouble with copy. I have this script that I got from php.net
but I can't figure out how to set the path. Right now it doesn't complain
but no files are copied. I'm trying to use a dynamically set directory to
do this, I have
On Monday 17 February 2003 01:54, Beauford.2002 wrote:
Does anyone else get bounced messages saying they can't send email to
[EMAIL PROTECTED] when sending email to the list? Every email I send
to the list I get this. I don't get this when sending email to anyone else
or any other list.
Yes,
At 16:18 16.02.2003, Peter Gumbrell said:
[snip]
Could someone please tell me why this code is not working:
ereg ('^[A-H]*([0-9]+)-$', $rank, $matches);
$workshop_ID = $matches[1][2};
where $rank is something like C12-1 and I just need the C12 part.
Phillip,
It doesn't matter, obviously you're not using the autoincrement ID for a
foreign key. All this does is identify a record.
If you did a SELECT and found a missing sequence number, what's to say that
value would not be inserted by another user before your INSERT? If you have
not set
On Mon, 17 Feb 2003 01:59:43 +0800, Jason Wong [EMAIL PROTECTED]
wrote:
On Sunday 16 February 2003 23:48, Malcolm wrote:
I'm having trouble with copy. I have this script that I got from
php.net
but I can't figure out how to set the path. Right now it doesn't
complain
but no files are
Try http://www.php.net/md5.
Use md5 to encrypt the password, then when you need to check from login just
encrypt what is given, and see if this matches the md5 found in the
database.
- David
Rob Packer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I use
btw - What do you mean by paypal generated passwords? I am interested in
using PayPal as an alternative to my current credit card handler.
Just a link is appreciated.
- David
Rob Packer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I use PayPal to
See topic.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everybody,
I have a form with 5 checkboxes. I want to make sure that a user checks
atleast 2 boxes before he can proceed. How can that be made possible.
Thank you
-Dhaval
_
The new MSN 8: smart spam protection and 2 months
At 18:54 16.02.2003, Beauford.2002 said:
[snip]
Does anyone else get bounced messages saying they can't send email to
[EMAIL PROTECTED] when sending email to the list? Every email I send to
the list I get this. I don't get this when sending email to anyone
At 19:57 16.02.2003, Dhaval Desai said:
[snip]
I have a form with 5 checkboxes. I want to make sure that a user checks
atleast 2 boxes before he can proceed. How can that be made possible.
[snip]
You have 2 options:
Use the chown function, chown is documented at
http://www.php.net/manual/en/function.chown.php
Jason
On Sat, 2003-02-15 at 21:00, David Duong wrote:
See topic.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General
How do we do it using the first option i.e javascript to count how many
boxes are checked...could you give some example...
Thanx
-Dhaval
From: David McInnis [EMAIL PROTECTED]
To: 'Dhaval Desai' [EMAIL PROTECTED]
Subject: RE: [PHP] Checkbox related...
Date: Sun, 16 Feb 2003 10:59:17 -0800
The problem is that it's looking for hyphen, - , immediately preceeding the end.
Remove the $.
- Original Message -
From: Peter Gumbrell [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 9:18 AM
Subject: [PHP] ereg usage
Could someone please tell me
I had code working that was passing multiple select values to another screen from a
form...
In the URL on the next page I see a bunch of characters, so it doesn't work...
%5C%22year_model_id%5B%5D%5C%22=60776
Anyone know what this is and how to fix it??? It was working fine for months and
At 20:34 16.02.2003, Dhaval Desai said:
[snip]
How do we do it using the first option i.e javascript to count how many
boxes are checked...could you give some example...
[snip]
Warning - untested:
script
hello,
I have a very simply page, the users can signup for a certain time to volunteer, when
they hit submit, the page reloads but I want their time to be inserted in the db and
then displayed. After I hit submit, it brings me back to the page but their info
isn't there until I refresh.
Phillip,
You will have to change your code, so the primary key is not an auto
incremented value. If you don't, the auto increment will over-ride the 'get
next' function. Here is what I use in my code. You just need to change it
for your table.
//- GetNextKey -//
function getnextkey(){
Miles,
I never use auto increment. Not because of gaps, but in case I need to
reload the table. They do have meaning if they are foreign keys to another
table.
- Larry
-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 1:14 PM
To:
Hi,
I am developing an application which will have to
parse a html page and extract information about the
forms found.
I tried the HTMLSAX class
(http://www.phpclasses.org/browse.html/package/678.html)
which is ok except by the fact that I can not retrieve
the default/checked status from the
John,
header(location:) is the way I'm doing it. I check for the Submit button, if
it was pressed and the processing succeeded, I redirect. If processing
fails (validation, error in connecting to the database, etc.) I redisplay
the same page with all the same variables that the user just input.
Yes, will be OK with all dates (though the valid range of a timestamp is
typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07
GMT.)
The function you want for numeric dates is:
int mktime ( int hour, int minute, int second, int month, int day, int year)
so, in your example
No I am not using msql
Olinux [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
If you're using a database, it may be able to take
care of this for you. If you're using mysql:
6.3.4 Date and Time Functions
Does anybody have minds about problems running long running PHP scripts as
standalone programs (ex. like servers, daemons). For example there is a
simple TCP/IP server in Sockets chapter of the Manual. Have anybody any
ideas how long can the script run ? is there any garbage collector in PHP,
if
I believe there's a way in PHP to get the URL of the page that called the
current page but can't find it. Is there such a function? Or would I have to
use another script (like Javascript)?
What I mean is if I click on a link on index.html to jeremiah.php I can call
the function and find out
At 22:58 16.02.2003, acleave said:
[snip]
I believe there's a way in PHP to get the URL of the page that called the
current page but can't find it. Is there such a function? Or would I
have to
use another script (like Javascript)?
This one time, at band camp,
acleave [EMAIL PROTECTED] wrote:
I believe there's a way in PHP to get the URL of the page that called the
current page but can't find it. Is there such a function? Or would I have to
use another script (like Javascript)?
$_SERVER['HTTP_REFERER']
Kevin
--
on 17/02/03 9:25 AM, Kevin Waterson ([EMAIL PROTECTED]) wrote:
This one time, at band camp,
acleave [EMAIL PROTECTED] wrote:
I believe there's a way in PHP to get the URL of the page that called the
current page but can't find it. Is there such a function? Or would I have
to
use
php-general Digest 16 Feb 2003 22:46:33 - Issue 1887
Topics (messages 135731 through 135785):
Re: call a website from a php script
135731 by: Ernest E Vogelsinger
htDig on PHP pages
135732 by: David McInnis
Re: [PHP-DEV] how to call a website from within a php script
Beauford --
...and then Beauford.2002 said...
%
% Does anyone else get bounced messages saying they can't send email to
% [EMAIL PROTECTED] when sending email to the list? Every email I send to
Yep. Looks like that person was subscribed to this list and died but the
list hasn't yet kicked out
Fred, et al --
...and then Fred Merritt said...
%
...
% The benefit of checking in javascript(which I suspect is enabled in most
Not me! Not me! Not me!
It is by no means ubiquitous. Anyone who even moderately considers
security will have it turned off.
HTH HAND
:-D
--
David T-G
If you are not using them as foreign keys, how does it matter? They are
simply identifiers for a particular record. If you need to know the number
of records a select count(*) does that quickly enough, gaps are irrelevant.
Miles
At 03:38 PM 2/16/2003 -0500, Willie G wrote:
Miles,
I never
I made the mistake of opening a web site with encrypting the passwords
stored in the database and want to encrypt them all in one fell swoop. Any
ideas on how to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I use extensively cookies in my web applications, but have reached the 4 kB
limit. So now I need to 'convert' all my cookies to session variables. Have
got an idea how I can create such for one variable, but here I have multi
element cookies. Reading the php manual gives me no idea on how to do
Hey all,
I was wondering if anyone could tell me what iCal and
Outlook are programmed in offhand. I have an ambitious
but probably not so thought out plan on builing some
mods for phpwebsite based off of phprojekt,
squirrelmail, myphpcalendar, and was thinking I would
write my own address book,
Did you check google?
http://ozu.arecom-sa.com/~marms/phpedit.net/
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 8:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] What happened to phpEdit???
Their site no longer responds.
Surely, we haven't lost one
Outlook would most likely be written in VC++ /OR Visual Basic
It's just a hunch..
LW
-Original Message-
From: Kevin Myrick [mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 February 2003 2:27 PM
To:
Subject: [PHP] anyone know what ical and outlook are programmed in?
Hey all,
I was
Thanks, I appreciate it.
--- Luke Woollard [EMAIL PROTECTED] wrote:
Outlook would most likely be written in VC++ /OR
Visual Basic
It's just a hunch..
LW
-Original Message-
From: Kevin Myrick
[mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 February 2003 2:27 PM
To:
On Sun, 16 Feb 2003 15:58:30 -0600, Acleave [EMAIL PROTECTED] wrote:
I believe there's a way in PHP to get the URL of the page that called the
current page but can't find it. Is there such a function? Or would I
have to use another script (like Javascript)?
What I mean is if I click on a
I run a fantasy MUD and I have a PHP based daemon which checks for in game
player mail and if found and the player has registered an email address, then
it sends the MUD mail out to the player's email address. The program wakes up
once a minute to check the database and then goes back to sleep.
Future compatibility
===
Php and zend have constantly been discarding old syntax...making it
deprecated and all...
How can I be sure that a code I write will run for ever (or at least 10
years) irrespective of future PHP versions...
Is there a list of syntax that php plans to
dude - try this:
echo $HTTP_REFERER;
It'l give you the refering page from when you came.
Luke Woollard
-Original Message-
From: Brendon [mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 February 2003 3:17 PM
To: Acleave
Subject: [PHP] Re: URL of calling page
On Sun, 16 Feb 2003
Simple!
Write a script to automate the process!
Lord Loh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 17 February 2003 09:17, Vernon wrote:
I made the mistake of opening a web site with encrypting the passwords
stored in the database and want to encrypt them all in one fell swoop. Any
ideas on how to do that?
while (some more password) {
get password from wherever it is stored
That is not an error! It is a Warning...I got it the other day when the file
was empty (or did not exist or something).
Use @ prefix to make it disappear
?php
$ar=@file(http://www.something.com/the_filename.txt;);
?
Hope this helps...
Lord Loh.
--
PHP General Mailing List
Thy these headers
=
$now = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: ' . $now);
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
=
Hope it helps...
Lord Loh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
if (condition) {
header(Location: http://www.gogle.com/;);
} else {
header(Location: http://www.yahoo.com/;);
}
regds,
-Original Message-
From: christian tischler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 16:11
To: [EMAIL PROTECTED]
Subject: call a website
I'm planing to host websites. Is it free to use PHP4 as an option for my
users?
I'm hosting on a Windows-based system.
Thanks a lot.
Bjarke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Bjarke,
--- Bjarke Walling Petersen [EMAIL PROTECTED] wrote:
Is it free to use PHP4 as an option for my users?
Yes.
HTH.
Alan
__
Post your free ad now! http://personals.yahoo.ca
--
PHP General Mailing List
78 matches
Mail list logo