Spettabile [intestazione]
===
Il 13 novembre è stata ufficialmente presentata a Padova la
<> un side-car equipaggiato con
un computer collegato ad internet con trazione assistita
elettricamente. Questo curioso veicolo percorrerà il
<>
Hi,
I have a problem with UDP sockets in PHP. What I want to do is the
following, i send a UDP message
to a server, and a reply should come instantly back. Now, the length of the
message returned to me
is unknown. It can be anywhere from 1 to 8192 (or more) bytes. However,
some strange problem
var_dump($argv);
$argv is an array. Don't expect if you coded in C that this is pointer to the first so
you possibly want to do echo of the first in
the array.
instead do :
foreach($argv as $param_name => $param_value){
// do your stuff here
}
Regards,
Andrey Hristov
IcyGEN Corporation
http://w
Hi,
Thank you all for help, I figured out that fsockopen() is the same as telnet so I
found command
for telnet and now successfully apply them through fputs() Now all I have to do is to
come back
to beginnings and figure out how to separate message header and text and then
temporary store
the $argv is meant to contain all the arguments sent to the script. I need
to get access to these but when I try to access them I can't!
if I just use echo($argv) the only output is 'Array'
All I am expecting to find for the purpose of my script is a five letter
code, not a name/value pair.
Can
Good day,
Thanks for the reply! I was not quite sure how this would be phrased
(searching for "on the fly" on the page causes an error to be returned).
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
Try using the flush(); function. It flushes all output to the browser, and allows
exactly the type of thing you're talking about here
-Original Message-
From: Darren Gamble [SMTP:[EMAIL PROTECTED]]
Sent: 23 November 2001 16:17
To: '[EMAIL PROTECTED]'
Subject:[PHP] Display
Good day,
I've been using both Perl and PHP for some time now for dynamic content.
I'm presently running PHP4 as an apache module.
One difference that I've noticed is that PHP doesn't produce any output
until the script is complete, whereas with Perl one could print "doing
this... " , perform so
at our site, we built the error trapping that you are wanting to build.
here is a snippet of what we used.
"PSID: (". PSID .")\n".
"Page: ($GLOBALS[REQUEST_URI])\n".
"As refered from: ($GLOBALS[HTTP_REFERER])\n".
"Browser Platform: ($GLOBALS[HTTP_USER_AGEN
Is it so easy to open a file and include it in a page? I do it this way:
*
$file_name = "filename.txt";
if(file_exists($file_name))
{
$file_pointer = fopen($file_name, "r");
$file_read = fread($file_pointer, filesize($file_name));
fclose($file_pointer);
print "$file_read";
JSP or PHP what the best ?
and what are in JSP are not in PHP ?
and what are in PHP are not in JSP ?
can any body tell me ?
> Hi,
> When I use HTTP_REFERER it gives me the name of the php script which is
> handling the 404's?!
>
> Should that happen?
As someone put in one of the other reply's don't rely on HTTP_REFERER.
This is set (or not) by the browser and they all have different ideas about
they want to play ball
Hi !
I'm having terrible troubles with the file upload program I need. I have read a couple
of tutorials and studied the examples
in the manual, but it won't work. Every tutorial I read worked with variables
$usrefile, $userfile_name etc. When I copy
the same example code , I get the error ms
Hi,
When I use HTTP_REFERER it gives me the name of the php script which is
handling the 404's?!
Should that happen?
Jord
On Friday 23 November 2001 11:41, you wrote:
> > Hi,
> > I'm writing a 404 handler and in order to report the item that
> > was requested
> > I was trying to get the value
Hi there!
I had to create a large number of HTML-files with large parts
within that are identical (the navigation).
To avoid redundant writing during the creation of the files,
I used PHP-Includes to include this navigation from one file.
Now I have to get static HTML-pages from these php-enrich
Hi!
you could use something like this..:
$fp=fopen("pathto/".$filewithip,"r");
while ($line=fgets($fp,1024))
{
echo "ip : ".$line;
}
fclose($fp);
cheers,
--Patricio
- Original Message -
From: PHP Newbie <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
As far as I can say, a simple ereg-command is always greedy, isn't it?
Can you tell me how to switch greedy off?
I want to find everything between the start- and end-php-tags:
$phpIncludes = array();
ereg("<\?php.*\?\>", $html, $phpIncludes);
where $html contains the entire page, containing one
Hi !
You asked for the code ...
Here you go :
Select File:
:
Thanks
Nikola
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
php-general Digest 23 Nov 2001 14:10:17 - Issue 1011
Topics (messages 75546 through 75577):
Missing PHP.ini
75546 by: John Monfort
75547 by: Joseph Blythe
75548 by: Martin Towell
75549 by: John Monfort
75551 by: David Robley
Re: error handling and __
Hi, is it possible to make a session last longer?
Thanks,
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites B.V.
http://www.esites.nl
Minervum 7368 Telefoon: (076) 5 730 730
4817 ZH BREDA Telefax: (076) 5 877 757
_
Hi :-)
could you post your code?
regards,
--Patricio
- Original Message -
From: Nikola Veber <[EMAIL PROTECTED]>
To: php forum <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:01 PM
Subject: [PHP] file upload troubles
> Hi !
> I'm having terrible troubles with the file upload pr
hi,
andrey hristov told me how to read a file and put it into a table (thx)
but now i see that i need the data in an array.
can somebody help me please?
thx
On Friday 23 November 2001 10:16, Andrey Hristov wrote:
> $content = file('file_name.txt');
> $HTML .='';
> foreach ($content as $v){
>
Il ven, 23 nov 2001, hai scritto:
> hi,
> andrey hristov told me how to read a file and put it into a table (thx)
> but now i see that i need the data in an array.
> can somebody help me please?
just use the first line of Andrey:
$content = file('file_name.txt');
file function reads entire file
On Friday 23 November 2001 13:39, you wrote:
> Are you using it as
>
> $HTTP_SERVER_VARS["REQUEST_URI"]
>
> or
>
> $REQUEST_URI
>
> ?
Well, I think I'm buggered then because i just tried to use both and they
both report the same value :-(
Back to the drawing board.
> I had the same problem usi
> Hi,
> I'm writing a 404 handler and in order to report the item that
> was requested
> I was trying to get the value of HTTP_REFERER. But, it does seem
> to get set.
> Does anyone know how to find thi value? Is there a reason why it
> would not
> get set?
>
Hi
I think you're looking fo
Hi Jord,
You don't need to get HTTP_REFERER, in order to know what the client
requested! And every browser stores some other info in HTTP_REFERER...
The filename that was reqested is stored in $REQUEST_URI
Best,
Sebastian
>Hi,
>I'm writing a 404 handler and in order to report the item that was
hi
reasons why it couldn't be set:
the url was typed directly
some browser don't send referer information
other (like opera 5.12) send a wrong value
you shouldn't rely on HTTP_REFERER too much
regards
hassan el forkani
http://WarmAfrica.com
23/11/2001 11:55:04, Jordan Elver <[EMAIL PROTEC
Hi,
I'm writing a 404 handler and in order to report the item that was requested
I was trying to get the value of HTTP_REFERER. But, it does seem to get set.
Does anyone know how to find thi value? Is there a reason why it would not
get set?
TIA,
Jord
--
Jordan Elver
Web Developer
http://www
$content = file('file_name.txt');
$HTML .='';
foreach ($content as $v){
$HTML .=''.$v.'';
}
$HTML .='';
echo $HTML;
Regards
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "PHP Newbie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
hi,
i have a file with ips inside
192.168.1.1
192.168.1.2
...
now i must write that in a html table with php.
i think that is easy, but i'm a newbie and don't find anything how to do it.
please help me
thx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
30 matches
Mail list logo