Jason Wong wrote:
> On Monday 15 July 2002 03:55, Tim Luoma wrote:
>
>>Jason Wong wrote:
>>
>>>This list gets at least one question a day on this subject ...
>>
>>And there will be a lot more as people scan the web for example scripts
>>and find ones that assume 'register_globals' is set to on.
>
Hi all,
has anybody ever seen this? And knows what it means?
thx.
You have an error in your SQL syntax near 's self-supporting ribbed form was probably
not strong enough to render the desig' at line 1
regards Wilbert
-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haa
try add_slashes($string) before inserting into the database, or turn on
magic quotes in php.ini
justin french
on 15/07/02 5:57 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote:
> Hi all,
>
>
> has anybody ever seen this? And knows what it means?
> thx.
>
> You have an error in your SQL syntax
This works OK with creating buttons but is not what I want.
POST/INPUT
myform
list.php
post
submit
insert
php-general Digest 15 Jul 2002 08:52:25 - Issue 1465
Topics (messages 107636 through 107680):
mysql LIMIT
107636 by: Alexander Ross
107638 by: Robert Cummings
107640 by: David Freeman
Re: REminder APllication
107637 by: The Doctor
retrieving random data fro
What is a good php-based forum?
I would have used vBulletin but my group a non-profit so we obviously can't
afford it.
Part of what I require is users to be stored in a db table using md5() or
anouther function. What I would do is expand the table with more user info
for use with my whole site.
ðÒÉ×ÅÔ!
Saci wrote:
> Who cares about privacy on my own company Intranet ?
Anyone not willing to show where they has been surfing on the net to any
unexperienced bycomer. Youu may read the history, but you just have *no*
warranty that it will not be cleared at runtime.
Since you have control
ðÒÉ×ÅÔ!
I just got this. Not sure whether it's the stupidest commercial I ever
seen or a new virus (as you see in the headers it stepped thru the check
with no warnings), or just a joke.
I'd say it's a joke, as nobody would add anything clearly stating itself
as "decrypt-password.exe", but I
Justin French wrote:
> try add_slashes($string) before inserting into the database, or turn on
> magic quotes in php.ini
Or
Mysql_Escape_String()
http://www.php.net/manual/en/function.mysql-escape-string.php
Or
Mysql_Real_Escape_String()
http://www.php.net/manual/en/function.mysql-real-escape-
phpbb is a good forum or phorum
both are free to use :)
i hope you can use one of those ;)
JJ Harrison\ writes:
> What is a good php-based forum?
>
> I would have used vBulletin but my group a non-profit so we obviously can't
> afford it.
>
> Part of what I require is users to be stor
>What is a good php-based forum?
>
http://phpnuke.org/
http://phpwebsite.appstate.edu/
A bit more than just a forum, you could use them to build your complete
site...
>What I would do is expand the table with more user info
>for use with my whole site.
>
I would consider building your
the function you are looking for is called nl2br(). Translated it means
'new line to .' when you pull you text from your database run it
through this and it will be correctly formatted for HTML to read correctly.
See php documentation for further discussion and examples.
blue
"César aracena"
Hi
I would like to collect data from snmpget and log it.
Anyone have a idea how to do this?
// maas, Sweden
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have two questions:
what is the meaning of (int type) return value of dio_seek() function in PHP ?
second question:
how can I get the position in file, pointed by file descriptor (dio_*() )?
In C/C++ language, this is implemented in ftell function.
Lep pozdrav,
Sašo
--
PHP General Ma
The suggestion by Mike seems feasible... However if you are working on a
subsription form and are expecting the application to be used by alot
of people, why don't you store the info supplied by the user to a
Database as opposed to mailing it to someones box and having
a whole lot of stuff in you
"Andy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> I am wondering if there is a possiblity that some browsers like IE 5.1 do
> not accespt cookies by default. I am working on a session management
system
Linux's Konqueror always asks if a user
Please disregard the previous posting I made. I figured it
out.
On Mon, Jul 15, 2002 at 10:52:23AM +0200, William S. wrote:
> This works OK with creating buttons but is not what I want.
> POST/INPUT
>
>
>
>
>
> myform
--
Bill
Amsterd
hello everybody,
i'm trying to use php 4.2.1 with apache 2.0.39. i compiled php as dso, with
gd support
(libjpeg6b, libpng-1.2.3 , gdlib-1.8.4, freetype-2.1.2)
compiling and installation of the above packages went fine, but when i start
apache, i get the following message from the apache error lo
Hi All!
Is there a way to build up the connection to a MSSQL Database if the
Authentification is set to Windows-Authentification and not
SQL-Authentification?
Greetings,
Gabor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All!
Is there a way to build up the connection to a MSSQL Database if the
Authentification is set to Windows-Authentification and not
SQL-Authentification?
Greetings,
Gabor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> When you say,
> Order by RAND()
> I would think the "Order by" construct expects a column name.
> In your case, it gets a decimal value.
> How does "Order by" treat decimal values?
> Oh, I just checked the manual:
> In MySQL Version 3.23, you can, however, do: SELECT * FROM
> table_n
Also see wordwrap( ).
"Blue Presley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the function you are looking for is called nl2br(). Translated it means
> 'new line to .' when you pull you text from your database run it
> through this and it will be corr
I know that the PHP World Conference is coming up in Germany in November,
but is anyone aware of any conferences in the US before the end of 2002? I
have some training budget that must be spent or lost.
Thanks!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
I am trying to do a simple fopen("http://www.weather.com/index.html";, "r");
For some reason I cannot Open any URL's after trying several.
I get the following error
Warning: stat failed for Resource id #1 (errno=2 - No such file or
directory)
I checked my php.ini to make sure I set the fopen
Invision Board is the best PHP based BB that I've seen so far. If you're familiar
with Ikonboard written in Perl, this is the same thing optimized for PHP. Not to
mention that the installation is a BREEZE! You can get a copy FREE at
http://www.invisionboard.com, and you can check out a sampl
Hi all!
I went after my problem with the NT authentification and I found out,
that if you want to make a NT-based Authentification (f.ex for an
ODBC-Connection) the I_USR will be seen as the actual user...
I granted then rights to the I_USR in the DB, but this way, I cannot
distinguish which us
Hi guys,
I just found a site where they have integrated a usenet forum into their own
forum. I am wondering how this is technicaly done? The postings seem to be
pretty up to date ( I did compare them with the usenet ones)
Here is the link:
http://britishexpats.com/forums/forumdisplay.php?forumid=
Alberto Serra wrote:
> !
>
> I just got this. Not sure whether it's the stupidest commercial I ever
> seen or a new virus (as you
I got one too. I guess we have an email harvester? As I'm on linux I
could not try the executable anyway but I would not execute it if I was
on windows either.
C
I've had a hunt through the mail archives but can't find a definite
answer:
Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
production environment?
I guess the diversity of experiences described in the archives probably
means no, but what is the current opinion? Some
On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
> I just found a site where they have integrated a usenet forum into their own
> forum. I am wondering how this is technicaly done? The postings seem to be
> pretty up to date ( I did compare them with the usenet ones)
> Here is the link:
> http:
In a production environment: no
for fun: yes
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 16 Jul 2002 09:13:41 +0930 (CST)
Michael Hall <[EMAIL PROTECTED]> wrote:
>
> I've had a hunt through the mail archives but can't find a definite
> answer:
Here is a example using snmprealwalk() to make a simple dump to a
textfile.
The script filters out some things that atleast I don't need.
To get more verbose output comment out "$walk = snmp_nice_array($walk);"
and/or change "snmp_set_quick_print(1);" to "snmp_set_quick_print(0);".
Example with
Does anyone know the name of any the mweb servers
in South Africa... I am trying to test my a Php Login
Script from a Computer there and I am trying to use
someone elses account with an mweb subscription
to test my Script from a remote area...
Kondwani
--
PHP General Mailing List (http://www
I don't know, but it sure looks nice!
Dan
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 6:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] integrating usenet into http? how is this done???
Hi guys,
I just found a site where they have integrated a usenet
On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
> On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
>> Has anybody an idea how they do this.
It would be relatively straight-forward to have a PHP script run periodically,
read from an NNTP server and add new posts into the forum databa
I received it to, but it *did* trigger my virus warning.
Just deleted and moved on : )
Bret
- Original Message -
From: "Alberto Serra" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:52 AM
Subject: [PHP] Tales of brave Ulysses?
> ðÒÉ×ÅÔ!
>
> I just
Hi
I use this line
fputs ($sysname_log, "$time - SystemName: $sysname\n");
I would like to get a log file, and everytime I refresh this page it will
make a new line and write
$the local time - SystemName: $sysname
So after a while it will look like this
$the local time - SystemName: $sysname
On 15 Jul 2002 at 14:55, Andy wrote:
> I just found a site where they have integrated a usenet forum into
> their own forum. I am wondering how this is technicaly done? The
> postings seem to be pretty up to date ( I did compare them with the
> usenet ones) Here is the link:
> Has anybody an ide
Is there any way I can set up a php script so that it will detect the
login of the current Netware user on a PC and use that user's
information to customize a greeting for the user?
Thanks,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
On Mon, 15 Jul 2002, MAAS wrote:
Try adding a \r.
fputs ($sysname_log, "$time - SystemName: $sysname\r\n");
--
---
Greg Donald
http://destiney.com/public.key
--
> Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
> production environment?
Nope
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
I've seen quite a few programs that seem to greatly favor Object Orienting Programming
(OOP) in their code. I don't mean to start a holy war or anything of the sort, but as
a burgeoning PHP developer, I would like the opinions of my peers.
So how about it, ladies and gents? Tell me
Why not try it for yourself? If it seems helpful then use it, if not then
don't.
Henning Sittler
www.inscriber.com
-Original Message-
From: Martin Clifford [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Alley-OOP! ... or not?
[snip]
I've seen quite a few programs that seem to greatly favor Object Orienting
Programming (OOP) in their code. I don't mean to start a holy war or
anything of the sort, but as a burgeoning PHP developer, I would like the
opinions of my peers.
So how about it, ladies and gents? Tell me about
> It would be relatively straight-forward to have a PHP script run
periodically,
> read from an NNTP server ..
ok sounds logical. Don't have any experiance on doing anything nntp related
in php.
There are some questions I am wondering about:
- do I have to compile php with a special flag to do
Building off of what Jay said...
I'm a hardcore OOP developer but agree that you must use it judiciously.
Used in the correct way it makes maintaining/extending your applications
much easier. There are times though when you don't want it.
I usually find myself coding pages that have PHP in them
Am I the only one who seems to be irritated by the tremendous amount
of settings you have to do on the IIS Server if testing a PHP Script...
I am testing a Self modifying Script runs perfectly on Apache 1.3 /PHP4.2.1
However it is meant to sick Chunks of code at the beginning of my File...
Hence
Can anyone recommend a good and cheap shopping cart
and credit card processing combo.
Based on PHP of course.
Thanks
__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--
PHP General Mailing List (http://www.ph
Not sure if this helps, but if you turn on NT-Authentication in IIS,
then you'll have a variable $_SERVER['LOGGED_ON'] or something similar
that'll hold the username of the person that's logged on.
Check a phpinfo() page in a NT-Authenticated directory to see which
variables are available.
---Jo
Hi all
(easy one - I think)
I need to replace all instances of multiple spaces in a string with a
single space.
I tries the following:
$ArticleText = str_replace(' ', ' ', $ArticleText);
but if I have four spaces, I am left with two - this is wrong...
I am sure that I am really looking fo
Hellorgh !!
$ArticleText = ereg_replace("[[:space:]].*", " ", $ArticleText);
Should be fine... But AFAIK, using preg_replace should be faster, but I
don't know the exact syntax to solve your probem :-(
--
Nayco
- Original Message -
From: David Russell <[EMAIL PROTECTED]>
To: php-general
One of the threads above Speak of PHP 4.3 I was not
aware that it existed... Is it still in its Testing stages?
How come its not on the PHP Website? Are there any
great modifications to it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 16 July 2002 00:15, David Russell wrote:
> Hi all
>
> (easy one - I think)
>
> I need to replace all instances of multiple spaces in a string with a
> single space.
>
> I tries the following:
>$ArticleText = str_replace(' ', ' ', $ArticleText);
> but if I have four spaces, I am lef
Please don't contact me privately unless you want to hire me.
On Monday, July 15, 2002, 5:13:35 PM, "andy" wrote:
> ok sounds logical. Don't have any experiance on doing anything nntp related
> in php.
>
> There are some questions I am wondering about:
>
> - do I have to compile php with a specia
On Monday, July 15, 2002, 6:00:44 PM, I wrote:
> You can do it 2 ways: either using the sockets or with the IMAP functions. I'm
> not too sure about sockets, but the IMAP function require the IMAP module to be
> loaded.
D'oh, forgot the link: http://www.php.net/manual/en/ref.imap.php
--
Stuart
On Mon, 15 Jul 2002, Kondwani Spike Mkandawire wrote:
>Am I the only one who seems to be irritated by the tremendous amount
>of settings you have to do on the IIS Server if testing a PHP Script...
You are not alone, I am irritated by IIS everytime I am forced develop
for it.
>I am testing a Se
hi,
i've run in to a strange problem,
i'm trying to output a pdf file from disk to the browser.
this is fine under netscape but IE has problems.
consider the following code:
---
--
the above code runs fine on
I need someone to help me compile the c-client library for IMAP and
re-compile PHP to support it, ASAP.
Please contact me with your background and rate.
Thanks,
Jeff
__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.ya
I'm making a web site with a friend. For now, we're stuck on a free
host with no cron. We need it, and I tried www.webcron.org, but it
seems to be down. Does anyone here know of similar services? Thanks
for any help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
On Monday, July 15, 2002, 6:49:06 PM, Leif K-Brooks wrote:
> I'm making a web site with a friend. For now, we're stuck on a free
> host with no cron. We need it, and I tried www.webcron.org, but it
> seems to be down. Does anyone here know of similar services? Thanks
> for any help.
I don't
You could have found the answer to this question right on the front page
of php.net. 4.3.x is indeed the current development version.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 15 Jul 2002 14:00:26 -0230
"Kondwani Spike Mkandawire" <[EMAIL PROTE
I want to update the most recent record (based on the timestamp in field
posted) where the parent field == a specified value (in a table called
header).
I tried the following mysql statement:
"UPDATE header WHERE parent = '$this->postid' ORDER by posted SET
parent='$this->parent' LIMIT1";
but a
I am trying to get PHP 4.2.1 installed on Solaris 8 with apache 1.3.22.
It installed ok, but when I restart apache I get the follow error in my
error_log file.
/usr/local/apache/logs/error_log
[Thu Jul 11 13:13:11 2002] [notice] Apache/1.3.22 (Unix) PHP/4.2.1
configured -- resuming normal operati
not only that, but you seem to be missing any SET field = value to cause
updates to occur. I suspect the reason that the ORDER BY is rejected is be
cause the database wants to use an index determined from your where clause
to optimize the update process. Keep in mind that no rows are returned to
On Mon, 15 Jul 2002, Alexander Ross wrote:
>I want to update the most recent record (based on the timestamp in field
>posted) where the parent field == a specified value (in a table called
>header).
>
>I tried the following mysql statement:
>
>"UPDATE header WHERE parent = '$this->postid' ORDER b
Oops, looks like I missed your Set after the ORDER BY. I've never seen it
there, usually I see it immediately after the update. Seem to me some
things in SQL are positional, but could be wrong here.
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont
I would rewrite the query as:
"UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)"
I would think this to work, though I don't have the facilities to test it, and have
never needed to do a query such as this. In theory, it should update ONLY the row
where the maximum valu
If you could retrieve the max(posted) prior to doing the update you could;
SELECT max(posted) from header
WHERE parent = '$this->postid'
and substitute the value in the following query;
Update header SET parent='$this->parent'
WHERE parent = '$this->postid'
AND posted = $retrieved_posted
A sub
Shouldn't this be
"UPDATE header SET parent='$this->parent' WHERE posted = max(posted)"
Otherwise the max(posted) = max(posted) is true for all records (therefore
all records get updated)
Andrew
- Original Message -
From: "Martin Clifford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <
You're right Andrew, got a little ahead of myself :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Andrew Brampton" <[EMAIL PROTECTED]> 07/15/02 03:23PM >>>
Shouldn't this be
"UPDATE header SET parent='$this->parent' WHE
I like this form better but it's not clear to me if this would only update
the row for parent='$this->parent' if it were the last row "posted" to the
table. Depends on whether the max function in the where clause is bound to
the max in the table or the max in the sequence set (I tend to think it
[snip]
No, it's not a dating service :)
Want to meet other PHP developers in your area? Check out:
http://php.meetup.com/
Pretty nifty idea... especially given the lack of user groups in the U.S.
I thought for others who had not seen this I would post this. There is
probably already a user
Yes, everyone please join up! I would love to find more developers in the Maryland
area, and I'm sure others would in their areas as well! Let's do the great american
get togeth... err... the great php get together!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: h
Can anyone recommend a good and cheap shopping cart
and credit card processing combo.
Based on PHP of course.
Thanks
__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--- Begin Message ---
Can anyone recommen
Hi everyone.
Sorry for the trivial question.
I want insert a .html inside of one .php file but without and
tags.
I built a routine (shown it down) it's running OK but show me the title
() of my html.
somebody can help with a routine a little me more effective than mine?
Thanks in advance.
www.x-cart.com looks like a good and inexpensive
option -
I will be implementing it soon, but I have not tried
it yet.
Anyone used x-cart?
Thanks,
olinux
--- Daniel Guerrier <[EMAIL PROTECTED]> wrote:
>
> Can anyone recommend a good and cheap shopping cart
> and credit card processing combo
You might check out
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Daniel Guerrier [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 12:5
> From: gilles [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 1:19 PM
> Subject: [PHP] outputting a pdf file to IE browser? POST/GET
> method bug or not?
> error_reporting(E_ALL);
>
> session_start();
> if (!isset($_SESSION['download'])) {
> @$_SESSION['download'] = $_POST['down
This isn't any more effective but it is fewer lines of code..
$file = implode('', file("file.html"));
preg_match('/(.*)<\/title>/', $result);
$title = $result[1];
-Kevin
- Original Message -
From: "Juan Pablo Aqueveque" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15,
Hi!
I keep getting that evil little character ... ^k from mac users (pre X)
and I need to remove it. Does anyone know how to remove?
This site has that character as a vertical tab. This character is what
is used in MS Excel when people hit return inside a cell. If they copy
and paste that into
Sorry.. I screwed up my preg_match string. It should have $file as the
second parameter and also included an 'i' after the closing delimeter for a
case-insensitive search.
preg_match('/(.*)<\/title>/i', $file, $result);
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[
Just try eregi_replace("\^k[.+]", "", $container);
Regular expressions are the MASTERS of the INTARWEB! :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Jimmy Brake <[EMAIL PROTECTED]> 07/15/02 04:32PM >>>
Hi!
I keep ge
Hi,
Can anyone tell me steps for installing MYSQL on
windows ??
-Varsha
__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
We are currently looking to put a very sizable document on a website so
that it will be easily. The document is currently maintained by a
single user in a MS Word format. Ideally it would be very nice if the
index would take the user to the index of the appropriate section of the
document, which
Have a look at
http://www.mysql.com/doc/W/i/Windows_installation.html
Cheers
Lee.
- Original Message -
From: "Varsha Agarwal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 10:12 PM
Subject: [PHP] Installing MYSQL on Windows
> Hi,
> Can anyone tell me steps
First, thanks to the people who've helped me so far.
I'm a UI designer who's suddenly found himself responsible for a very large
website that integrates services from no less than four different providers,
and I've been dumped into learning PHP on my own under a heavy deadline.
Anyway, I'm catch
I would recommend applying a simple templating system to the file. Anything
that needs to be extracted out of the page for navigation purposes will be
enclosed in special characters such as a chapter title.. [:chapter =
"CHAPTER 2: Beating a Dead Horse":]. A very simple script parses the file
an
On Fri, Jul 12, 2002 at 11:02:54PM +0100, Emile Axelrad wrote:
> Hello - My problem is as follows (I am trying to migrate from a mssql
> server to a mysql server)
OH!
> The data in the MSSQL table is: Æã
>
> IF I call this PHP code from my browser (IE6) it results in the
> following output: Æ
On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote:
>
> Can anyone tell me steps for installing MYSQL on windows ??
Very simple, step by step, instructions:
http://www.analysisandsolutions.com/code/mybasic.htm
--Dan
--
PHP classes that make web design easier
Hello all,
I am very new to PHP and I have added some minor PHP to my website. I
would like to make a PHP calander to keep track of things going on. Could
someone tell me how I can get the first day of every month.
For Example:
01 Jul 2002 was a Monday.
01 Mar 2002 will be a Thursday
I nee
$today = date("w"); // $today will result in '1'
$today = date("D"); // $today will result in 'Mon'
$today = date("l"); // $today will result in 'Monday'
Now if you wanted to feed the script something like this:
$string = "01 Jul 2002";
$today = date("l",strtotime($string));
This will result in
I dont think Apache 2 or php 4.3.x are meant for production boxes..
My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test box
is 4.2.1 but thats ok)
Michael Hall wrote:
>I've had a hunt through the mail archives but can't find a definite
>answer:
>
>Is Apache 2.0.x and PHP 4.2.x/
Ok your way works and thanks for the help but still struggling a little bit
here is what I have.
$year = date (Y); //This gets me the current year 2002
$month = date (m); //This gets me the current month 07
$day= 1; //always looking for the 1st day of the month
OK thought I should share in case any needs it but got it to work. Here is
what it looks like and thanks to Richard Baskett for the help.
$yr= date (Y);
$mnth = date (F);
$dy= 1;
$string = "$dy $mnth $yr";
$today = date("w",strtotime($string));
Thanks for the help
Attila
http://www.glorynaspira
I've been trying to get a simple php page to produce any output through a
Jigsaw server.
I've got past the problem of cgi.redirect and now my server launches php and
returns a "page" but it's blank. There is no evidence of my html or php
code having been seen by the server. I've run the php scr
-Original Message-
From: Analysis & Solutions
Sent: Friday, July 12, 2002 9:57 AM
To: PHP List
Subject: Re: [PHP] Re: Editing files by line
>Unfortunately, if a file is opened for appending via fopen('name', 'a'),
>the manual says the data is put at the end of the file regardless of using
On Mon, Jul 15, 2002 at 08:46:14PM -0400, Onaje Johnston wrote:
>
> I've written a script that edits a specific line in a text file and saves
> the changes to the file for that specific line. I've noticed though that I
> can't edit the first line in the file
Without seeing the script, it'd be har
> > - how is it possible to run a php script periodicly?
>
> Depends on your OS. If you're on Linux or similar then use cron. If
you're
> on
> Windows NT/2k, use AT. If you're on Windows 9x IIRC there is a
scheduler
> in the
> control panel.
AT seemed flaky when I tried to use it. You can use th
> Hi,
> Can anyone tell me steps for installing MYSQL on
> windows ??
Umm...download, unzip, run the setup program. How hard is that?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could use mktime() with date, too...
$first_day = date("w",mktime(0,0,1,$month,1,$year));
Set your $month and $year accordingly.
---John Holmes...
> -Original Message-
> From: Attila [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 8:07 PM
> To: [EMAIL PROTECTED]
> Subject:
1 - 100 of 137 matches
Mail list logo