On Sat, 16 Mar 2002, Philip J. Newman wrote:
A few of us folk at PhilipNZ.com would like to know about using and ' or ` in My
Sql when calling information from the database.
we have always used
$sql = SELECT * FROM `hyperlinks` ORDER BY `clicks` DESC LIMIT 0, 10;
but where told that
... i think you might have to create the
$date directory before writing a file to it.
writing to /tmp/dir/file.txt will fail if
the directory dir doesn't exist.
jtjohnston wrote:
Does anyone have time to run this code?
This is definitely weird. Either a Windows or a code problem. If I set:
Is there a MySQL function that I can use to increment the integer value of a row entry
with one query?
Here's the combined PHP and SQL in psuedo code form...
UPDATE mytable SET myval++
Something like that. So I dont have to pull the value from the database, increment
it, then post it back to
On Sat, 16 Mar 2002, Kevin Stone wrote:
Is there a MySQL function that I can use to increment the integer value of a row
entry with one query?
Here's the combined PHP and SQL in psuedo code form...
UPDATE mytable SET myval++
Something like that. So I dont have to pull the value from the
Hi,
I'm trying to resize images from a big image to smaller image in
dimension and also file size so that when a user upload an image into
server, when a browser display the picture it desn't have to be as big.
I hope my question make sense.
I just don't know where to start.
may be somebody
Hi Dani,
I'm trying to resize images from a big image to smaller image in
dimension and also file size so that when a user upload an image into
server, when a browser display the picture it desn't have to be as big.
I hope my question make sense.
a good way for working with images is
firstly, apologies for the cross post, but I urgently need a Windows 98 /
PHP / PWS environment to test an issue on.
if anyone could help out with that, please email me back directly.
Thanks,
James
--
James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/
Was I helpful?
James,
Firstly I have a suggestion for you, I downloaded a copy of something
called VMWare, it allows you to install virtual machines, ie, depending
on your disk space you can run mutliple operating systems without multi
boot. It even has the ability to forget changes, so you can have a
stable
I wonder whether this is possible?
I would like to format a text input so that the first letter of the input (as
the user is typing it in) would automatically be converted to Uppercase
(capitals). Furthermore, if it is possible, I would like to pre-format the
date input type=text so that
Hello all:
I am playing with sessions and I have a problem with the
session_destroy() function. If I do a session_register() after calling it,
the session recover the previous values (values that I supposed forgot by
the session).
At
Hi
If I try to open a non-existing PHP document by my Apache server I got an
internal server error massage. All other documents that were not found bring
me to a error 404 document.
4 days ago I updated from PHP3 to PHP4.0.3pl1 and with the former version i
got a error massage like: no php file
Hello,
I have installed php 4.1.2. as a cgi module.
But http_cookie isn't set. I don' know whats wrong.
You can find the output of phpinfo() at
http://www.tgp2stats.com/test.php
Tnx,
Bas Jobsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Would a 10kb file which has 5kb of comments take longer to process in php
than the same file wihout the comments which is 5kb?
Or are the comments ignored as far as server load and speed to delivery are
concerned?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
php-general Digest 16 Mar 2002 17:13:08 - Issue 1230
Topics (messages 88732 through 88749):
Re: Newman, using and ' or ` in My Sql
88732 by: Jason Wong
88735 by: David Robley
88736 by: mnc.stoic.net
Somebody knows about SecureLink?
88733 by: Jan Grafström
Flex - the tools that parses the code skips everything between /* and */ and for this
no token is given back. Of course if you don't
have 5kb comments Flex will be a little faster but possibly few %.
Regards,
Andrey
- Original Message -
From: caspar kennerdale [EMAIL PROTECTED]
To: PHP
Try using the predefined variable $_COOKIE instead and see if that works for
you...
Bas Jobsen [EMAIL PROTECTED] wrote in message
02031617361309.10531@bjobsen">news:02031617361309.10531@bjobsen...
Hello,
I have installed php 4.1.2. as a cgi module.
But http_cookie isn't set. I don' know
You should try moving to the current version of php and then try it...
Ray Hunter
Jan Weidhaase [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi
If I try to open a non-existing PHP document by my Apache server I got an
internal server error massage. All
So you could have as much commented text without any detriment to the pages
performance?
great
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: 16 March 2002 17:17
To: caspar kennerdale
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] server load
Flex - the tools
However write short but meaningful comments. Keep in mind that the scripts has to be
loaded in the memory from the disk. Although
after first request it is in some cache.
Andrey
- Original Message -
From: caspar kennerdale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March
I am thinking of using a documentation parser such as javadoc (called
phpdoc) which will create a separate html document on the functions and
feastures of the classes I am writing,as well as examples and tutorial info.
I am just considering whether or no I have two versions - a no comments
Olá pessoal!
Gostaria que alguém me enviasse o manual de php em portugues
descompactado, pois tenho tido problemas em descompacta-lo, mesmo em
pdf.
Com os melhores cumprimentos:
++
| Marcio Santos |
| Estudante de Ensino de Informatica |
I have :)))
Andrey
- Original Message -
From: caspar kennerdale [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 16, 2002 7:40 PM
Subject: RE: [PHP] server load
I am thinking of using a documentation parser such as javadoc (called
phpdoc) which will create a separate
Hi
When you create the new session give it a different name.
Tom
At 01:49 AM 17/03/2002, Carlos Costa Portela wrote:
Hello all:
I am playing with sessions and I have a problem with the
session_destroy() function. If I do a session_register() after calling it,
the session
You seem to have three different ideas/questions... let me attempt to answer
them:
Hi. I want to be able to access a key in a multidimensional array at some
depth n without knowing before runtime what the keys are.
let's take a multidimensional array $x
$x = array(
somevar,
array(
I've just tested on the productional test server a sample php consisting from 62kb
comment. Benchmarked with ab
1-st bench - ten connections
Server Port:80
Document Path: /test.php
Document Length:0 bytes
Concurrency Level: 10
Time taken for tests: 0.552
Just use javascript... (be careful, what works with IE, doesn't
automatically work with Netscape)...
Greets,
Edward
- Original Message -
From: Andre Dubuc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 16, 2002 4:44 PM
Subject: [PHP] Formatting input text?
I wonder
maybe you better use:
session_unregister(counter);
Greets,
Edward
- Original Message -
From: Carlos Costa Portela [EMAIL PROTECTED]
To: php-general mailing list [EMAIL PROTECTED]
Sent: Saturday, March 16, 2002 4:49 PM
Subject: [PHP] Problem with sessions.
Hello all:
I am playing
Hi Edward,
If I wanted to avoid Javascript, could I still accomplish this in PHP?
Regards, Andre
On Saturday 16 March 2002 13:33, you wrote:
Just use javascript... (be careful, what works with IE, doesn't
automatically work with Netscape)...
Greets,
Edward
- Original Message -
I have created date :)
$date = date (MD);
That's not it. It seems to fail at one level or another, I think, becuase the
function calls itself - and probably gets lost somehow.
John
... i think you might have to create the
$date directory before writing a file to it.
writing to
At 16.03.2002 10:44, you wrote:
I wonder whether this is possible?
I would like to format a text input so that the first letter of the input (as
the user is typing it in) would automatically be converted to Uppercase
(capitals). Furthermore, if it is possible, I would like to pre-format the
The standard quote (') should be used to delimit string literals in MYSQL
statements. Use it to surround strings you're inserting into or comparing
against VARCHARs, CHARs, TEXTs, etc.
$sql = UPDATE mytable SET name='Best Table Of All' WHERE id=3;
That is ok if you call MySQL in your .php.
As Oliver says, it is possible in PHP, but then you have to do it, AFTER the
form is submitted... Just do some regular expressions on your data before
displaying / storing it...
Edward
- Original Message -
From: Andre Dubuc [EMAIL PROTECTED]
To: Edward van Bilderbeek - Bean IT [EMAIL
I have a simple INCLUDE file that creates a default dynamic tab style table
of contact for the top of each of my pages.
I wanted a solution where I could control the content by simply changing an
integer in mySQL indicating weather a tab was visible or not. It works but I
now have a strange
Hi,
Well okay. But now i'm using this code:
test.php (http://www.tgp2stats.com/test.php):
--
?
$test=bas;
session_start();
session_register(test);
header(Location: test2.php);
?
--
test2.php (http://www.tgp2stats.com/test2.php):
--
?
session_start();
session_register(test);
echo test: .$test;
Well, I was stupid posting this question anyway. Don't worry about my
problem. I have it fixed. =)
Again, I will be more careful not to repeat posts (or post things I can find
the answer for somewhere else).
---Original Message---
Well, aroung 14 Feb I ended up saying this to an
Ok say I have a top ten list of something in a MySql db on server lisa.philipnz.com
which runs php scripts. Is it possable to call, using a javascript information from
say
http://www.geocities.com/philip_newman/ this list, will the PHP exacute on
lisa.philipnz.com when the script is
On Saturday 16 March 2002 23:44, Andre Dubuc wrote:
I wonder whether this is possible?
I would like to format a text input so that the first letter of the input
(as the user is typing it in) would automatically be converted to Uppercase
(capitals). Furthermore, if it is possible, I would
I use this code to break out of frames:
if (top.frames.length!=0)
top.location=self.document.location;
Put this code in the head section between script tags.
If the document isn't on top, it soon will be.
(This solution slows the loading of the page a bit, the browser will
have to go thru
anyone had success using PEAR?
I have read the documentation and been trying to use the PEAR
files that came with PHP 4.1.2 , PEAR cvs and PHP4/PEAR cvs
with no success.
I wish there was some updated documentation, and more explanation
on which files to use for stable development. Every
At 17.03.2002 08:02, you wrote:
Ok say I have a top ten list of something in a MySql db on server
lisa.philipnz.com which runs php scripts. Is it possable to call, using a
javascript information from say
http://www.geocities.com/philip_newman/ this list, will the PHP exacute on
hi folks,
I'm running a php script from a console - it includes quite a lot of heavy
database queries - and takes a while to run. Problem is that the the script
keeps on timing out and I get
Fatal error: Maximum execution time of 30 seconds exceeded ...
I've set the MAX EXECUTION time in
create a page on the PHP server that returns the results as an html page...
than use an include or frameset to put the results into the geocities page...
if it wasn't a geocities site, you could use an SSI include or PHP include.
--
Michael Geier
CDM Sports, Inc. - Systems Administrator
I meant, have you created a physical directory
named $date?
That's your problem. There's no directory
named $date on your computer, and you're
trying to write files into a non-existent
directory.
jtjohnston wrote:
I have created date :)
$date = date (MD);
That's not it. It seems to fail at
It's not absurd at all.
What is absurd is that you're coding without
checking for any error conditions :-)
As a rule of thumb, if a function returns a
success flag, check it. it'll immediately
cut out about 90% of all weird errors.
cosmin laslau wrote:
?
$query = SELECT * from mytable;
On Saturday 16 Mar 2002 20:32, Bryan Henry wrote:
anyone had success using PEAR?
I have read the documentation and been trying to use the PEAR
files that came with PHP 4.1.2 , PEAR cvs and PHP4/PEAR cvs
with no success.
I wish there was some updated documentation, and more explanation
on
Try this... it should only print out Some webpage data
$text =
script somethingscript data./script
Some webpage data
script somethinganother script data /script
;
print preg_replace('/script (.*?)/script(.*?)\/script/',
'', $text);
Ando Saabas wrote:
Ok let me explain my problem further
I'm thinking of more around the site of haveing something that can be
included in peoples homepages like a top ten list that changes, but they
don't have to change it ... thats why I was thinking about javascript.
script language=JavaScript
src=http://lisa.philipnz.com/javatopten.php;/script
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
installation, and am having some resolution problems I haven't seen before.
This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1
with no problems with the same configuration. It uses gcc version 2.7.2.1
Upgrade binutils?
Stephano Mariani
-Original Message-
From: Phil Glatz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 16 March 2002 10:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] problems with 4.1.2 build
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
I use this on a Unix server to get yesterday's date if it's a
Saturday:
if ($day == '6') {
$today1 = date(Y:m:d, mktime(0,0,0,$month,$day-1,$year));
}
But on my Windows 2000 machine it thinks it's 1999:12:05.
How can I do this on Windows? Thanks.
Jeff Oien
--
PHP General Mailing List
At 16.03.2002 20:59, you wrote:
hi folks,
I'm running a php script from a console - it includes quite a lot of heavy
database queries - and takes a while to run. Problem is that the the script
keeps on timing out and I get
Fatal error: Maximum execution time of 30 seconds exceeded ...
I've
Hi,
I'm wanting to retrieve a remote page and extract information from it to
insert into my own page. I know that this can be done with fopen, however
the page I am wishing to retrieve is generated with a POSTed form.
Is there any way that I can retrieve a page that has been created by the
Anyone have a small snippet I could use to get the total size of any certin
MySQL database..
Just want to disply it in my browser using a little php script, have any
ideas?
Thanks,
Eric
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?php
class A
{
function A($i)
{
$this-value = $i;
// try to figure out why we do not need a reference here
$this-b = new B($this);
}
function createRef()
{
$this-c = new B($this);
}
function echoValue()
{
echo br,class
I have compiled php with the enable-trans-sid (for the site I am using I
can NOT use cookies)
when I start a session or store something in _SESSION['varname'] varname
can not be accessed on other pages
nor is there a file in the /tmp file
nor does my URI change with a session id
Any
have a look at CURL
Dave
-Original Message-
From: Andy Aldridge [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 16, 2002 7:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] retrieving remote web page
Hi,
I'm wanting to retrieve a remote page and extract information from it to
insert into
I've tried repediately to have a PHP script validate a form when the form is
submitted. I'm quite new to PHP, and I'd really appreciate the help anybody
could give me. I've been stuck on this problem far to long.
I have a form (here's the code):
form method=post action=?php $PHP_SELF; ?
Dr. Shim wrote:
I've tried repediately to have a PHP script validate a form when the form is
submitted. I'm quite new to PHP, and I'd really appreciate the help anybody
could give me. I've been stuck on this problem far to long.
I have a form (here's the code):
form method=post action=?php
No!? $date is a string?!
$date = date (MD);
How does that make a difference?
$to_path = c:\\ccl_www\\.$date.\\ccl_www\\;
You want me to change it to:
$to_path = c:\\ccl_www\\$date\\ccl_www\\;
Does anyone follow why?
Scott Furt wrote:
I meant, have you created a physical directory
named
I've changed
form method=post action=?php $PHP_SELF; ?
To
form method=post action=?php =$PHP_SELF; ?
And I get a parse error. Could you possibly help me correct this? (I'm a
newbie, so have pity on me. =)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sunday 17 March 2002 11:46, Dr. Shim wrote:
I've changed
form method=post action=?php $PHP_SELF; ?
To
form method=post action=?php =$PHP_SELF; ?
And I get a parse error. Could you possibly help me correct this? (I'm a
newbie, so have pity on me. =)
Use:
form method=post
Sorry about the subject heading.
I've put in
form method=post action=?php echo $PHP_SELF; ?
But still when I click on the Log In button, thing happens.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oh, by the way, the if...then claus runs successfully, but the function
never is called. Am I wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday 17 March 2002 12:04, Dr. Shim wrote:
Sorry about the subject heading.
I've put in
form method=post action=?php echo $PHP_SELF; ?
But still when I click on the Log In button, thing happens.
Please post the rest of your code and also which version of PHP you're using.
--
Jason
I'm using PHP 4.1.1 (for Windows). Here is *all* of my code.
html
head
titleAdministrative Log-In Page/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF
Please enter your username and password below in the fields below.
form method=post
[EMAIL PROTECTED] writes:
I'm using PHP 4.1.1 (for Windows). Here is *all* of my code.
html
head
titleAdministrative Log-In Page/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF
Please enter your username and password below in the fields below.
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
No!? $date is a string?!
$date = date (MD);
How does that make a difference?
$to_path = c:\\ccl_www\\.$date.\\ccl_www\\;
You want me to change it to:
$to_path = c:\\ccl_www\\$date\\ccl_www\\;
Does anyone follow why?
On Sunday 17 March 2002 12:12, Dr. Shim wrote:
I'm using PHP 4.1.1 (for Windows). Here is *all* of my code.
html
head
titleAdministrative Log-In Page/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF
Please enter your username and
php-general Digest 17 Mar 2002 05:16:56 - Issue 1231
Topics (messages 88750 through 88803):
Re: server load
88750 by: Andrey Hristov
88753 by: caspar kennerdale
88754 by: Andrey Hristov
88755 by: caspar kennerdale
88757 by: Andrey Hristov
On Sunday 17 March 2002 13:14, Jason Wong wrote:
You're using 4.1.1, $HTTP_POST_VARS{} has been replaced by $_POST[] (see
changelog/history/php.ini for details).
Sorry a typo:
$HTTP_POST_VARS[] has been replaced by $_POST[]
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
/*
Thanks for repying. Yes, the page has pictures. But all jpg pictures must
link to another jpg pictures. A gif is alowed to link to a html file. The
minium numers of jpg pictures must be 12.
Cheers,
Martin.
- Original Message -
From: Boaz Yahav [EMAIL PROTECTED]
To: Martin Kampherbeek
Hi,
is it possible to send automated faxes via PHP?
Thanks in advance,
Senih
Hi! I'm building a class, and am trying to include an authorization function the
code works when used outside of the class, but when I put it inside the class, for
some reason my session variables won't get set. Am I attempting the impossible, or am
I missing something that I need to
I'm having some trouble writing data to a file, when I use this code it
works fine:
?php
$file = fopen(template.txt, w);
fwrite ($file, $temp);
fclose ($file);
?
But several problems with this occur:
?php
$stuff = include (news.txt);
$file = fopen (news.txt, w);
$newnews = include
On Sunday 17 March 2002 12:53, Ben Waldher wrote:
I'm having some trouble writing data to a file, when I use this code it
works fine:
?php
$file = fopen(template.txt, w);
fwrite ($file, $temp);
fclose ($file);
?
But several problems with this occur:
?php
$stuff = include
Dave,
That's just the problem with the code. See the snippet,
http://www.php.net/manual/en/function.copy.php
The function should MKDIR for me one level at a time as
the function calls itself. It should MKDIR and copy *.*
if (is_dir($file))
{
rec_copy ($from_path.$file./,
Does anyone know of another snippet any place where I can copy *.*
(files and all sub-directories) from one drive to another? In other
words, a backing-up function. The snippet I got from
http://www.php.net/manual/en/function.copy.php has been a disaster.
John
--
PHP General Mailing List
77 matches
Mail list logo