Hello,
I am having one string variable which has the value fetched from the
mysql table. Is it possible to find '\0' character in that string ?
Regards,
Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael Mao wrote:
Thanks John.
Found what I'm looking for:
Function str_split()
to make it php4 compatible you can use this function:
|
if (!function_exists('str_split')) {
function str_split ($str, $size = 1) {
$arr = array();
for ($i = 0 ; $i < strlen($str) ; $i += $size) {
$
Hi there,
I am having difficulties to order user into a ranking table. In the listing of
the users I use a select statement, where I order after points and registration
date. Then I print out thre results counting the rows. 1,2,3...
SELECT
u.user_name,
FROM
usertable
ORDER BY
On Thursday 16 September 2004 10:53, Sam Hobbs wrote:
> "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> > So now are you fully convinced it's your firewall that's the root of your
> > problem?
>
> No, not really. At the moment I am assuming it is a bug in something
>
Irrelevant, Warren
Mag,
the point is that you're trying to use a function (filesize) that uses
the stat() system call. This function is not supported using the http
wrapper to fopen (because HTTP doesn't support it at all)
So regardless of whether you should be using the file name or the handle
Chances are your 1KB file contains an error message - try changing the
Content-Type to text/plain or text/html to see what PHP is throwing at you
Cheers
Chris
Marek Kilimajer wrote:
PHP Junkie wrote:
Ave,
I've been having a very nagging and frustrating problem for a while
and I
hope someone can
On Thursday 16 September 2004 11:06, Sam Hobbs wrote:
> It is my understanding that the firewall is not supposed to be relevant. I
> have not seen anything saying it is supposed to be. If it is true that it
> is not supposed to be relevant, then simply saying it is just causes
> confusion. If you
On Thursday 16 September 2004 11:51, raditha dissanayake wrote:
> me thinks it's time to look very closely at http://www.postgresql.org
> Not just you sam, all of us.
If everyone subscribes to your reasoning then nobody would be using Windows
(yay!).
Anyway FWIW I found postgresql's system of g
On Thu, 16 Sep 2004 10:43:46 +0200, Merlin wrote:
> Theoreticly the result number of the first select statement should be identical
> with the count statement, but it is not.
>
> Has anybody an idea how to fix that?
>
It can't be the same number as you are using a where clause in the second
st
Jason Wong wrote:
On Thursday 16 September 2004 11:51, raditha dissanayake wrote:
me thinks it's time to look very closely at http://www.postgresql.org
Not just you sam, all of us.
If everyone subscribes to your reasoning then nobody would be using Windows
(yay!).
I am a recent convert
Hi there,
I am wondering how to disable the php info inside the response header info.
This might be possible since this info is not for other people. Hackers might
find all versions to searching for security weaknes.
Here is an example:
X-Powered-By: PHP/4.3.5
X-Accelerated-By: PHPA/1.3.3r2
Thank
Thomas Seifert wrote:
On Thu, 16 Sep 2004 10:43:46 +0200, Merlin wrote:
Theoreticly the result number of the first select statement should be identical
with the count statement, but it is not.
Has anybody an idea how to fix that?
It can't be the same number as you are using a where clause in th
On Thu, 16 Sep 2004 16:21, Adwinwijaya wrote:
> Hello PHP Users,
>
> I have files (that protected from direct download) and I put it
> outside public_html/ directory (outside web server directory).
>
> and the people from outside could access the file by typing:
> www.myweb.com/download.php?file
On Thursday 16 September 2004 05:06, Sam Hobbs wrote:
> It is my understanding that the firewall is not supposed to be relevant. I
It is our experience at my employer that the firewall in XP-SP2, as well as
other firewalls that are available, are very relevant.
> have not seen anything saying it
On Thu, 16 Sep 2004 18:45, Merlin wrote:
> Hi there,
>
> I am wondering how to disable the php info inside the response header
> info. This might be possible since this info is not for other people.
> Hackers might find all versions to searching for security weaknes.
>
> Here is an example:
> X-
All this is irrelevant; while you're still trying to use MySQL 5 with
mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK
Sort that out first before you start worrying about firewalls - you
can't test the firewall if you can't ever have a successful test case.
Cheers
Chris
Markus Ma
This stumped me badly in my present project. Is this a bug or a feature in
PHP? I am trying to split a string into two, where only one half (and the
delimiter) is present.
IN PERL
==
[EMAIL PROTECTED] ~]$ cat s1.pl
@t = split(/,/ , "a,b");
$len = $#t + 1;
print "
Sandip Bhattacharya wrote:
This stumped me badly in my present project. Is this a bug or a feature in
PHP? I am trying to split a string into two, where only one half (and the
delimiter) is present.
[ trim ]
IN PHP
===
[EMAIL PROTECTED] ~]$ cat s1.php
[EMAIL PROTECTED] sql]$ p
Nick Wilson wrote:
Anyone else getting these infuriating italian messages about some muppet
that doesnt exist?
'desintione non existente'?
I've written to [EMAIL PROTECTED] but no joy, everytime i post on the
php list i get half a dozen of the damn things...
Yup, guess some Italian 1337 h4x0r has s
On Thursday 16 September 2004 17:52, Chris Dowell wrote:
> All this is irrelevant; while you're still trying to use MySQL 5 with
> mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK
>
> Sort that out first before you start worrying about firewalls - you
> can't test the firewall if you
Hello Jason
Thanks I understand now, but tell me someting, PHP don't have any function
that create a button???
When I want to clean a DB I have to call another page always
tell me you don't have any code for example that do the same thing that I
want to do???
Thanks again
Yusda
On Thursday 16 September 2004 17:19, Merlin wrote:
> the where clause is a replacement for the order by clause in the first
> statement. Inside this first select statement I am showing 20 results on
> each page with the limit command as shown here:
>
> SELECT
> u.user_name,
> FROM
> user
John Holmes wrote:
From: "Neo Theone" <[EMAIL PROTECTED]>
I am searching for a MySQl to Object abstraction class.
I am thinking something like WebObjects does in Java (it is just a
part) in PHP. I had one for Ruby but now I have to use a DB in MySQL
and such a class would make it alot easier.
Ar
From: "Neo Theone" <[EMAIL PROTECTED]>
I am searching for a MySQl to Object abstraction class.
I am thinking something like WebObjects does in Java (it is just a part)
in PHP. I had one for Ruby but now I have to use a DB in MySQL and such
a class would make it alot easier.
Are you talking about
Ave,
I made a change last evening, and since the change.. It seems to be working
fine. Thus far I haven't had the 1 KB downloaded file problem. I have been
trying all evening and this morning, from different places, and somehow
right now it seems to be working fine.
What I simply did was this:
[snip]
I am looking for a absolute transparent interface to access each field a
s a object.
So if i would have a table like this:
tablename: namedtable
--
| id | foo | bar |
--
| 01 | aaa | uuu |
--
| 02 | bbb | mmm |
--
I could ac
From: "PHP Junkie" <[EMAIL PROTECTED]>
As my link to the download file, I changed it to
And changed the code in the download file to
How are you validating $F and ensuring it's not a path to any file on your
server?
imsafm_user_dl.php?F=/home/path/to/secret/file.txt
---John Holmes...
--
PHP G
John Holmes wrote:
From: "PHP Junkie" <[EMAIL PROTECTED]>
As my link to the download file, I changed it to
And changed the code in the download file to
How are you validating $F and ensuring it's not a path to any file on
your server?
imsafm_user_dl.php?F=/home/path/to/secret/file.txt
It's a F
#For PHP5.0.1 with Apavhe2.050 with Windows XP Home eddition S. Pack2 as a SAPI module.
#In Apache config file httpd add following:
AddType application/x-httpd-php .php
LoadModule php5_module c:/php/php5apache2.dll
PHPIniDir = "C:/php"
#Then go to control panel, Prformance and Maintenance, System,
#For PHP5.0.1 with Apavhe2.050 with Windows XP Home eddition S. Pack2 as a SAPI module.
#In Apache config file httpd add following:
AddType application/x-httpd-php .php
LoadModule php5_module c:/php/php5apache2.dll
PHPIniDir = "C:/php"
#Then go to control panel, Prformance and Maintenance, System,
* Thus wrote Sam Hobbs:
> "Janbro" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi I connect to a MySQL 4.1 with the following String:
> >
> >
> > if
> > ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n
> > ame"))
> >
> > watch the i in mysqli_conne
* Thus wrote T UmaShankari:
>
> Hello,
>
> I am having one string variable which has the value fetched from the
> mysql table. Is it possible to find '\0' character in that string ?
http://php.net/strstr
http://php.net/strpos
strstr($nulledstring, "\0");
strpos($nulledstring, "\0");
Curt
--
* Thus wrote Sandip Bhattacharya:
> This stumped me badly in my present project. Is this a bug or a feature in
> PHP? I am trying to split a string into two, where only one half (and the
> delimiter) is present.
>
>
> IN PERL
> ==
> [EMAIL PROTECTED] ~]$ cat s1.p
Hi,
Besides Zend, has anyone successfully used and know of any PHP accelerators
that work with PHP 5.x?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Martin Holm wrote:
Michael Mao wrote:
Thanks John.
Found what I'm looking for:
Function str_split()
to make it php4 compatible you can use this function:
|
if (!function_exists('str_split')) {
function str_split ($str, $size = 1) {
$arr = array();
for ($i = 0 ; $i < strlen($str) ; $i +=
PHP's string manipulation functions (such as split()) are not guaranteed to
behave exactly like in PERL. The functions that are prefixed by 'preg_' are
(PERL REG (EX)) guaranteed to some extent and well documented where preg_
functions are not PERL compliant.
So, its not a bug, its just PHP being
Chris Dowell wrote:
All this is irrelevant; while you're still trying to use MySQL 5 with
mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK
Sort that out first before you start worrying about firewalls - you
can't test the firewall if you can't ever have a successful test case.
Ch
Hi,
Thursday, September 16, 2004, 4:51:51 PM, you wrote:
a> Hello PHP Users,
a> I have files (that protected from direct download) and I put it
a> outside public_html/ directory (outside web server directory).
a> and the people from outside could access the file by typing:
a> www.myweb.com/downl
woah, full functionality.. it has will still connect, at least, it will
still connect for me. Where the functionality is missing, im not sure.
But sinse the error is cant connect to localhost, i would say that it
strying to connect to localhost, and not being allowed.
That said, im fully open
Or better yet, the mail list could be reconfigured to match every other
mail list on the web, so that sender to the list doesn't get these.
Nick Wilson wrote:
Anyone else getting these infuriating italian messages about some muppet
that doesnt exist?
'desintione non existente'?
I've written to [E
I could have sworn that there was a function that dropped ALL GET values
into an associative array. Kind of the inverse of "http_build_query".
At any rate, you can keep doing (isset($_REQUEST['mov']) AND
isset($_REQUEST['year'])) and such. Is that your question? How do you
do AND and OR operatio
i am in total agreeance of this post. Sinse the 'flame' war is
primarily between me and everyone else, especially sam hobbes, (not the
first time either), no more contributiuons to this thread from me. I
hope it gets resolved, and i hope it gets posted as much so others can
search the archive of
Jason Davidson wrote:
woah, full functionality.. it has will still connect, at least, it will
still connect for me. Where the functionality is missing, im not sure.
But sinse the error is cant connect to localhost, i would say that it
strying to connect to localhost, and not being allowed.
The
--- Merlin <[EMAIL PROTECTED]> wrote:
> I am having difficulties to order user into a ranking table. In
> the listing of the users I use a select statement, where I order
> after points and registration date. Then I print out thre results
> counting the rows. 1,2,3...
>
> SELECT
> u.user_nam
--- Merlin <[EMAIL PROTECTED]> wrote:
> I am wondering how to disable the php info inside the response
> header info.
This page discusses that sort of thing:
http://www.php.net/manual/security.hiding.php
Hope that helps.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reill
Hi,
> Besides Zend, has anyone successfully used and know of any PHP
> accelerators
> that work with PHP 5.x?
There are others?
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 16 Sep 2004 12:08:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote:
>
> There are others?
http://www.php-accelerator.co.uk/
http://pecl.php.net/package-info.php?package=APC
http://turck-mmcache.sourceforge.net/
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
Hi,
> http://www.php-accelerator.co.uk/
>
> http://pecl.php.net/package-info.php?package=APC
>
> http://turck-mmcache.sourceforge.net/
Oh wow, I had no idea.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
//PHP4
$dir_to_scan = "website.com/htdocs";
$dir_handle = opendir($dir_to_scan);
while($filename = readdir($dir_handle)){
if(is_dir($filename)){
$files_in_scan[] = $filename;
}
else{ echo"$filename is not a directory.\n"; }
}
sort($files_in_scan);
- Original Message -
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 12:55 PM
Subject: [PHP] PHP4 readdir is_dir working incorrectly?
//PHP4
$dir_to_scan = "website.com/htdocs";
$dir_handle = opendir($dir_to_scan);
while($fi
I am having an issue with 'setlocale'. I have created a proper
messages.po (and compiled .mo) file in the following directory:
$_SERVER['DOCUMENT_ROOT']/locale/fr_FR/LC_MESSAGES
There are only two languages -- English and French.
Here's the snippit of code that handles the langage change. I
Kristopher Spencer-Yates wrote:
//PHP4
$dir_to_scan = "website.com/htdocs";
$dir_handle = opendir($dir_to_scan);
while($filename = readdir($dir_handle)){
if(is_dir($filename)){
$files_in_scan[] = $filename;
}
else{ echo"$filename is not a directory.\n"; }
On Thu, 16 Sep 2004 11:15:13 -0400, Gryffyn, Trevor
<[EMAIL PROTECTED]> wrote:
> I could have sworn that there was a function that dropped ALL GET values
> into an associative array. Kind of the inverse of "http_build_query".
>
I believe you're thinking of import_request_variables ().
http://us2.
That's it! Thanks! Beautiful! :)
Worth noting is the "extract()" function mentioned at the bottom of that
page too, used for importing any array into the global space.
Thank you very much, Andrew. I knew I had seen that somewhere.
-TG
> -Original Message-
> From: Andrew Kreps [mailt
--- Andrew Kreps <[EMAIL PROTECTED]> wrote:
> --- Trevor Gryffyn <[EMAIL PROTECTED]> wrote:
> > I could have sworn that there was a function that dropped ALL
> > GET values into an associative array. Kind of the inverse of
> > "http_build_query".
>
> I believe you're thinking of import_request_var
Hi,
I just started with PHP. (I used to work on ASP a lot)
What does the syntax ".=" do?
i see a line of code that says
$Msg .= "Test is complete"
I'm thinking it means concatenate $Msg with "Test is complete" and then
store the new string into $Msg
Am I right?
Thanks.
--
PHP General Mail
[snip]
$Msg .= "Test is complete"
I'm thinking it means concatenate $Msg with "Test is complete" and then
store the new string into $Msg
Am I right?
[/snip]
Yes. You might see $Msg = (no concatenator) somewhere above it in the
code...we code long SQL statements and things like e-mail bodies usin
> $Msg .= "Test is complete"
>
> I'm thinking it means concatenate $Msg with "Test is complete" and then
> store the new string into $Msg
>
> Am I right?
you are correct, same as:
$Msg = $Msg."Test is complete"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Victor C. wrote:
Hi,
I just started with PHP. (I used to work on ASP a lot)
What does the syntax ".=" do?
i see a line of code that says
$Msg .= "Test is complete"
I'm thinking it means concatenate $Msg with "Test is complete" and then
store the new string into $Msg
Am I right?
Thanks.
It does co
> * Thus wrote Sandip Bhattacharya:
>> This stumped me badly in my present project. Is this a bug or a feature
>> in
>> PHP? I am trying to split a string into two, where only one half (and
>> the
>> delimiter) is present.
>>
>>
>> IN PERL
>> ==
>> [EMAIL PROTECTED
I have a database with a date field in this format
20041016
I'd like to count how many records were made on each day (except today)
and average them. Can I do this in one query or will I need to do some
more PHP stuff after I get some results? Thanks.
Bare bones so far:
$sql = "select date1 from
You're right though, $_GET and $_POST and such are already an
associative array. I actually think I was thinking of a function that
parsed a URL itself, regardless of whether it was submitted or not. I'm
all kinds of mixed up today, so I apologize for being kind of scrambled
in the brain.
Is the
Select date1,count(date1) group by date1 where date1 <> '$today'
That'll get you the count of how many records were done on each day
(excluding today). I don't know what you're trying to average, but you
can probably figure it out from there.
-TG
> -Original Message-
> From: Jeff Oien [
From: "Jeff Oien" <[EMAIL PROTECTED]>
I have a database with a date field in this format
20041016
I'd like to count how many records were made on each day (except today)
and average them. Can I do this in one query or will I need to do some
more PHP stuff after I get some results? Thanks.
Bare b
[snip]
I have a database with a date field in this format
20041016
I'd like to count how many records were made on each day (except today)
and average them. Can I do this in one query or will I need to do some
more PHP stuff after I get some results? Thanks.
Bare bones so far:
$sql = "select dat
Jack Gates wrote:
I would do this in PHP5 but the admin won't upgrade, so I am stuck in
PHP4 land w/ this project I am on.
Thanks for any advise,
We are setting up another web hosting server and we are planning to install
PHP5.
You might consider moving your site to our servers.
http://www
John H & John N,
Thanks again. I am sure that is it, without a doubt.
Laughing at myself - ridiculous oversight on my part! :) LMAO cant
beleive I didnt see that earlier and posted to the list. Please join in
laughing at me because I have been slinging PHP since early 99 and
should have cau
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]>
Please join in laughing at me because I have been slinging PHP since early
99 and should have caught that immediately!!
I was already planning to do a lot of laughing at you tonight, anyhow, from
around 2100 - 2130, so, I hope it helps and ever
John Holmes wrote:
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]>
Please join in laughing at me because I have been slinging PHP since
early 99 and should have caught that immediately!!
I was already planning to do a lot of laughing at you tonight, anyhow,
from around 2100 - 2130, so, I ho
[snip]
Just so we're clear, and all on the same page, can you give us that time
in GMT? I mean, we don't want to have an unorganized laugh-off again,
now do we?
[/snip]
-1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: "John Nichel" <[EMAIL PROTECTED]>
Just so we're clear, and all on the same page, can you give us that time
in GMT? I mean, we don't want to have an unorganized laugh-off again, now
do we?
Man... why do you have to be such as ass John? Can't you just ignore
people...err.. wait.. wrong disc
On Thu, 16 Sep 2004 15:15:01 -0400, John Holmes
<[EMAIL PROTECTED]> wrote:
> You can't get the average and a count in the same query
Sure you can.
> desc numbers;
++-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
++-+--+---
--- "Gryffyn, Trevor" <[EMAIL PROTECTED]> wrote:
> You're right though, $_GET and $_POST and such are already an
> associative array. I actually think I was thinking of a function
> that parsed a URL itself, regardless of whether it was submitted
> or not.
This makes absolutely no sense to me. Wha
> >http://www.morningstarcom.net/hosting.php
Need sunglasses to view the t50.com graphics. Heh.
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I know you could write a short script that would do it, but I
> think I saw a built-in function that did it as well.
I think parse_str is what you're looking for:
http://www.php.net/manual/en/function.parse-str.php
i.e. parse_str(getenv('QUERY_STRING'))
--
Mario
> -Ursprünglic
John Holmes wrote:
From: "John Nichel" <[EMAIL PROTECTED]>
Just so we're clear, and all on the same page, can you give us that
time in GMT? I mean, we don't want to have an unorganized laugh-off
again, now do we?
Man... why do you have to be such as ass John? Can't you just ignore
people...err
[snip]
> You can't get the average and a count in the same query
Sure you can.
mysql> select count(number), avg(number) from numbers;
+---+-+
| count(number) | avg(number) |
+---+-+
|18 | 2.3889 |
+---+-+
1 r
From: "Greg Donald" <[EMAIL PROTECTED]>
You can't get the average and a count in the same query
Sure you can.
mysql> select count(number), avg(number) from numbers;
Depends how you interpret his request, I guess. I took it as a request for
the count of records per day and then the average of those
On Thu, 16 Sep 2004 16:08:45 -0400, John Holmes
<[EMAIL PROTECTED]> wrote:
> Depends how you interpret his request, I guess. I took it as a request for
> the count of records per day and then the average of those counts.
>
> So, if you had
>
> D1
> D1
> D1
> D1
> D2
> D2
> D3
>
> The count would
As many of you may have noticed, A friend and I have noticed the odd
text at the bottom of spam. My friend once stated "What if this is some
secret code.. they send it to everyone to hide that it is code.. but the
person it is intended for knows how to decipher?" Hmm.. interesting.
So that
John Holmes wrote:
From: "Greg Donald" <[EMAIL PROTECTED]>
You can't get the average and a count in the same query
Sure you can.
mysql> select count(number), avg(number) from numbers;
Depends how you interpret his request, I guess. I took it as a request
for the count of records per day and then
From: "Greg Donald" <[EMAIL PROTECTED]>
mysql> select the_date, count(number), avg(number) from dates group by
the_date;
++---+-+
| the_date | count(number) | avg(number) |
++---+-+
| 2004-01-01 | 3 | 2.
On Thu, 16 Sep 2004 12:47:26 -0700 (PDT), Chris Shiflett
<[EMAIL PROTECTED]> wrote:
>
> This makes absolutely no sense to me. What do you mean by submitted? How
> would a PHP script be executed at all if the browser never sends a
> request?
>
PHP can be run from the command line, in which case t
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]>
I was wondering if anyone else has wondered the same thing about the wierd
text at the bottom of a lot of the spam, and if anyone has ever used PHP
to create any cipher tools in an attempt to crack the following:
The text is simply there to get
[snip]
mysql> desc dates;
+--+-+--+-+-+---+
| Field| Type| Null | Key | Default | Extra |
+--+-+--+-+-+---+
| the_date | date| YES | | NULL| |
| number | int(11) | | | 0 | |
+--
> This makes absolutely no sense to me. What do you mean by
> submitted? How
> would a PHP script be executed at all if the browser never sends a
> request?
Hah.. I should just let this all go, go home, get some sleep, and start
confusing people again tomorrow, but I want to clarify a little bit.
All, I have a PHP Command Line Interface (CLI) script which uses stdin and
stdout for reading and writing to/from the terminal. Now I need to have
that script open another PHP-CLI script which ALSO needs to uses stdin and
stdout for reading and writing to/from the terminal. This script may in turn
From: "Andrew Kreps" <[EMAIL PROTECTED]>
Also, imagine if you had a database of URL's that you wanted to
dissect for it's component information?
That being said, I'm not aware of a PHP function that performs this
operation for you.
parse_url() and parse_str()
---John Holmes...
--
PHP General Maili
Ahh.. Andrew has read my confused mind. Yeah, that's what I was getting
at. Solution Accepted or something. :) Ok, I'm going to go home now
before I cause any more problems.
-TG
> -Original Message-
> From: Andrew Kreps [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 16, 2004 4:
From: "Gryffyn, Trevor" <[EMAIL PROTECTED]>
Regardless of how this script is called, is there, or is there not a
function that will take that string and pull the values after the "?"
and toss them into an associative array?
Yes, parse_url() to get the query string and then parse_str() to put it int
On Thu, 16 Sep 2004 13:31:08 -0700, Andrew Kreps <[EMAIL PROTECTED]> wrote:
> PHP can be run from the command line, in which case the GET and POST
> arrays wouldn't exist.
$_GET and $_POST exist in CLI php, they are just empty initially:
#!/usr/bin/php
Array
(
)
Array
(
)
Array
(
[x] => 1
)
On Thu, 16 Sep 2004 16:25:31 -0500, Greg Donald <[EMAIL PROTECTED]> wrote:
> On Thu, 16 Sep 2004 13:31:08 -0700, Andrew Kreps <[EMAIL PROTECTED]> wrote:
> > PHP can be run from the command line, in which case the GET and POST
> > arrays wouldn't exist.
>
> $_GET and $_POST exist in CLI php, they a
On Thu, 16 Sep 2004 16:40:13 -0400, Don Myers <[EMAIL PROTECTED]> wrote:
> All, I have a PHP Command Line Interface (CLI) script which uses stdin and
> stdout for reading and writing to/from the terminal. Now I need to have
> that script open another PHP-CLI script which ALSO needs to uses stdin a
How can I use a PHP variable as the destination for a link?
go here
With var...? How do I write this?
go here
?>
--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]
Check out some great Domain Names at:
http://www.domains4days.com
--
PHP General Mailing List (http://www.php.net/)
To unsubs
On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE <[EMAIL PROTECTED]> wrote:
> How can I use a PHP variable as the destination for a link?
>
>
> go here
>
> With var...? How do I write this?
>
> go here
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing
Well that certainly runs them one after the other but it doesn't stop for
text input. It Just stops all together?
Filename: tester.php
#!/usr/local/bin/php -q
Filename: hello.php
#!/usr/local/bin/php -q
Is my input function no good?
Don Myers
on 9/16/04 5:39 PM, Greg Donald at [EMAIL PROTEC
On Friday 17 September 2004 04:14, Kristopher Spencer-Yates wrote:
> As many of you may have noticed, A friend and I have noticed the odd
> text at the bottom of spam. My friend once stated "What if this is some
> secret code.. they send it to everyone to hide that it is code.. but the
> person it
-- Original message from Kristopher Spencer-Yates : --
> As many of you may have noticed, A friend and I have noticed the odd
> text at the bottom of spam. My friend once stated "What if this is some
> secret code.. they send it to everyone to hide that it is code.. bu
>> As many of you may have noticed, A friend and I have noticed the odd
>> text at the bottom of spam. My friend once stated "What if this is some
>> secret code.. they send it to everyone to hide that it is code.. but the
>> person it is intended for knows how to decipher?" Hmm.. interesting.
>
>
We should make that the new X-files movie. "When good mail goes SPAM!"
Dustin Wish
System Engineer & Programmer
INDCO Networks
Pres. OSSRI
Pres. WTA Arkansas
"Do not go where the path may lead, go instead
where there is no path and leave a
1 - 100 of 111 matches
Mail list logo