Thanks for the confirmations Torben.
Can one code user-defined functions nested within one another
Yes.
- and repeatedly execute them?
No. ;)
This is correct. As you know, the thing is that execution keeps running
into that function declaration every time the containing function is
php-general Digest 10 Feb 2002 10:00:24 - Issue 1163
Topics (messages 84139 through 84157):
Re: mysql_select_db() problem
84139 by: Lars Torben Wilson
84148 by: Nick Wilson
Colecting IP information
84140 by: Philip J. Newman
84149 by: cyberskydive
Re:
What do you get if you use error checking?
Well, that seems to be it, I'm getting 'Access deneid to user
'@localhost'.
I'm talking to a guy on the mysql list, apparently it is a
phenomememememememmemonmmm that when you GRANT ALL using wildcards it
tends to grant all on * except
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Raymond Lilleodegard declared
Hi!
Is i possible to make a function that makes a prev and a next link on the
page if it returns, say over 20 rows or hits in a query? Could anyone give
me a hint if they know how to?
There is a
Using the code below:
$buffer['Last_access'] = 1013336429;
$date = date(H:i D, nS M Y,$buffer['Last_access']);
print $date;
prints 10:20 Sun, 2th Feb 2002
I didnt know there was a 2th of February!!
Is this a bug and do I get a prize for finding it? ;o)
LJ
--
PHP General Mailing List
Hey,
I'm trying to force a subject line on the reply email of a recieved email...
the recieved email is sent using the mail() function in php... can this be
done? I know i can do it using html by doing :
mailto:[EMAIL PROTECTED]?subject=subect comes here
but not everyone allows html email... can
yea... this sends out the email just fine... but if a user replies to the
email sent out via this method, the sbuject line changes... i want to keep
it static :)
Regards,
Kunal Jhunjhunwala
Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute
hi,
hidden value where?? :)
Regards,
Kunal Jhunjhunwala
Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll
- Original Message -
From: TV Karthick Kumar [EMAIL PROTECTED]
To: Kunal Jhunjhunwala
it was last week though...
guesss you mean 29th?
Edward
LaserJetter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Using the code below:
$buffer['Last_access'] = 1013336429;
$date = date(H:i D, nS M Y,$buffer['Last_access']);
print $date;
prints 10:20
I
I search a class to parse mp3-files' id3 tag. I already found one at
upperdesign.com but it seems not to be capable of parsing newer versions
of the id3 tag :(
So does anyone know an already existing class doing that for me?
TIA
Stefan Rusterholz
--
PHP General Mailing List
I've just realised that the suffix for the day of the month is correct for
today (1013336429) but it isn't the 2nd today and my clock is set right.
Anyone got any ideas?
Laserjetter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Using the code below:
Hi
There is a class that can manipluate version 1 tags here :
http://leknor.com/code/php/view/class.id3.php.txt
and a some beta code for handling version 2 tags here :
http://leknor.com/code/php/view/beta/class.id3v2.php.txt
I don't know if that helps.
Regards
Girish
--
Hi,
Anyone out there familiar with Apache's .htaccess running PHP scripts?
I'm using Apaches's mod_rewrite to route some virtual hosts which runs great
but is causing HTTP Error 403 - Access forbidden errors just for my .php
scripts. I assume there is some sort of .htaccess statement that will
Hi everyone,
PHP fopen function opens URL using the HTTP GET method. But what if one
could only open the web page using the HTTP POST method? In this case, fopen
won't work. Is there a PHP function that is similar to fopen, but uses HTTP
POST method to open URL instead? If not, then how do I
Hi all,
Perhaps some one can help me.
If I send a cookie like
setcookie(+ACI-cookie+AF8-agtpasswd+ACI-,+ACQ-form+AF8-agent+AF8-pass, time()+-1200,
+ACI-/+ACI-)+ADs-
it does not work on the terminal which has a new version of windows 2000 and i use
IE6. The browser does not store the cookie.
Zlutarch G. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi everyone,
PHP fopen function opens URL using the HTTP GET method. But what if one
could only open the web page using the HTTP POST method? In this case,
fopen
won't work. Is there a PHP function
http://php.net/curl
-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 10, 2002 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: How can I open URL using HTTP POST instead of HTTP
GET?
Zlutarch G. [EMAIL PROTECTED] wrote in message
Hi All,
I am trying to create an array from a text file that I will process and
rewrite in a new format. My question is, is it possible to read the
file
in one line at a time and then separate the tab-delimited fields and
finally rewrite the new file?
The fields are tab delimited and here is
Nevermind, I was able to figure it out using:
$myfile = file(oldfile.txt);
for ($s=0; $s=count($myfile)-1; $s++) {
$fields = split(\t,$myfile[$s]);
print($fields[1]\n);
}
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 12:33 PM
To:
On 10 Feb 2002, at 14:30, Liam MacKenzie wrote:
I have a form, with 196 fields that I need entered into a database.
But the form and it's contents need to be changed every day, and I
That distracts me. Does the form change? I think not. It looks like
a data entry form and the only thing that
Hi Guys,
How do i install expat on WinNt. I have php-4.0.6.
Looking forward for yours response.
karthikeyan.
Kunal Jhunjhunwala wrote:
hey..
does anyone know of any good classes / functions for handling mime emails? i
am writing a mail checker, and was wondering if there are any pre-written
mime email handling classes out there...
thanks!
Regards,
Kunal Jhunjhunwala
Minds think with ideas, not
Hi All,
This is the first time I have had to deal with math. I have gone
through the manual and a few books and I think I am worse off then when
I started. Can someone give me an example of the simple math below. I
think If I see some in code I can move on from there.
I need to find out if
On Sun, 2002-02-10 at 11:05, Gary wrote:
Hi All,
This is the first time I have had to deal with math. I have gone
through the manual and a few books and I think I am worse off then when
I started. Can someone give me an example of the simple math below. I
think If I see some in code I
On Monday 11 February 2002 03:05, Gary wrote:
Hi All,
This is the first time I have had to deal with math. I have gone
through the manual and a few books and I think I am worse off then when
I started. Can someone give me an example of the simple math below. I
think If I see some in code I
$answer = abs($pa - $pb) + $ca +$ps;
No ifs :)
Maybe I'm lazy, but I like 1 line statements
Andrew
- Original Message -
From: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 10, 2002 7:05 PM
Subject: [PHP] my math stinks
Hi All,
This is the first time I have
Liam Mackenzie wrote:
Hi,
I was wondering what you would do in this situation...
I have a form, with 196 fields that I need entered into a database.
But the form and it's contents need to be changed every day,
and I need to store the old data in an archive so it can be accessed
at a
Kunal Jhunjhunwala wrote:
Hey,
I'm trying to force a subject line on the reply email of a recieved email...
the recieved email is sent using the mail() function in php... can this be
done? I know i can do it using html by doing :
mailto:[EMAIL PROTECTED]?subject=subect comes here
but not
what about this?
$contents = str_replace('?xml version=1.0?'.'', '', $contents);
-Original Message-
From: Steven Jarvis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 09, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] escaping ?
I'm trying to do some string replaces on XML
php-general Digest 10 Feb 2002 22:08:34 - Issue 1164
Topics (messages 84158 through 84186):
Re: mysql_select_db() problem
84158 by: DL Neil
Re: Sitenavigation
84159 by: Nick Wilson
possible bug in date() function
84160 by: LaserJetter
84164 by: Edward van
Hi every one I am going to be working on a site that will contain hopefully a
single point where people can get php class files, Sorce code help, and MySQL
database help, Plus a kind of comunity for PHP. I know there are other site
such as this but I would like to create a 1 place for all type
I'm trying to figure something out and thought I'd see if you guys have any
ideas.
The goal: tracking the number of downloads for files on the server.
The approach: routing file downloads through /download.php like this:
http://server/download.php?target=/myfile.zip
What I tried
Hello everyone,
I am working on converting a site from ASP to PHP and I was wondering if
their where any built in functions to perform screen scraping. In ASP, the
XML DOM is most commonly used to accomplish this. I am thinking that there
should be something to get the task done in PHP but I
Well, you have to send the actual file - otherwise the result of a zero-length
file is not surprising at all.
Bogdan
Ed Lazor wrote:
I'm trying to figure something out and thought I'd see if you guys have any
ideas.
The goal: tracking the number of downloads for files on the server.
The
You need to actually read the file in order for this to work. You're just
opening it and then printing the file handle...
Bogdan
Scott wrote:
Hi All,
I am trying to create an array from a text file that I will process and
rewrite in a new format. My question is, is it possible to read the
what about this?
?php
header(Location: $url_to);
exit;
?
http://server/download.php?url_to=/myfile.zip
check out
http://www.philipsdomain.com/hyperlinks/ for a redirect sample.
- Original Message -
From: Ed Lazor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hello,
I am interested in adding a small weblog to an existing php driven
site. I've seen the Nuke stuff but that may be a little overkill for me
I just want a simple system for allowing users to post stories about
the site's main topic , a follow up discussion forum a la slashdot.org
and
At 12:58 AM 2/11/2002 +0200, Bogdan Stancescu wrote:
Well, you have to send the actual file - otherwise the result of a zero-length
file is not surprising at all.
That makes sense. I thought the last line was doing that. How would I do
it in a way that works for local and remote files?
Ah, didn't know you also serve remote files. In this case Philip's solution makes
much more sense - otherwise you'll have to download the file on the server side and
upload it to the client, which is way too much fuss to worth it.
Bogdan
Ed Lazor wrote:
At 12:58 AM 2/11/2002 +0200, Bogdan
Ben Turner wrote:
Hello everyone,
I am working on converting a site from ASP to PHP and I was wondering if
their where any built in functions to perform screen scraping. In ASP, the
XML DOM is most commonly used to accomplish this. I am thinking that there
should be something to get the
Ben Turner wrote:
Hello everyone,
I am working on converting a site from ASP to PHP and I was wondering if
their where any built in functions to perform screen scraping. In ASP, the
XML DOM is most commonly used to accomplish this. I am thinking that there
should be something to get the
Well not so much processing XML but rather grabbing HTML input and parsing
it for certain values. I use this approach very heavily for inputing a DB
table with information that needs to be displayed back to the web users.
Ben
- Original Message -
From: Michael Kimsal [EMAIL PROTECTED]
On 10 Feb 2002, at 17:23, Viper wrote:
Hi every one I am going to be working on a site that will contain
hopefully a single point where people can get php class files, Sorce
code help, and MySQL database help, Plus a kind of comunity for PHP. I
know there are other site such as this but I
I am seeking some thoughts on if this is the way I should tackle this
problem. I have two files, both of them tab delimited text files that I
need to combine and then output a new file.
My idea was to put both files in an array, calling the fields I need,
i.e. $field[0], $field[1] and so on. I
Add this inno the appropriate virtual-host
Directory /path/to/the/folder/with/the/jpg/script
AddType application/x-httpd-php .jpg
/Directory
This will parse all .jpg files to the PHP interpreter.
Hope that helped!
- Original Message -
From: Matt Moreton [EMAIL PROTECTED]
To: [EMAIL
Greetings,
I saw this posted in this group a few days back:
function validEmail($email)
{
if
(eregi(^[a-z0-9]+([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}, $email))
{
return TRUE;
}
else
{
return FALSE;
}
}
I passed it onto a programmer
I may have worded this wrong. The site will focus on PHP and the use of
Databases with PHP, (Oracle, Postgres, MySQL, others...). I was typing fast and
just threw MySQL out :) I do quite a bit of development in PHP and MySQL so I
am most familiar with it. I am also very familiar with Oracle. I
It does indeed!
http://www.phinpho.com/
I got the domain a couple of weeks ago, and I have a couple
of mates who are keen to set it all up, now all we need is a
boot in the arse to get it going!
I have some neat servers and a phatt connection. It'll do to
get us started, but may need some
I got this stupid problem:
I create an HTML list of inputs: input name=Answer[] type='checkbox' that
stretches to some 25 elements.
When I try to read the values (on or off) with the code below, PHP won't read past
the 8th. element and says it's found an undefined variable (which is $x). No
On 10 Feb 2002, at 21:17, Viper wrote:
I may have worded this wrong. The site will focus on PHP and the use
of Databases with PHP, (Oracle, Postgres, MySQL, others...). I was
typing fast and just threw MySQL out :) I do quite a bit of
development in PHP and MySQL so I am most familiar with
I dont think any of us can break the E-mail habbit :) I agree with you there
are alot of sites out there. That is a good idea to show ways to do things in
different DB's sort of a DB centric site. I guess the main focus of the site is
community help. Not only code snippet stuff. But Forums and
Seeing as the mathematically correct way to round numbers is to round down
to n for n-1=m=n.5 and up to n+1 for n.5mn+1, I wonder why the PHP
round() function couldn't include a little 'fuzz' to handle the rounding
problems we encounter due to floating point representation in the hardware?
It
Hi all,
Im was sure you could select a row from a mySQL database based on 2
conditions. My code:
$query2 = select * from Table where userNo = $userNo and clientID =
$clientID;
$result2 = mysql_query($query2,$db);
This returns :
Warning: Supplied argument is not a valid MySQL result resource
Are you actually checking more than eight checkboxes? Otherwise you don't _get_ the
ones which are unchecked at all - that's the way it works. The ideal way to do this -
if you have to do it with arrays - is to walk
$Answer and check WHAT'S in there, rather than IF there is something in there.
Do an echo($clientID) before - it most probably is either empty or it's a
string and MySQL actually issues errors there.
Bogdan
Brad Wright wrote:
Hi all,
Im was sure you could select a row from a mySQL database based on 2
conditions. My code:
$query2 = select * from Table where userNo =
Yes - that's most likely the answer.. if the echo doesn't help, try
something like this..
$result2 = mysql_query($query2,$db) or die(mysql_error());
If mysql is throwing up an error, that'll present it too you and stop
execution..
-Original Message-
From: Bogdan Stancescu
Thanks,
$clientID is a string but is not empty...already tried echo($clientID) and
it is not empty.
Did you mean that if the value of $cientID is a string it wont work
Thanks
Brad
From: Bogdan Stancescu [EMAIL PROTECTED]
Date: Mon, 11 Feb 2002 05:38:31 +0200
To: Brad Wright [EMAIL
...however, this may not be the best solution since actual JPEG's accidentally
containing the ? string will issue errors (!) on your server. The proper way
to do this is leave it .php if possible.
Bogdan
Liam MacKenzie wrote:
Add this inno the appropriate virtual-host
Directory
No, with your syntax it won't. You have to quote it in the query, as in
$query2 = select * from Table where userNo = $userNo and clientID =
'$clientID';
Bogdan
Brad Wright wrote:
Thanks,
$clientID is a string but is not empty...already tried echo($clientID) and
it is not empty.
Did you
Ahh..that seems to have fixed it. Its now pulling NO data, but is not giving
error msg
thanks, 1/2 way there now :)
brad
From: Bogdan Stancescu [EMAIL PROTECTED]
Date: Mon, 11 Feb 2002 05:46:46 +0200
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re:
In your code below, mysql will throw an error if $clientID is empty or
non-numeric because it is not surrounded with quotation marks.. mysql will
treat it as a field name (or just throw a syntax error if it's empty).
-Original Message-
From: Brad Wright [mailto:[EMAIL PROTECTED]]
Sent:
Just a guess, but is it possible that you get 403 because of file permissions?
Sorry if this is stupid, but I vaguely remember something similar related to
file permissions, so I took the chance... :-)
Bogdan
Andre Bajew wrote:
Hi,
Anyone out there familiar with Apache's .htaccess running
Well, that's probably because of the data - no entries with both conditions
satisfied... Use or if that's what you actually want to do. ;-)
Bogdan
Brad Wright wrote:
Ahh..that seems to have fixed it. Its now pulling NO data, but is not giving
error msg
thanks, 1/2 way there now :)
I guess that's because nobody knows beforehand which direction the fuzz should
go - should it go a little upwards or a little downwards in order to match
all systems?
Just my two cents.
Bogdan
Matthew Clark wrote:
Seeing as the mathematically correct way to round numbers is to round down
to
Bogdan,
It appears that $clientID is saved with a space at the start .. when i check
for its value (using session_encode() ) it gives that value test 3 when
it should be test 3.
input type=hidden name=XclientID value=?php echo
$row[clientID];?
this is the extract form the form on the
Most unusual indeed. The quick/ugly solution is to trim() the incoming $clientID.
But that's not appropriate if you expect valid entries starting with a space (well,
two spaces in your case) :)
Gotta hit the sack now - check out the time over here! :)
Bogdan
Brad Wright wrote:
Bogdan,
It
Linn Kubler wrote:
I've setup an upload form for uploading files to my server. It seems to
work well except the performance is pretty sad. For example it took 20
minutes to upload a 50MB file over a 100Mb LAN. This is running on Linux
w/Apache.
At the heart of the script is the copy()
I would also check out the midgard project which has made vast improvements
in the current 1.4.x series. http://www.midgard-project.org/
karthikeyan wrote:
Hi,
How should i go about to developing a php application to manage the content of a
web site OR is there allready some ready made
Please forgive me if this has been covered before. I have searched the list
and could not find reference to a similar problem.
I am completetly new to PHP and I am stuck. I am creating a very simple
form. Essentially the user agrees or disagrees to a message. If the user
agrees, they are
might be the header(location...); bit - you might need to specify the
full address
-Original Message-
From: Sean Hurley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Forms and IE
Please forgive me if this has been covered
Answered below:
- Original Message -
From: Sean Hurley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 10, 2002 11:40 PM
Subject: [PHP] Forms and IE
Please forgive me if this has been covered before. I have searched the
list
and could not find reference to a similar
Well, damn.
When I read your suggestion I didn't quite accept it. I thought
no, it would return an error if it couldn't find the page, but with nothing
to lose I tried it. And it worked. Thank you. Thanks a lot.
From: Martin Towell [EMAIL PROTECTED]
To: 'Sean Hurley' [EMAIL PROTECTED], [EMAIL
Hi Sean:
Sean Hurley wrote:
Agree input type=checkbox name=agree[] value=agree
I Do Not Agree input type=checkbox name=disagree value=disagree
if ($agree) /* (I have tried this also with ($isset = $agree)) */
{ header (location: ?link=form);
}
else
{ header (location: /LETS);
}
On Mon, 11 Feb 2002, Matt Moreton wrote:
I have a script that outputs an image. Using the gd library. But the
...
the image. Is it possible somehow to request the file as a .jpg?
www.host.com/displayimage.php
Assuming you're using Apache, you can use a rewrite rule (with
mod_rewrite).
First, I'm going to apologize for posting when I don't even lurk any
more, much less contribute. :-|
Those of you who remember me from back in the day will probably
forgive me -- Those of you who don't, well, what can I say? Time
and Tools is how an old friend and I used to put it.
Speaking
hi. i'm new here and i'm also new to php. thing is though, i'd like to ask
something with regard to configuring the web host to make it support php.
see, i work for a company which also offers web hosting but due to lack of
technical people here, we're not sure how to configure our server to
You could hire me! then pay me.
- Original Message -
From: mm fernandez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 8:34 PM
Subject: [PHP] configuring webhost
hi. i'm new here and i'm also new to php. thing is though, i'd like to ask
something with regard
why does the cache control header generated by php (under
session_cache_limiter = nocache) needs to have no-store? It
makes pressing Back in the browser requests a new version of the
page (which is unwanted in some situations, e.g. while filling
form and needs to edit a few fields before
78 matches
Mail list logo