Hi everyone,
I have a pretty strange problem that may be simple, but I have never heard
of it.
//I have a database in the following format:
2
2
2
Cd's
Cd's
DVD's
DVD's
DVD's
DVD's
DVD's
// Someone recently helped me out in writing a short script that
would turn it into this:
On Friday 15 November 2002 14:32, Mike MacDonald wrote:
> $CompositeURL="http://202.20.65.2:3000/sportzHUB/Fletchers/BookingResults
> ?$post";
> echo $CompositeURL;
>
> // Pull in Snoopy
> include "ProxyInc.html";
> $snoopy = new Snoopy;
> $snoopy->fetch("$CompositeURL");
> print $snoopy->results
[EMAIL PROTECTED] (Ernest E Vogelsinger) wrote in
news:5.1.1.6.2.20021115015548.028ef858@;mail.vogelsinger.at:
> [EMAIL PROTECTED]
Ernest !
I just tried out your solution and it formats up the get string out of
the box! We're really close because although the page still errors, if I
print th
Well thanks heaps everyone for some very good ideas !
I'm taking bits and pieces and coming together with a very fine
understanding !
Much appreciated !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tor, 2002-11-14 kl. 16:54 skrev CJ:
> There was not a swear word in my original post but there was a word that
> contained a swear word but is itself not a swear word. The word is Scu
>
> n
>
> thorpe
Don't believe it.
--
Tony Earnshaw, Yorkshireman, ah cum fra Scunthorpe mesemn.
Cricketer
tor, 2002-11-14 kl. 20:32 skrev Ewout de Boer:
> You could exec the ping command and analyze its output using regular
> expressions.
I just wondered whether Bryan wasn't trying to reinvent the wheel
(www.nessus.org, www.insecure.org, etc.)
Best,
Tony
--
Tony Earnshaw
Cricketers are strange
I am looking into how I can make a database like this one that is MySql
controlled. http://www.uhlfans.com/uhlstats/ That is one of my partners
sites but the guy that created the database can't or won't tell me how to
build one myself for a different subject. Thanks for your help!
--
PHP Genera
Okay this is probably a common subject for questions from
newbies like me but I searched the archive first and I didn't find
anything about my specific question.
I have been learning PHP for a few weeks now and I have a
working download counter script already wrote. It works great the
way i
Hi,
What's the latest version of PHP that can handle HTTPS:// post?
Thanks,
-Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Some extensions are like not 100% available for Win32 environment. I use PHP
4.3.0pre2, Apache 2.0.43 and J2SDK 1.4.1
For XML, you need expat-1.95.5 and copy libexpat.dll to c:\windows\system32.
For XSLT, you need sablot-0.96 and copy sablot.dll to c:\windows\system32.
//php.ini
extension_dir =
Hi,
I am using curl to send xml string to my merchant's account gateway when
curl_exec() executes the xml is successfully received by its destination but
I am not getting anything back (it just hangs) Could anyone help me with
this problem?
The following is my curl configuration:
// TELL cURL TO
Not sure if I wrote and thanked you or not, but this did the trick. THANK
YOU THANK YOU THANK YOU!!!
Steve
At 08:41 PM 11/14/2002 +0100, Marek Kilimajer wrote:
This is checked:
function getstart_end(){
$result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min");
whil
At 02:42 15.11.2002, Sascha Cunz said:
[snip]
>This sounds like a pretty good idea to work around that problem :-)
>
>Does this system work, if the user decides to split "one session" accross
>multiple "Browser-Windows", i.e. the uses the "Open in new window
Hi Jochen,
> How can I process $_SESSION variables if the user disables cookies
> and session.use_trans_sid = 0 ?
You could use a combination of outputbuffering and a self-written
session-handler.
So you could build a trans_sid-alike system, that would do more checks (i.e.
compare IP-Addresses)
Try:
number_format()
Hugh
- Original Message -
From: "Sascha Cunz" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 5:37 PM
Subject: Re: [PHP] Subtracting Money
Hi Stephen,
> I'm having a problem. I need to subtract
> Simply put - you can't.
>
> You need a way to transmit the session identifier, and AFAIK there's
> nothing except either cookies or SID.
>
> Using SID for security relevant issues presents a problem - users can send
> links with a SID to friends by mail or else, so this is not really a secure
> s
Hi Stephen,
> I'm having a problem. I need to subtract money, but if they type in an
> ammount such as $2.30 and I subtract $0.20, instead of returning $2.10 like
> it should, it returns $2.1. How can I fix this keeping in mind that other
> variable could be $2.40 or $100.30 and so on...?
This is
At 02:18 15.11.2002, Jochen Kächelin said:
[snip]
>How can I process $_SESSION variables if the user disables cookies
>and session.use_trans_sid = 0 ?
[snip]
Simply put - you can't.
You need a way to transmit the ses
This sounds like you are in Javascript.. if not what about just replacing
out the $ with nothing then doing the equation and then re adding and
formating to currency.
You could do the same with Javascript as well.
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
If you need PHP hosting with an expe
I'm having a problem. I need to subtract money, but if they
type in an ammount such as $2.30 and I subtract $0.20, instead of returning
$2.10 like it should, it returns $2.1. How can I fix this keeping in mind that
other variable could be $2.40 or $100.30 and so on...?
Thanks,Stephen Cratonht
I made a test with the Phoenix-Browser and ENABLE COOKIES = OFF in
the Privacy configuration of the browser.
my index.php:
index2.php\n";
?>
my index2.php:
My php.ini:
session.use_trans_sid = 0
on index2.php there's no result -> $_SESSION["test"] is not set.
when I enable
session.use_tr
Hello,
On 11/14/2002 03:38 PM, Www.Nukedweb.Com wrote:
How many of you have listed "premium" (not free) scripts on HotScripts?
Have you ever had ranking problems? Everything was going great for me,
I had 12 scripts listed, all on the tops of the categories, and then
poof!
Now all my scripts are o
wanna write an article for PHP Beginner? We'd be looking for something
like this some time next month...
--
Maxim Maletsky
[EMAIL PROTECTED]
On Mon, 4 Nov 2002 15:46:12 -0600 "Clint Tredway" <[EMAIL PROTECTED]>
wrote:
> I have a small example of using Flash/PHP if anyone wants it..
>
> Clin
Just never do it period...that is the best habit to have...
That is poor coding on the programmers part...
On Fri, 2002-11-15 at 00:59, Maxim Maletsky wrote:
> using this method for a production environment is incredibly vulnerable.
> Just think of having a link on that page to some other site (o
At 00:41 15.11.2002, Mike MacDonald said:
[snip]
>Hi People!
>Can anyone help with this:
>
>
> Want to pick up variables passed from form in
> PHP page and pass to distant site. Can use
> long get, but would like to access ALL variables
> in the PHP p
using this method for a production environment is incredibly vulnerable.
Just think of having a link on that page to some other site (or even having
a third-party banner displayed) on which there is a hit counter (and on
90% there are) those can simply read the link in their logs.
Never ever use
On Sun, 12 Nov 2000 22:25:59 - "Iguider" <[EMAIL PROTECTED]> wrote:
> I am running normally a phpMyAdmin 2.2.6, until yesterday it shows me :
So it works now?
I will assume no... Describe your system to the list and what could
have possibly be changed yesterday. You might have an solution so
At 23:53 14.11.2002, Lars Espelid said:
[snip]
>Try to execute this code:
>if (ereg[^0-9], $num))
>print "That's not a number!";
>
>result: parsing error, expects ')' on the if-line.
You forgot an opening bracket, and need to quote the regex, like
if
Why not put them into an array then look at array functions such
as unique checking etc...
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
If you need PHP hosting with an experienced
support team 24/7 then email me today.
On Fri, 15 Nov 2002, John Fishworld wrote:
> Hi,
>
> I've got some variab
Ok, I have a problem with the header() redirect function, below is the
part-code/part-pseudocode information. The file that this code is
encapsulated in is a single file named add_item.php. There is no output
before the header() function. Now this is a weird one, but I did some
testing and here is
Hi,
I've got some variable variables which i need to check that they are not
the
same !
There can be up to 9 of them !
for ($i = 1; $i <= $city_only_one; $i++) {
$citydb = "stellen_city_".$i ;
$new_city_db.$i = $$citydb;
and what i need to do is check that
$new_city_db1 does not equal $
- Original Message -
From: "Lars Espelid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 9:59 PM
Subject: [PHP] Can't escape characters in php??
> Hello,
>
> I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro.
>
> Also '\n' in an echo-expression won't wo
Hello again...
Lars Espelid wrote:
Hello,
I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro.
My problem is as follows:
Try to execute this code:
if (ereg[^0-9], $num))
print "That's not a number!";
result: parsing error, expects ')' on the if-line.
This one does have a parse error
Hello,
Lars Espelid wrote:
Hello,
I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro.
The following code is taken from the book mastering PHP 4.1 and is supposed
to work:
if (ereg([^0-9], "2002-11-14"))
print "That's not a number!";
It won't work for me. I get a parse error expecting a
Oh, WRT the \n: it works--but you're probably outputting to a browser,
which ignores the newline and only interprets HTML code.
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.
You're simply missing quotation marks, as far as I can see:
if (ereg('[^0-9]', "2002-11-14"))
print "That's not a number!";
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www
Are you using array vars in your HTML form?
eg:
etc etc
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
If you need PHP hosting with an experienced
support team 24/7 then email me today.
On 14 Nov 2002, Mike MacDonald wrote:
> Hi People!
> Can anyone help with this:
>
>
>Want to pick up
Hello,
I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro.
The following code is taken from the book mastering PHP 4.1 and is supposed
to work:
if (ereg([^0-9], "2002-11-14"))
print "That's not a number!";
It won't work for me. I get a parse error expecting a ')'.
I have also tried other
Pulling this idea from down south, but could you do serialize($_GLOBALS)
and then POST that to the distant site and unserialize it?
what are you trying to accomplish exactly? A Proxy?
-js
Mike MacDonald wrote:
> Hi People!
> Can anyone help with this:
>
>
>Want to pick up variables passed
If your variables are not more than 4,096 bytes (which I think is limit
for the get string), you can just pass a GET variable whose value is
urlencode (serialize ($_REQUEST));
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated
Hi People!
Can anyone help with this:
Want to pick up variables passed from form in
PHP page and pass to distant site. Can use
long get, but would like to access ALL variables
in the PHP page and pass them forward, without
coding each individual one if possible
The problem is that non-php files are not (normally) parsed through the
PHP interpreter, and therefore the clause you're specifying has no
effect.
There are two solutions (at least that come to mind now):
1) Change your Apache configuration so that all files are parsed through
PHP (inefficient an
Hello,
I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro.
My problem is as follows:
Try to execute this code:
if (ereg[^0-9], $num))
print "That's not a number!";
result: parsing error, expects ')' on the if-line.
Have also tried other expressions where I escape characters. They won't
work
Hi,
I couldn't find this in the documentation, or in the archives of the mailing list, so
I apologize if it's been answered many times before :)
I'm trying to use auto_prepend_file to prepend a php file to every file in a folder,
not just .php files.
I have:
php_value auto_prepend_file "/
Yeah I had the same problem a while ago. it's an easy one to miss if you
don't know what keywords to search for. :)
-Kevin
- Original Message -
From: "Greg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 4:06 PM
Subject: Re: [PHP] parse comma delimited file
Great, thanks...didn't see that one :)
-Greg
"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
news:176401c28c32$11cf7fe0$6601a8c0@;kevin...
> You bet there is..
>
> fgetcsv();
> http://www.php.net/manual/en/function.fgetcsv.php
>
> -Kevin
>
> - Original Message -
> From: "Greg" <[EMAIL
You bet there is..
fgetcsv();
http://www.php.net/manual/en/function.fgetcsv.php
-Kevin
- Original Message -
From: "Greg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 3:57 PM
Subject: [PHP] parse comma delimited file
> Hi-\
> Is there an easy way in PHP
IE5 Mac is a *B I T C H* with file downloads. It doesn't behave like any
tutorial suggests it should.
Justin French
on 15/11/02 1:22 AM, Ernest E Vogelsinger ([EMAIL PROTECTED]) wrote:
> At 15:13 14.11.2002, Javier Montserat spoke out and said:
> [snip]-
Check out DISTINCT in the MySQL manual... or is it UNIQUE ??
Try something like "SELECT DISTINCT * FROM "
JF
on 15/11/02 7:17 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED])
wrote:
> but I only want it to return unique values - in this case I would only
> want Fashion, Basics, Plus - instead o
Dope...try this instead...
foreach ( $array AS $a )
{
$string .= implode("\t", $a) . "\n";
}
-js
Jonathan Sharp wrote:
> foreach( $array AS $d2 )
> {
>$string .= implode('', $d2) . "\n";
> }
>
> -js
>
>
> René Fournier wrote:
>
>>The docs don't seem to discuss this... Or maybe I'm l
foreach( $array AS $d2 )
{
$string .= implode('', $d2) . "\n";
}
-js
René Fournier wrote:
> The docs don't seem to discuss this... Or maybe I'm looking in the wrong
> place. Anyway, I want to convert a multidimensional array back to the
> tab-delimited format it began as ("\t" separating fiel
Reading your other post, I think what you REALLY want to do is throw away an
variable that contains non-numeric values... Since you only want numbers,
then everything else must be a mistake, or an attack.
take the URL blah.php?foo=45&bah=hekygu
if(in_numeric($_GET['foo']))
{
// do stuff
Hi-\
Is there an easy way in PHP to parse a comma delimited text file that could
be uploaded in a form? Thanks!
-Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on 15/11/02 12:11 AM, CJ ([EMAIL PROTECTED]) wrote:
> I have a "contact us" php script on my site that allows users to email
> direct from the webiste. I want to be able to pass the to address and
> subject line to the script so I can call teh web page from elsewhere on the
> site and have it aut
Hi,
I've got some variable variables which i need to check that they are not the
same !
There can be up to 9 of them !
for ($i = 1; $i <= $city_only_one; $i++) {
$citydb = "stellen_city_".$i ;
$new_city_db.$i = $$citydb;
}
Any help appreciated
thanks
--
PHP General Mailing List (http://www
Try to put this at the top of your script-
/// SCRIPT ///
- Original Message -
From: "Ysrael Guzmán" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 9:00 AM
Subject: [PHP] PROBLEMS
THIS IS MY SCRIPT:
A
Ok, I have a problem with the header() redirect function, below is the
part-code/part-pseudocode information. The file that this code is
encapsulated in is a single file named add_item.php. There is no output
before the header() function. Now this is a weird one, but I did some
testing and here is
Hiya people,
I want to install some extensions like PDF and XSLT, curl etc. I have
the GD libary installed in my php.ini like this:
extension=php_gd.dll.
When i try to un quote the other extensions and restart Apache i get
errors, that he could load this extension. Also i have done this in my
I think the error is fairly self explanatory here - you can't pass the
parameter by reference. Globalising the $$class var will retain scope.
Danny.
- Original Message -
From: "Tularis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 9:29 PM
Subject: Re: [PHP
The docs don't seem to discuss this... Or maybe I'm looking in the
wrong place. Anyway, I want to convert a multidimensional array back to
the tab-delimited format it began as ("\t" separating fields, "\n"
seperating records/rows)... Any ideas???
...Rene
---
René Fournier,
[EMAIL PROTECTED]
one more thought bout this just for the record... not sure which is
faster, but this may be the better solution:
$index = substr($url, strrpos($url, '/'), strrpos($url, '.')-1);
-js
Jonathan Sharp wrote:
> good catch, i guess i love php so much i just expect it to know what i
> want it to do!
>
all header-modifying functions should be BEFORE any echoing is done, so:
session_start();
if(!session_is_registered("camion"))
DIE("error");
should be BEFORE:
Ysrael guzmán wrote:
THIS IS MY SCRIPT:
AND THE ERROR IS
Warning: Cannot send session cache limiter - headers already sen
call session_start() before
in this way:
..
and so on...
Coert Metz
Ysrael guzmán wrote:
THIS IS MY SCRIPT:
AND THE ERROR IS
Warning: Cannot send session cache limiter - headers already sent
(output started at
c:\foxserv\www\t-demo1\pedidos\prod_mostrar_tipo.php:4) in
c:\foxserv\www\
THIS IS MY SCRIPT:
AND THE ERROR IS
Warning: Cannot send session cache limiter - headers already sent
(output started at
c:\foxserv\www\t-demo1\pedidos\prod_mostrar_tipo.php:4) in
c:\foxserv\www\t-demo1\pedidos\prod_mostrar_tipo.php on line 5
/// SCRIPT
You are sending the header information to the browser before the session
stuff begins...
make sure that you call "session_start();" right after your I have a problem, i'm new in PHP
>
> It is the problem in my browsegive me the solution please
>
> Warning: Cannot send session cache limiter
You can also create new uni dimensional array
with key like this '0-1' and run array_unique
and after come back to myarray
for example
[UNTESTED]
foreach ($myarray as $key1 => $value)
foreach($value as $key2 => $value2) $new_array["$key1-$key2"] = $value2
;
unset($myarray) ;
$new_array = arr
GROUP BY column ???
For example if you want the count(*) of each value
do like this
SELECT column, count(*) from 'tablename' GROUP BY column ;
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 8:17 AM
Subject: [PHP] returning unique va
I have a problem, i'm new in PHP
It is the problem in my browsegive me the solution please
Warning: Cannot send session cache limiter - headers already sent
(output started at c:\foxserv\www\t-demo1\pedidos\prod_oficina.php:5) in
c:\foxserv\www\t-demo1\pedidos\prod_oficina.php on line 6
> I'm running a mysql query with the ORDER BY clause, the problem is that
> the column that I'm running them on is type tinytext. The data are
> product numbers, most of which are numbers, but some are like "404R" or
> whatever else. So if my values are 403, 404R,405, 4150 - the order ends
> up b
Ok, I combined both, your tip and Brent's, now I have the following
error, with the following code:
Fatal error: Cannot pass parameter 1 by reference in
/home/shadowlight/public_html/test/libs/global.lib.php on line 296
code:
function load(&$class){
global $$class;
$$class = new $class;
use: SELECT DISTINCT column FROM table
regards,
Ewout de Boer
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 10:17 PM
Subject: [PHP] returning unique values in columns
> Is there any way to run a query in mysql that retu
I'm running a mysql query with the ORDER BY clause, the problem is that
the column that I'm running them on is type tinytext. The data are
product numbers, most of which are numbers, but some are like "404R" or
whatever else. So if my values are 403, 404R,405, 4150 - the order ends
up being:
403
When you build your 2d array you could make a seperate 1d array that's
indexed by the fax number and if it's set, not set it in your array...
-js
René Fournier wrote:
> I'm finding this one hard to approach...
>
> I have a two-dimensional array, containing customer contact information.
> Looks
Is there any way to run a query in mysql that retuns unique values in a
column? For example, say i had this colum:
Column:
-
Fashion
-
Basics
-
Fashion
-
Plus
Plus
-
but I only want it to return unique values - in this case I would only
want Fashi
I think it is working, but you are not seeing anything because all the
"variables" and objects that are declared in your classes are destroyed
once the function exits (out of scope?). I just finished reading up on
this, but I think you want to look into passing data by reference
instead of valu
Hello,
Adding the following as the first line of overall->load() should solve your
problem.
global $$class;
HTH,
Danny.
- Original Message -
From: "Tularis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 8:18 PM
Subject: [PHP] OOP-related question
> Hey
Are you sure that the size is specified correctly?
I remember that i have but down 32 for mb when really it takes bytes as
the number so i had 32 bytes which sucked for me...
On Thu, 2002-11-14 at 20:36, Emiliano Marmonti wrote:
> Hello all,
>
> when I try to upload a file I receive the follo
OK - I got the rasmail codes from Zend.com's code library. it is working
perfectly for my application except for one problem. the email I am using
to send has a .pdf file attachment.
I can open that PDF file up directly from the site after it is created, but
I cannot open the file attachment up.
There sys admins just do not want to deal with it...
On my box i have about 2-3 versions of php and 2 version of apache at
any given moment...
but it can get confusing sometimes... :)
On Thu, 2002-11-14 at 20:27, Mike D wrote:
> Thanks for the feedback BigDog and Jason Wong (you guys rock!)
>
Thanks again Jason. - MD
On Thursday, November 14, 2002, at 12:38 PM, Jason Wong wrote:
On Friday 15 November 2002 04:27, Mike D wrote:
Thanks for the feedback BigDog and Jason Wong (you guys rock!)
That's what I thought as far as the STDIN goes... My host has told me
that it would screw up
On Friday 15 November 2002 04:27, Mike D wrote:
> Thanks for the feedback BigDog and Jason Wong (you guys rock!)
>
> That's what I thought as far as the STDIN goes... My host has told me
> that it would screw up our current DSO version of PHP if we installed a
> second CGI version of PHP, is that a
I'm finding this one hard to approach...
I have a two-dimensional array, containing customer contact
information. Looks like:
$myarray[0][0] = "Microsoft";
$myarray[0][1] = "Bill";
$myarray[0][2] = "123-1234";
$myarray[1][0] = "Apple";
$myarray[1][1] = "Steve";
$myarray[1][2] = "456-1234";
On Thursday 14 November 2002 23:22, Ernest E Vogelsinger wrote:
> At 15:13 14.11.2002, Javier Montserat spoke out and said:
> [snip]
>
> >I'm using this code to various files for download via a http header -
> >
> >$filename = basename($filepath);
> >header("
Hello all,
when I try to upload a file I receive the following error:
Warning: Max file size of 2 bytes exceeded - file [Archivo] not saved in
Unknown on line
I've looked into php.ini and it has the limit set to 2Mb. Have looked using
phpinfo and everything looks OK. I'm sure this co
Thanks for the feedback BigDog and Jason Wong (you guys rock!)
That's what I thought as far as the STDIN goes... My host has told me
that it would screw up our current DSO version of PHP if we installed a
second CGI version of PHP, is that a crock or what?
On Thursday, November 14, 2002, at 05
Hey,
I have the following script:
class overall {
function overall(){
$this->loaded['overall'] =1;
function load($class){
$$class = new $class;
$this->loaded[$class] = 1;
$$class->setup(); // Run constructor
if(!is_object($$class)){
return false;
}
return true;
}
}
t
You would have to pass it through the "get" method...
You can only pass stdin to the binary...
On Thu, 2002-11-14 at 20:05, Mike D wrote:
> Is it possible to pass STDIN data to a php script via wget or lynx
> (cuz Apache is not installed in CGI mode, so I don't have a binary to
> call)??
>
On Friday 15 November 2002 04:05, Mike D wrote:
> Is it possible to pass STDIN data to a php script via wget or lynx
Not directly. If you're calling a php script via wget then the only way to
send info to it would be using something like POST, or by putting the info
into the URL.
> (cuz Apache
Jason thanks,
I completely forgot about trying echo $sql by using that I found where it
was messing up. Thanks again.
Lee
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:200211141725.47510.php-general@;gremlins.biz...
> On Thursday 14 November 2002 17:22, conbud wrote:
> > Whats wrong here
If I understand correctly, you want to ahev links like:
To get the vars from the thread, if you don't know it's name, you can
use soemthing like this:
foreach($_GET as $key => $name){
$get[] = htmlentites($name, 'ENT_QUOTES');
}
that way you'll get a $get array, with all the url parts in it, nu
When you compile php + apachemany people have php as a DSO. So
there is no actual binary file in a bin directory that is called. You
can also have php as a module that is in the apache core, where it is
loaded automatically in apache (not a DSO).
You can run php as a cgi which uses the binar
You should use sessions for this...however, i would not store the
password in the session...
And verify it that way...i would probably use all sessions for this...
Check sessions first and see...if not then do the mysql or apache
auth...
When you do sessions you can save the page they are trying
tor, 2002-11-14 kl. 11:50 skrev Krzysztof Dziekiewicz: <
> You can not put any html code with image code.
> If you send some html you mean to send
> header("Content-Type: text/html")
> with
> header("Content-type: image/jpeg")
> Where do you want go to ?
>
> You can do so:
> There is
Is it possible to pass STDIN data to a php script via wget or lynx
(cuz Apache is not installed in CGI mode, so I don't have a binary to
call)??
I am trying to create a setup where, a certain email address when sent,
takes the message data and passes it to a php script to insert into a
DB for
This is checked:
function getstart_end(){
$result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min");
while(($row=mysql_fetch_object($result))){
if(!$i){
echo $row->min . " - ";
$i=$row->min;
} else {
You could exec the ping command and analyze its output using regular
expressions.
regards,
Ewout de Boer
- Original Message -
From: "Bryan Koschmann - GKT" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 8:09 PM
Subject: [PHP] icmp ping, che
I am trying to execute a php script from the command line but came to
realize that I can't locate any php binary file.
I thought there had to be a php bin file in order for php to work or am
i missing something?
NOTE: i have looked in /usr/bin/, /usr/local/bin/ and ran locates but
found nothing
You could exclude the '}' sign from the expression
$content = ereg_replace("\{[^}]*}","",$content);
This should do the trick... i'm not 100% certain about the '[^}]'
expression, but you should find it in any regexp tutorial
regards,
Ewout de Boer
- Original Message -
From: "Brent Bais
Hello,
I've been looking into setting up a site to check the hosts on my network.
Basically, I want it to ping each host and tell whether it is up or not,
then also check various services (www, ftp, smtp, pop3, dns, ssh) and see
if they are available. This would check either for a connection refus
Ok. That output was my fault. I had an error in one of my other
functions. I needed to set $hours to "00" to start with in my
populatetemptable() function. Now my output is:
00:05:00 - 00:05:00
00:05:00 - 00:10:00
00:10:00 - 00:15:00
00:10:00 - 00:20:00
00:15:00 - 00:25:00
00:15:00 - 00:30:00
1 - 100 of 182 matches
Mail list logo