Sorry, I forgot the link.
http://phpbuilder.com/columns/darrell2319.php3
David
- Original Message -
From: "David McInnis" <[EMAIL PROTECTED]>
To: "Tom Rogers" <[EMAIL PROTECTED]>; "Joseph Szobody"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 22, 2002 12:16 AM
This is what your are looking for. It works great.
I think this article assumes Linux which is what I use anyway. I guess that
if you were to use windows you could schedule the task but you would need to
call it using
c:\pathTOphp\php.exe c:\pathTOscript\script.php
Use Linux!
David
- Or
Hi there,
I am wondering how some pages count guest users. An example is phpbb. They
always know how many guest users are browsing the site. Are they using
cookies or db for this, or both? Maybe there is a code snipped out for this
already?
Thank you for any hint on that.
Andy
--
PHP Genera
Hi,
Sunday, September 22, 2002, 2:44:54 PM, you wrote:
JS> Folks, I have a PHP script that needs to be executed automatically every 15
minutes. I have the option of doing this on a RedHat linux box, or on Windows 2000
Server.
JS> How would I do this (on either platform) and which would be easi
Can someone point me in the right direction to find out how i can return the
amount of records in a mysql databace ?
---
Philip J. Newman.
PhilipNZ.com New Zealand
http://www.philipnz.com/
[EMAIL PROTECTED]
Mob: +64 (25) 6144012.
Tele: +64 (9) 5769491.
Family Site:
Philip J. Newman
Internet Dev
On the Linux box compile PHP as CGI (i.e. don't configure it as an apache
mod). Then you can just run your script from the the command-line.
For example:
#!/usr/local/bin/php -q
The -q suppresses the html crap that gets spit out. I don't know jack
about Redhat (Debian rocks), you might be able
Joseph,
The easiest way, in my opinion, is to make your PHP script into a shell
script or to call it with PHP yourself. A Red Hat Linux box is going to
have a command line PHP located somewhere like /usr/bin/php. So, make
the first line of your PHP script something like this:
#! /usr/bin/php
Folks, I have a PHP script that needs to be executed automatically every 15 minutes. I
have the option of doing this on a RedHat linux box, or on Windows 2000 Server.
How would I do this (on either platform) and which would be easier?
I believe somehow I could create a cron job on linux, but I'
On 22 Sep 2002 at 12:31, @ Edwin wrote:
> Actually, in a sense, CSS can "build" a page--esp. if "build" means how
> data are to be presented (formatted) by the browser. Remember, with CSS
> you can hide and unhide elements?
Ah .. yes ... forgot about that. That is building. Appreciate the
remin
I am using Zend Studio, and I absolutely love it. this isn't just an
editor, but a project manager, and has debugging options where it loads the
file in your default browser, and then allows you to do step through, add
watches etc.
http://zend.com/store/products/zend-studio.php
"Bryan McLemore
I'm assuming there has got to be a better answer then this, but I found I
had the same problem is I was using headers to go to the next page, but when
I used the html tags then everything was fine (the SID wasn't getting
passed).
"Murat Ö." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]"
(Sorry if I've already sent this.)
I agree. But, I don't really see any problem having *.inc files as *.inc.php
(so that they'll be executed by Apache) esp. IF the config file have only
this: (Even if this is executed nothing shows up...)
I just thought this is worth knowing esp. if there's no
Hi there,
On Sunday, September 22, 2002 12:20 PM
Subject: Re: [PHP] Best Practice
Peter J. Schoenster wrote:
> On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:
>
> >
> > I'm working on converting several static (price) pages on our site
> > into dynamic pages, with the data stored in a
On Sat, Sep 21, 2002 at 09:26:56PM -0500, Michael Geier wrote:
> I have never used BSD so forgive any of the obvious:
> 1. Sendmail installed on this machine?
Yes.
> 2. Is the php.ini value for 'sendmail_path' correct?
Yes.
> 3. Is there any firewall or port.deny for SMTP?
NO?
> 4
On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:
>
> I'm working on converting several static (price) pages on our site
> into dynamic pages, with the data stored in an MySQL database and
> PHP to pull the data out, with CSS to build the page and present it.
I don't see how CSS wo
Hello,
On 09/21/2002 07:19 PM, Jeff Schwartz wrote:
> The IMAP documentation on the php site says that you can create an IMAP message
>using imap_mail_compose but fails to say how to send it.
>
> I've tried using imap_mail but it gives me a parameter count error.
>
> Does anyone know how to se
On Sat, 2002-09-21 at 06:15, Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on
>windows. Thanks, Bryan
HTML-Kit by Chami software (www.chami.com) - saves in unix format or
windoze format, extremely configurable, direct uploads/downloads/edit
Thanks guys. That really helpful.
Chuck Payne
On 9/21/02 10:16 PM, "Chris Shiflett" <[EMAIL PROTECTED]> wrote:
> This explanation from Justin is worth saving.
>
> I also like to call all of my included modules *.inc, and I prefer to
> store them outside of document root.
>
> However, if you w
I have never used BSD so forgive any of the obvious:
1. Sendmail installed on this machine?
2. Is the php.ini value for 'sendmail_path' correct?
3. Is there any firewall or port.deny for SMTP?
4. Can you send mail from the CLI?
--
Michael Geier
CDM Sports, Inc. - Systems Administrator
This explanation from Justin is worth saving.
I also like to call all of my included modules *.inc, and I prefer to
store them outside of document root.
However, if you want to keep all of your files together, the .htaccess
file shown below is the best way to restrict direct access to modules.
Hi,
I place name all my included files *.inc... I place them all in a folder
/inc/ and place a .htaccess file in that directory to restrict the files
being served of HTTP:
Order Allow,Deny
Deny from all
Another option would be to place them in a folder ABOVE your web root, so
that Apa
Here is the site and the file names:
Test Site:
- index.php
- about.php
- services.php
Which example would cause more stress on the server and/or what are the
advantages, disadvantages to each example?
Example 1
-index.php with these links:
Home
Home
Home
With the index.php using a switch stat
Hi,
I have a question. I been working a personal project that I am want to make
a like simpler. I have several pages have in which I have place the
information to connect to my database, whick is getting old.
What I am wanting to do is create file like most do, a config, but I want to
know which
yeh wicked thanks
-Original Message-
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 11:48 AM
To: [EMAIL PROTECTED]
Cc: electroteque
Subject: Re: [PHP] checking if an array is empty
On Sun, 22 Sep 2002 11:09:16 +1000, you wrote:
>thats the thing , the wor
On Sun, 22 Sep 2002 11:09:16 +1000, you wrote:
>thats the thing , the word Array is what it returns even though there was no
>input file.
Oh, I see. Without seeing your code, the best recommendation I have
is to loop through the array and remove the empty elements, then check
to see if the arra
function return_exit() {
if (EXIT_AFTER_REDIRECT == 1) {
return exit();
}
}
// Redirect to another page or site
function redirect($url) {
header('Location: ' . $url);
return_exit();
}
ob_start();
echo "";
ob_end_flush();
ob_end_clean();
redirect($PHP_SELF);
here is
Pablo Oliva wrote:
>I have read that in order to account for browsers/users who do not have
>cookies enabled, that you should append the session id to the url (query
>string).
>
Yes, there are basically three ways that the Web client can pass a
unique identifier to the server:
1. Cookie
2. URL
Anyone knows why the below is hapeening?
My PHP info page is on http://www.nk.ca/phpinfo.phtml
- Forwarded message from Bob Federer <[EMAIL PROTECTED]> -
Return-Path: <[EMAIL PROTECTED]>
Received: from doctor.nl2k.ab.ca (IDENT:[EMAIL PROTECTED] [127.0.0.1])
by doctor.nl2k.ab.ca
thats the thing , the word Array is what it returns even though there was no
input file.
"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sun, 22 Sep 2002 01:13:08 +1000, you wrote:
>how can i check if an array is currently empty , for instance
http://www.phpedit.net
Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on
>windows. Thanks, Bryan
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 22 Sep 2002 01:13:08 +1000, you wrote:
>how can i check if an array is currently empty , for instance i have a file
>input field with an array name for multiple images, i need to check if there
>was no file uploaded in that field name and ignore it in the loop
I find that empty() works w
php-general Digest 22 Sep 2002 00:31:52 - Issue 1599
Topics (messages 117087 through 117125):
256colour PNG?? WHY?!
117087 by: -=| Julien Bonastre |=-
117091 by: Rasmus Lerdorf
Re: Attack of the ghost double slash??
117088 by: Gerard Samuel
Editor
117089 by
I have read that in order to account for browsers/users who do not have
cookies enabled, that you should append the session id to the url (query
string). Now, if I do do that,
www.site.com?phpsessid=gafklgjr952344afgfa, do I have to do anything so
that I force php to recognize the session id in t
Yes.
If you've done something like this:
if(!empty($var)){echo"Blah!";
It'll root up your script and give an error at the end of the file.
Make sure all {'s are closed.
Cheers,
Liam
- Original Message -
From: "Georgie Casey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, S
http://www.php.net/manual/en/ref.ftp.php
You'll need FTP support compiled into PHP.
do a phpinfo() and search for FTP
Cheers,
Liam
- Original Message -
From: "Stephen Craton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 22, 2002 7:27 AM
Subject: [PHP] FTP Uploadi
Editplus, all the way.
www.editplus.com
Small, fast, very configurable, lots of features, project support, direct
FTP upload
Give it a shot, it's the best :-)
Liam
- Original Message -
From: "Bryan McLemore" <[EMAIL PROTECTED]>
To: "PHP GEN LIST" <[EMAIL PROTECTED]>
Sent: Saturd
I'm getting a:
Parse error: parse error, unexpected $ in
/home/virtual/site264/fst/var/www/html/include/paypal.php on line 126
in my script. the script only has 126 lines, and I cant find any $ that
might be causing it. But there's a lot of loops to close in the script so
I'm thinking one of thes
> Try using SO_TCP.
The problem is that I'm making a server application, and all the clients were made by
someone else and are much more difficult to modify, and are already using UDP.
> There are issues using TO_UDP with
> internet/LANs. many ppl mention
> them from time to time, however,
The IMAP documentation on the php site says that you can create an IMAP message using
imap_mail_compose but fails to say how to send it.
I've tried using imap_mail but it gives me a parameter count error.
Does anyone know how to send the message?
Thanks,
Jeff
---
hi larry,
please explain, what in particular is wrong with your php-xslt installation?
maybe you can first of all try http://www.dependencywalker.com to check if all needed
.dlls are there. if you still need the new libexpat.dll you have to go to
http://sourceforge.net/projects/expat/ - it's ja
Hello,
I was just wondering, how do you FTP files in PHP? I can't seem to find
it in any of my PHP books so could someone kindly give me a rundown on
how they work? Thanks!
Thanks,
Stephen
http://www.melchior.us
http://php.melchior.us
--
PHP General Mailing List (http://www.php.net/)
To unsu
hi there,
i was thinking of a 2 ways to write a new debug function, ...
1. debug all variables in php script, e.g. "function debug( all )"
which should parse the whole source code of a particular php-script for all
occuring variables and treat them corresponding to their variable type, e.g.
- s
just use css to define separate styles for each media
e.g.
then the print style will be applied when the user clicks print.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I use PHPCoder on my windoze machines.thats when I have to use windows;)
Search google for "r2p3setup.exe" to get a copy.
~Pauly
On Saturday 21 September 2002 09:15 am, Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend
Hi Everybody,
I have my Apache 1.3.26 with PHP 4.2.2 running on WinNT 4.0 and need
to authenticate
users to have access to some web pages. The computer with apache is a part of
Novell NetWare Network and I need to that only users which are from this
network have access to the web pages
Ashley,
This is difficult to answer, as you are actually the best person to
decide. Consider some of the following things:
1. How often do you anticipate people will use the "printer-friendly" link?
2. How much data do you anticipate, on average, to be contained in the
results of these queries
I'm working on converting several static (price) pages on our site into dynamic
pages, with the data stored in an MySQL database and PHP to pull the data out, with
CSS to build the page and present it. At the same time, I would also like to have a
'printer friendly' link on each page that
Jeff,
My apologies then. Somehow your response never arrived. It is still best
to always "reply all" for things like this. You get the benefit of
hearing several people's perspectives, and you also potentially help
others who have the same question now or who may have it in the future
(and ch
I responded to this in a private email to you, and not on the forum... I
did respond. I will post here again so there is no question;
>I want to force it to use a cookie that points to a transparent SID on
>my system.
what I mean by this is it was my understanding when reading the sessions
do
I was able to solve the problem by using the "require_once " statement.
Thank You
-Original Message-
From: Paul Maine [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 21, 2002 10:23 AM
To: PHP PHP
Subject: [PHP] PHP "Cannot redeclare class" problem
When I call the function batch_de
The best IS EditPlus. Get it at www.download.com.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Bryan McLemore" <[EMAIL PROTECTED]> a écrit dans le message de news:
004901c26170$fc6fc510$[EMAIL PROTECTED]
Hi guys, just wondering if anyone could
http://www.ultraedit.com/
Bryan McLemore wrote:
>Hi guys, just wondering if anyone could recomend a good editor that is based on
>windows.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i have written
ini_set("session.name", "SID");
before, in page1.php. and i've added it on page2.php before session_start
and it works.
thanks..
"Murat Ö." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i tried but it didn't work.
> i wrote in page2.php:
>
i tried but it didn't work.
i wrote in page2.php:
and i was noticed: "Undefined index: isim in ."
but i have written $_SESSION['isim']='murat' in page1.php
"Sascha Cunz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Just use the session_start() in the
Just use the session_start() in the second page and they will be magically
there where you've put them in the first page.
Sascha
Am Samstag, 21. September 2002 17:01 schrieb Murat Ö.:
> hi,
>
> page1.php creates a session and its variables in it in successfully. the
> variables and values are
Newest gvim for windows acts in most cases just like any other editor, too.
You can mark text with the mouse, scroll over with the scrollbars etc. etc.
It even got a nice menu. This is the best you can get - and it does
everything.
I even switched from VC++'s IDE to gvim, now ;-)
Am Samstag,
There are many different states, in which an array would be empty. Can you
post the output of a "var_dump($array);" in that special case you want to
check?
In general:
1. the variable may not have been set:
if (!isset($myarray)) echo 'error';
2. the variable is set, but ain't an array:
On Sun, 22 Sep 2002 01:10, you wrote:
> consider there are categories and these have IDs like
> below:
> 1, 2, 4, 8, 16, 32, 64...
>
> if some data belongs to more than 1 category for
> exemple 4 and 32, its category ID will be 36, the sum
> of cat. IDs.
> i guess this is used widely in programmin
When I call the function batch_delayed_capture(see below), I issue the
"$this->delayed_capture($d);" statement. Both batch_delayed_capture and
delayed_capture are in the same include file. The statement works fine the
first time through the loop but gives the following error "Cannot redeclare
clas
how can i check if an array is currently empty , for instance i have a file
input field with an array name for multiple images, i need to check if there
was no file uploaded in that field name and ignore it in the loop
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
hi,
page1.php creates a session and its variables in it in successfully. the
variables and values are created like
$_SESSION['x']='abc'
page1.php sends the SID information to page2.php via GET method. how can i
access the those variables with SID information in page2.php?
thanks
--
PHP Ge
consider there are categories and these have IDs like
below:
1, 2, 4, 8, 16, 32, 64...
if some data belongs to more than 1 category for
exemple 4 and 32, its category ID will be 36, the sum
of cat. IDs.
i guess this is used widely in programming. so, how
can i resolve the original IDs. i mean wh
Sure you can, however,
1) u prob. want $_SESSION['name'] = $_POST['name'];
2) remember that if you are calling this within the scope of a function you
will have to use $GLOBALS to declare $name as a global before you utilise
session_register.
Todd.
> -Original Message-
> From: Randy Joh
You can get vi/vim for windows, without a doubt the best editor of all time
if you can be bothered learning the commands.
Todd.
> -Original Message-
> From: Bryan McLemore [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 21 September 2002 11:16 PM
> To: PHP GEN LIST
> Subject: [PHP] Editor
>
Testing post!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gd1 is limited to 256 colours. Use gd2.
On Sat, 21 Sep 2002, -=| Julien Bonastre |=- wrote:
> Hmm.. Interesting problem I seem to have stumbled upon
>
>
> I am running apache2.0.36 and php4.2.2 (i am using gd1.6.2)
>
> Now the catch is.. I just want to output a few diff image types directly to
I like textpad, because it will write files in a Unix friendly way, i.e. none of that
annoying ^M at the
end of lines! :-)
Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on
>windows. Thanks, Bryan
--
PHP General Mailing List (http://www
Hi guys, just wondering if anyone could recomend a good editor that is based on
windows. Thanks, Bryan
Thanks much, that made all the difference in the world.
The function would be get_magic_quotes_gpc()
Chris Shiflett wrote:
> Gerard,
>
> The most likely reason is a php.ini configuration called magic_quotes.
> When enabled, PHP will automatically add slashes to single and double
> quotes, as w
Hmm.. Interesting problem I seem to have stumbled upon
I am running apache2.0.36 and php4.2.2 (i am using gd1.6.2)
Now the catch is.. I just want to output a few diff image types directly to browser..
I can do JPEG's fine.. BMP's don't work because of using a older gdlib.. that's no big
deal
php-general Digest 21 Sep 2002 11:59:56 - Issue 1598
Topics (messages 117067 through 117086):
Re: java in php4 on debian testing distribution?
117067 by: Monique Y. Herman
117069 by: Sascha Cunz
Re: HTML 2 TEXT
117068 by: Sascha Cunz
Re: my i ramble for a while?
I figured it out...was the single quotes
Disregard
Chad Winger <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Simple question for the newbie...I hope...
>
> The following line is returning an error, and I can't figure out what and
> how to comment out
"Randy Johnson" <[EMAIL PROTECTED]> wrote in message
000901c2613d$e9223e30$c100a8c0@rjmarket">news:000901c2613d$e9223e30$c100a8c0@rjmarket...
> how could i take all the variables in $_POST[""] and move them to
> $_SESSION[""]?
If I understand correct, you will want something like this:
And no
Simple question for the newbie...I hope...
The following line is returning an error, and I can't figure out what and
how to comment out. I assumed I had to \ the parentheses...but it doesnt
work... any suggestion?
echo ''."\n
";
Thanks
-Tree
--
PHP General Mailing List (http://www.php.net/
Meltem Demirkus wrote:
>?Because when I tried to use them like this:
>
>onSubmit="checkemail(email.value);return false" >
>
>and when I click submit.. javascript is working but it is not going to the
>sign_up_ page ..How can I manage it?..
>
Or simply leave off the "return false" and in your
Hello,
I created an UDP socket using $sock=socket_create(AF_INET,SOCK_DGRAM,SOL_UDP)
successfully and then used socket_bind($sock,$address,$port), up to there, no
problems, but when I try to $buff=socket_read($sock,3) it just stays there doing
nothing forever.
What could be the problem?
What
77 matches
Mail list logo