On Wed, 2005-03-02 at 01:55, William Stokes wrote:
Hello,
Is it possible to force one automatic refresh browser when user enters to a
webpage? If so, how?
javascript timer and a reload in a function called vi body onLoad wouldd
do it I guess. if you are only going to do it once you need
On Tue, 2005-03-01 at 03:05, Cajus Pollmeier wrote:
Am Dienstag, 1. März 2005 09:14 schrieb [EMAIL PROTECTED]:
You can send a piece of HTML defining some little thing like a div layer
with your please wait, bla bla bla
So the visitor can read something.
When the process is finished,
On Tue, 2005-03-01 at 08:43, Elizabeth Lawrence wrote:
Thanks, Dan. I copied your code exactly and posted it here:
http://www.tidefans.com/test.php I pasted a large part of O'Henry's Gift of
the Magi into the textarea, and it gets repeated, as before.
Thanks for any help,
Elizabeth
There
On Tue, 2005-03-01 at 10:19, Bret Hughes wrote:
On Tue, 2005-03-01 at 08:43, Elizabeth Lawrence wrote:
Thanks, Dan. I copied your code exactly and posted it here:
http://www.tidefans.com/test.php I pasted a large part of O'Henry's Gift of
the Magi into the textarea, and it gets repeated
On Tue, 2005-03-01 at 11:44, Sascha Kaufmann wrote:
$birthday = $day.'.'.$month.'.'.$year;
why wouldn't
$birthday = $day.$month.$year;
work as well.
Bret
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2005-03-02 at 04:45, Ryan A wrote:
Hey all,
I have a client who has a computer store, now he wants to put all his stuff
in one site.
He does not want to do any selling from his site, but just list all his
items.
I don't have a solution but I just wanted to say that the very first
On Mon, 2005-02-28 at 11:31, Gerben wrote:
Hi,
I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented
in php. This so you don't have to buy a MySQL database.
I'm currently trying to put something together, but this would be a waste of
time if it already exists.
On Mon, 2005-02-28 at 13:35, Jochem Maas wrote:
Bret Hughes wrote:
Does MySQL cost money? I thought it was open source and available at no
cost.
true its free, but you can also run a comcercial version which gives you
indemnity and support and stuff Google for instance are known
On Thu, 2005-02-24 at 04:02, Jacques wrote:
How can I ensure that a user is prevented from creating a second profile
after he has registered a second time with different registration details?
I thought of capturing his IP Address and checking this value against my
users table in my
On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote:
that. A little javascript goes a long way in these sort of situations
You don't want to do that will javascript. I, for one, surf with
javascript turned off. The malicious script kiddie, I would presume,
also would be very happy to send you
On Thu, 2005-02-24 at 06:32, Srinadh Sannidhanam wrote:
Hi,
In my application I need to allow the user to upload a file with size more
than 2M.
I came to know that by default php will allow only 2M. How can change it.
I changed, that in php.ini file and restarted apache. but still not
On Wed, 2005-02-23 at 06:49, [EMAIL PROTECTED] wrote:
Hi
When uploading files using a type=file in a form, if a file is uploaded with
a single quote the file gets truncated to whatever is after the quote
eg.
blah'sblah.txt
will be uploaded as
sblah.txt
Is this a magic quotes issue?
On Wed, 2005-02-23 at 16:40, [EMAIL PROTECTED] wrote:
Thanks Bret
I have tried turning all reporting on - error_reporting(E_ALL);
but that doesn't reveal anything significant
I have looked in the logs but there is nothing significant there.
Because the type is file in the form it is not
On Wed, 2005-02-23 at 18:45, [EMAIL PROTECTED] wrote:
Hi Brett
My form is effectively identical to yours
form enctype=multipart/form-data action=/uploadfiles.php method=post
bUpload a file:/b input name=userfile type=file size=100
No the first part of the file name is just dropped and the
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
hi all,
i m new to this group ...now i want to learn php.
i want all u r guidence to utilise this group...
thanks in advance
dhanas
I would start by looking at and dare I say reading the manual at
php.net. Then surf around for a beginners
On Tue, 2005-02-22 at 07:32, Bryan Dina wrote:
I am having problems making proper insert queries against a MS SQL box
when using a Linux server. A little background info, I have had this
working correctly for many months. I am running Fedora Core 1, have
compiled php 5.0.3 using the FreeTDS
On Tue, 2005-02-22 at 09:59, OOzy Pal wrote:
Dears
I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!}
and {!ABC!} with XYZ. I tried the following but no help. Can anyone
help?
$this-template=str_replace({!*!},XYZ,$this-template);
Thank you
IIRC str_replace
On Tue, 2005-02-22 at 10:14, [EMAIL PROTECTED] wrote:
Howdy,
Because of some latency issues in the display of dynamically created PNG
images, I've been trying to separate the image-creation process from the
image-display process. Essentially, I'm trying to run a cron job that
writes a
On Mon, 2005-02-21 at 06:52, Stanislav Kuhn wrote:
Hi guys,
I've got a processing script which takes long time to finish. The script
includes several others and is ran from command line(by cron). I've sent
phpinfo from inside of processing to my email, here is the important part
On Fri, 2005-02-18 at 01:47, David Freedman wrote:
I am trying my FIRST php file with an attempt to connect
to my mySql server.
?php
// Connecting, selecting database
$link = mysql_connect('localhost', 'host', 'my_passqword')
or die('Could not connect: ' . mysql_error());
echo
On Fri, 2005-02-18 at 09:12, M. Sokolewicz wrote:
Binoy AV wrote:
Thanks Jay.
Could anybody please tell me how to read the data from an excel
file ? It should work independent of the operating system. I don't want
the csv format.
excel files aren't independent of the OS, csv
On Thu, 2005-02-17 at 23:21, Jacques wrote:
How can I determine which users have signed in and are still on-line during
the first minute after they have signed in? My sql statement currently
reads:
SELECT * FROM tblusers WHERE usignedin = yes AND utimesignedin = (time() -
60)
Hoe does
On Thu, 2005-02-17 at 18:24, Sebastian wrote:
Hello,
im working on an article system and looking to avoid running three queries.
example, i have this query:
SELECT id,title FROM articles WHERE id=$_GET[id]
now say $_GET[id] = 5
I would like to get the previous id 4 and the next id 6
On Thu, 2005-02-17 at 22:02, Jason Petersen wrote:
On 17 Feb 2005 19:28:18 -0600, Bret Hughes [EMAIL PROTECTED] wrote:
On Thu, 2005-02-17 at 18:24, Sebastian wrote:
Hello,
im working on an article system and looking to avoid running three
queries.
example, i have this query
On Fri, 2005-02-18 at 00:45, Tim Burgan wrote:
Hello,
On my page, all my content is updated via a textarea online.
If I include PHP code embeded with my HTML in the textarea, the database
converts it to plain text, instead of code that can be used. It doesn't
convert to lt; though,
On Thu, 2005-02-17 at 23:50, K Karthik wrote:
i have got string as /home/karthik/welcome.php/view.php
i just need view.php how shall i remove rest of the string.
please do help me.i am new to php.
-thanks,
karthik
Lets see if you can learn to fish.
Since you are new you should learn that
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have to
hunt down logic errors due to mistyping a variable name.
There is, in PHP5: E_STRICT. From the manual
(http://php.net/manual
On Wed, 2005-02-16 at 10:34, Richard Lynch wrote:
Bret Hughes wrote:
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have
to
hunt down logic errors due to mistyping a variable
On Wed, 2005-02-16 at 10:17, Jason Wong wrote:
On Wednesday 16 February 2005 23:30, Ugo Bellavance wrote:
If the needed permissions for standard PHP files and directories
are 'r' on files and 'r-x' on directories, how can I set my umask so
that files and directories are always created
On Wed, 2005-02-16 at 21:31, Kevin Javia wrote:
I am experimenting on my site and I want to make it password protected like
www.realsolution.com.
If any one enters correct user name and password, only then they will be
able to enter into my site.
How can I do that in PHP?
Any ideas?
On Wed, 2005-02-16 at 18:36, Ian Johnson wrote:
I am trying to write a function which will read a string of bytes from a
binary file and convert 8 byte sequences to Float type data. I've been
through the manual and can find nothing but think I must be missing
something. It can't be that
On Wed, 2005-02-16 at 19:07, b1nary Developement Team wrote:
Hi there guys... First time caller here ;).
I'm currently developing a content management system. One of it's
features is that it's going to be completely standards compliant (XHTML
1.1).
I'm having some troubles however, and
On Wed, 2005-02-16 at 23:11, Dan Phiffer wrote:
NathanielGuy#21 wrote:
Error thrown
--
Parse error: parse error, unexpected T_STRING in
/home/blacknut/public_html/picserv/includes/gallery.class on line 52
--
For what it's worth, I'm able to execute the code without parse errors
On Tue, 2005-02-15 at 14:00, Richard Lynch wrote:
Matt M. wrote:
I have a database that contains encrypted data using Mysql function
ENCODE(). Certain users will be allowed to view this data and I will
allow
them to download a CSV file contain the decrypted data using the Mysql
DECODE()
On Tue, 2005-02-15 at 17:00, dan wrote:
Matt M. wrote:
Any feedback will be appreciated.
why reinvent the wheel?
take a look at:
http://pear.php.net/package/Html_quickform
To the people who want to truly understand how the system works, the
wheel, as it stands, is
On Tue, 2005-02-15 at 17:40, mario wrote:
Hi,
thanks, but that seems to be ok:
SQL result
Host: 127.0.0.1
Database :
Generation Time: Feb 15, 2005 at 11:36 PM
Generated by: phpMyAdmin 2.5.7-pl1 / MySQL 3.23.58
SQL-query: SHOW VARIABLES LIKE 'character_set%';
Rows: 2
On Tue, 2005-02-15 at 16:22, M. Sokolewicz wrote:
Chris.
that's a different issue.
There are always at least 2 things you should do with your (expected) input:
1 - check if it *exists* (isset)
2 - check the validity (input-validation)
for step #2 empty is very commonly used, and also a
On Sat, 2005-01-29 at 08:58, Michael Sims wrote:
[EMAIL PROTECTED] wrote:
OK, this is off-topic like every other regex help post, but I know
some of you enjoy these puzzles :)
This isn't an exam question, is it? ;)
I need a validation regex that will pass a string. The string can
be
On Fri, 2005-01-28 at 14:50, Marek wrote:
php5 class {
const _SOMETHING_ = 'test';
private $abc=_SOMETHING_; // fails, well actually anything fails
similar to this.
var $test=$test2;// also fails
So since I can not use dynamic var assignment within
On Tue, 2005-01-25 at 11:15, Rory Browne wrote:
P.S. An addition to the above, a reminder that you have to CC to
php-general@lists.php.net, for responses to be sent to the list might
be a good idea. I've lost count of how many times I've forgotten to do
this, including this time(sorry Jay),
On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote:
Hey,
I need a particular type log in script. I'm not sure how to do it or
where I could find a tutorial that would help me, so I'll describe what I
need
and then maybe someone could tell me what kind of script I need (sessions or
On Tue, 2005-01-25 at 17:29, Bruce Douglas wrote:
so...
you're saying that 7.9 (repeating) is equal to 8.0
i say prove it.. as i recall the numbers might be for all practical purposes
the same, they are in fact vastly different...
so, prove your assertion...
-bruce
Check
On Tue, 2005-01-25 at 07:53, Joey wrote:
I'm not too good with classes, in the below class I can get the hit counter
to write to the hit counter file, but I can't get it to write the log file,
I know security is done correctly on the file because it's the same as the
counter log file, but I
On Mon, 2005-01-24 at 11:03, Ben Edwards wrote:
On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
String to Date Function
return date stringToDate( str Date, str Format )
e.g. $todayDt = stringToDate(
On Mon, 2005-01-24 at 14:07, Mikey wrote:
*PLEASE NOTE*
I know that if I spent time on it, I would be able to do it, but I have
A very close deadline and if anyone else has been through this I would
*really* appreciate the help...
Are you using MySQL? If so you can start with the DATE_ADD
On Fri, 2005-01-21 at 10:12, Jason wrote:
Simple functions to check fix if necessary invalid formating of a MAC
address... I seem to be having problems with the global variable $mac
not being returned from the fix_mac() function. Any help is appreciated.
?php
/*
* ex.
On Fri, 2005-01-21 at 17:52, Jason Wong wrote:
On Saturday 22 January 2005 07:36, Scott DeMers wrote:
From the function page on php.net (
http://us4.php.net/manual/en/function.nl2br.php ):
Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions
before 4.0.5 will return
On Thu, 2005-01-20 at 11:59, Richard Lynch wrote:
Tim Boring wrote:
Hello! I'm having an odd regex problem. Here's a summary of what I'm
trying to accomplish:
switch ($line)
{
case ($total_counter = 5):
break;
case preg_match(/^\W+/, $line):
On Thu, 2005-01-20 at 12:43, Jason Wong wrote:
On Friday 21 January 2005 02:16, Tim Boring wrote:
It's perfectly legit to use expressions. Now perhaps there is something
wrong with the regex I'm trying to use, but using a regex in and of
itself is legal.
On Thu, 2005-01-20 at 13:21, Tim Boring wrote:
On Thu, 2005-01-20 at 13:41, Jason Wong wrote:
On Friday 21 January 2005 01:52, Tim Boring wrote:
Well the biggest problem in your code right now is your incomprehensible
(to
me anyway) use of the switch construct. For a start I've no
On Thu, 2005-01-20 at 14:06, Bret Hughes wrote:
I think I see a possible explanation for the behavior. preg_replace
does not return a true or false value it returns the string passed as
the subject with any matched replacements done. Hmm the manual says it
better:
If matches are found
On Thu, 2005-01-20 at 14:03, Todd Cary wrote:
I am looking for some sample code on setting up a page that provides a
means for the surfer to send a file to the server.
Hmm lets see:
http://www.google.com/search?hl=enlr=q=html+file+upload+phpbtnG=Search
First hit looks promising.
Bret
--
On Thu, 2005-01-20 at 18:12, James Butler wrote:
Greetings,
Has anyone successfully upgraded a PHP 4.2.2 installation on a
Red Hat 9 machine to a more secure version?
I just want any more-secure version of PHP than 4.2.2, but it's looking
like I'll have to use Fedora or Gentoo or Mandrake
On Wed, 2005-01-19 at 05:51, Marek Kilimajer wrote:
Justin French wrote:
On 19/01/2005, at 5:36 PM, William Stokes wrote:
I would like to add some debugging/info code to my pages. In test
environment of course. Any ideas how to do this? I mean for example to
print
to a web page the
On Wed, 2005-01-19 at 07:47, Al wrote:
I'm working on a script that can be initiated by a cronjob or from a browser.
I want the script to act differently depending on which one called it.
--
I do not know what the definitive answer is but there are a bunch of
environment differences.
On Tue, 2005-01-18 at 11:45, Vladas Shukevichus wrote:
18.01.2005 18:06:31
Marek Kilimajer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]
M. Sokolewicz wrote:
didn't you read what wez said? they're gathering entropy... you
*can't*
(and shouldn't want to) prevent that.
On Tue, 2005-01-18 at 14:34, Marek Kilimajer wrote:
Bret Hughes wrote:
Having said all this, you might try moving the server mouse around
immediatly before and during the transaction to see if its faster.
Or hire a monkey :)
Hmm. depending on the current cost of Purina Monkey Chow
On Tue, 2005-01-18 at 12:24, Rob Adams wrote:
Ok - Let me restate some of this:
I am creating these images in PHP. I have a script right now that accepts
two images. A main one, and the one that will be hidden. These can be
either jpg, gif, or png. It then outputs a png image like
On Mon, 2005-01-17 at 09:01, Erwin Kerk wrote:
Al wrote:
I've got a question about the following cronjob.
#At 3:01 our time, run backups
1 0 * * * /usr/local/bin/php
/www/r/rester/htdocs/auto_backup/back_em_up.php
/www/r/rester/htdocs/auto_backup/cron.log 21
#At 3:02 clean up
On Mon, 2005-01-17 at 09:27, Vikram Vaswani wrote:
Hi
I have a string like this:
Just when you begin to think the wagon of Vietnam-grounded movies is grinding
to a slow halt, youre hit squarely in the face with another one. However,
while other movies depict the gory and glory of war
On Mon, 2005-01-17 at 09:45, Shawn McKenzie wrote:
Thanks, but I'm not running Windows, I'm running just MS-DOS from a
bootable floppy. Hence my question :-)
PHP seems to actually be the php5ts.dll. Would there be binaries for
MS-DOS or is there a way to get this working?
Must be a
On Mon, 2005-01-17 at 21:16, Chris Bruce wrote:
Hi,
I am looking for a way to write to a file what the browser would see
(raw html) when viewing a dynamic PHP page. I have numerous include
files, MySQL db queries, loops etc. and I want to generate the static
result of that file and save
On Sun, 2005-01-16 at 17:00, Russell P Jones wrote:
I have written a simple script that when a date in an array matches todays
date, it sends an email (notifies me when bills are due). Any ideas on how
to make this run once a day? Can you do a cron job on a PHP prog?
Russ Jones
Never tried
On Sat, 2005-01-15 at 11:57, Rosen wrote:
Hi,
I have this problem:
Linux Red Hat 7.3 server and PHP 4.3.8 MySQL 4. When I Try to execute
linux command - nothing happens and in Apache logs I see Access denied.
This is about permissions in executing this command.
My question is can I
On Fri, 2005-01-14 at 07:48, Stuart Felenstein wrote:
When using $_POST vars is it required that a form is
used ?
In other words I can create an href link and echo
variable and pick them up using $_GET in the following
page.
No so with $_POST ?
You could probably create hidden vars and
On Thu, 2005-01-13 at 15:06, Jason Morehouse wrote:
Hello,
I normally can take a bit of regex fun, but not this time.
Simple enough, in theory... I need to match (count) all of the bold tags
in a string, including ones with embedded styles (or whatever else can
go in there). b and b
On Thu, 2005-01-13 at 10:02, William Stokes wrote:
Hello,
I'm quite new with writing php code. I was considering of using some kind of
php editor program to help with the syntax. Know any goog ones?
These sort of threads are good every now and then I think. Especially
since it has been so
On Wed, 2005-01-12 at 05:38, Jochem Maas wrote:
Richard Davey wrote:
...
It's JS (what else could it be?!) - more info here:
what else? spontaneous self-realising tele-kinetic voodoo. :-D
We used to call that MTAM (Mental Telepathy Access Method)
Bret
--
PHP General Mailing List
On Wed, 2005-01-12 at 12:08, Jochem Maas wrote:
Marek Kilimajer wrote:
Jochem Maas wrote:
hi guys,
I always use curly braces around vars placed in double quoted strings,
I do this for 2 reasons:
1. I believe It helps the engine because the var delimitation is
explicit,
On Mon, 2005-01-10 at 10:17, Richard Lynch wrote:
Bret Hughes wrote:
As I begin to write this I wonder if this really an apache issue but
will ask here to see if anyone has some idea.
We have a php interface to our system running apache 2 on fedora 1 box.
One page calls a script
On Mon, 2005-01-10 at 12:08, John Taylor-Johnston wrote:
Hi,
I would like some help to improve this script. I'm a teacher with a schedule
of 17 weeks.
Instead of using if(date(Y-m-d) = $week3) I would like to do a for i = 1
to 17 and if the current date date(Y-m-d) = week[i] I would like
On Mon, 2005-01-10 at 15:21, Jason Morehouse wrote:
Jonel Rienton wrote:
man chmod, i gather you're new to linux/*nix
I don't need a lesson in file permissions, thanks. Apache runs as
nobody. The problem isn't trying to get apache to display test.php,
it's having it display the proper
As I begin to write this I wonder if this really an apache issue but
will ask here to see if anyone has some idea.
We have a php interface to our system running apache 2 on fedora 1 box.
One page calls a script that does a system() call on a script that runs
for several minutes. The issue is
On Wed, 2004-04-21 at 22:10, Curt Zirzow wrote:
* Thus wrote Bret Hughes ([EMAIL PROTECTED]):
I have found a funky situation that I am trying to figure out if it is
bug or not:
I see this behavior on both redhat 9 and fedora running
php 4.3.4
httpd(apache) 2.0.48
calling
I have found a funky situation that I am trying to figure out if it is
bug or not:
I see this behavior on both redhat 9 and fedora running
php 4.3.4
httpd(apache) 2.0.48
calling umask(0002) in a script leaves the httpd process with a umask of
2 after exit so that the next process to hit that
75 matches
Mail list logo