Hi
Does anybody know how to get hold of the rownumber of the current row in a
php-script?
(Rownumber in the actual file.)
Thanks
/Håkan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Does anybody know how to get hold of the rownumber of the current row in a
php-script?
(Rownumber in the actual file.)
echo __LINE__;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Hi !
Thanks for the quick answer. It works, but I was curious what does the number
before the adress mean. META http-equiv=refresh
content=??0??;url=file.php
Thanks
Nikola
9/16/01 4:08:08 AM, Gavin [EMAIL PROTECTED] wrote:
Yes, this HTML line will redirect the browser to the php page..
php-general Digest 16 Sep 2001 11:04:42 - Issue 879
Topics (messages 67471 through 67490):
PHP Auth problem
67471 by: Alex Sofronie
Please please please help!
67472 by: Kyle Smith
help with some nasty recursive algorithm
67473 by: Christian Dechery
Re: redirect
Thanks for the quick answer. It works, but I was curious what
does the number
before the adress mean. META http-equiv=refresh
content=??0??;url=file.php
Delay in seconds before redirection occurs.
--
Richard Heyes
I know not with what weapons World War III will be fought, but World War IV
I have script for getting header of article from NNTP server using sockets:
?
$conn = fsockopen("csnews.vslib.cz", 119);
fputs($conn, "GROUP cz.comp.lang.php\r\n");
fputs($conn, "HEAD 3600\r\n");
while ($result = fgets($conn, 2048)) {
if (substr($result, 0, 1) == ".") break;
echo $result."br";
it was just a typo... I meant:
$categories[0][id]=2;
$categories[0][name]=lele;
$categories[1][id]=6;
$categories[1][name]=lala;
.. ...
and so on...
At 00:52 16/9/2001 -0400, you wrote:
The below code would result in an array of:
$categories[0][id]=2;
$categories[0][name]=Lele;
Please tell
Hi all.
I was wondering if a situation I'll describe below is possible. If it is,
I'm hoping someone could point me to the topics I would need to study to
learn how to do it. I hate to say that right now I don't have the time to
read the Manual or any books cover-to-cover to figure it out...but I
I need to get from another page table and put it into MySQL table
dynamically
for example http://66.96.230.191/table.html so I need to parse this table
in database.
If you have any code how to implement such operation by using php MySQL
please help me;
thanks in advance
Hello,
I'd like to create a series of web pages and burn them to CD. To achieve a
unified layout of these pages, I'd like to use PHP to generate them. I'm
working on Win98 with no web server installed and a dial-up connection to
net. What's the php.exe's command line syntax? I can't find it in
wait a minute... do you want to parse the HTML to get the values to
populate a mysql table, or do you have this table in another DB and just
want it copied to your mysql one??
If it is the former, you'll some very hardcore regex work to be done... I
once did this... it is very stressing
On Thu, 13 Sep 2001 11:10:03 +0200 impersonator of
[EMAIL PROTECTED] (_lallous) planted I saw in php.general:
here's your script,
..
Kill 'em All
The Wall;
$mem = split(\n, $mem);
Explode() is less expensive then split(), as long as you don't use regexp,
which is the case here, and (from the
- Original Message -
From: Tomas Valusek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 16, 2001 4:32 PM
Subject: [PHP] PHP as offline tool?
Hello,
I'd like to create a series of web pages and burn them to CD. To achieve a
unified layout of these pages, I'd like to
No I need to copy the rows values from HTML table you can see it in exlamle
http://66.96.230.191/table.html This is a live score system which updates
every 2 min, So I need to get these values and parse it in MySQL after that
I neeed to get some element from my database and show in my page..
I
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
if(isset($) and !empty($a) and !$a)
this is the same as if(!empty($a))
or
if(isset($) and $a===FALSE)
this is the same as if(empty($a))
(Aside from accidentally omitted the a in the var name...oops...)
No, they're not
Hello,
thank you for your help - I could get all the switches of PHP executable by
using a -? switch. It's just pity they aren't documented in manual ...
Tomas Valusek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hello,
where can I find an introduction to sessions in PHP? They are mentioned in
manual for example in a Serializing objects - objects in sessions section,
but there toesn't seem to be any section covering sessions in general. How
they work? Where to use this feature?
Tomas Valusek
--
PHP
Is it possible to invoke the server 404 error error from php?
Where I would like to do such a thing is
http://24.5.29.77:10080/encryption/index.phps
I would like to replace the line
die (The file you wish to download does not exist);
with instead an invocation of the http 404 error.
On Sun, 16 Sep 2001, Luboslav Gabal ml. wrote:
I have script for getting header of article from NNTP server using sockets:
output have look so:
From: Antonin Mohaupt [EMAIL PROTECTED]
but it is only
From: Antonin Mohaupt
What's the problem ? I tried higher raise length of data (second
Sunday, September 16, 2001, 9:59:36 AM, you wrote:
TV where can I find an introduction to sessions in PHP? They are mentioned in
TV manual for example in a Serializing objects - objects in sessions section,
TV but there toesn't seem to be any section covering sessions in general.
I am setting up a box to run Apache + mod_ssl + MySQL + PHP.
Apache is configured with DSO support and everything goes fine until I do
make inststall in the php source dir
Making install in .
make[1]: Entering directory `/root/programs/web/php-4.0.6'
/root/programs/web/php-4.0.6/build/shtool
Hello,
This issue has got me beaten. Have been trying for days to make some
progress identifying a problem either with my php installation, or a class I
am attempting to make use of:
The error I receive is :
Unknown list entry type in request shutdown (0) in Unknown on line 0
How can I find
On Sun, 16 Sep 2001 09:18:23 -0700, CC Zona wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
if(isset($) and !empty($a) and !$a)
this is the same as if(!empty($a))
or
if(isset($) and $a===FALSE)
this is the same as if(empty($a))
Aside from accidentally omitted the
Hi;
I am planning to implement a new site which will be
using mysql db heavily, and I am in the middle of (and
stuck:) deciding what I should use for implementation.
I would definitely prefer Java Servlets, but it is
very expensive to host servlets, so I am only
comparing PHP vs. Perl.
I have
Hello Michael,
Sunday, September 16, 2001, 9:05:35 AM, you wrote:
MAP Is it possible to invoke the server 404 error error from php?
MAP Where I would like to do such a thing is
MAP http://24.5.29.77:10080/encryption/index.phps
MAP I would like to replace the line
MAP die (The file
Hi !
I know that this may be not the right place for this question, bu anyway:
The radiobutton tag looks like this:
input type=radio name=radiobutton value=radiobutton
How am I suposed to handle multiple buttons(what should I change, name or the
value?)
My point here is: Does the buttons
Greetings to All:
I'm inexperienced, although enthusiastic about using PHP. I want to write
data more effectively to a file.
This doesn't work: fputs($frank, Testing $whatever more testing
\n\n\n);
Right now, all I know is using three separate fputs statements. I'd like to
use just one.
On Sun, 16 Sep 2001, Bora Paksoy wrote:
Hi;
I am planning to implement a new site which will be
using mysql db heavily, and I am in the middle of (and
stuck:) deciding what I should use for implementation.
I would definitely prefer Java Servlets, but it is
very expensive to host servlets,
1.Speed: If you use mod_perl or fastcgi kind of deals
(which are based on threadding instead of forking), I
don't think PHP is considerably faster than perl? Is
that the case?
Threading instead of forking? None of these do either. Apache is a
pre-forking multi-process server and both PHP
you would simply have the following:
input type=radio name=radiobutton value=radiobutton1blah1br
input type=radio name=radiobutton value=radiobutton2blah2br
input type=radio name=radiobutton value=radiobutton3blah3br
Any problems let me know...
Regards
Davidt
-Original Message-
From:
Greetings to All:
I'm inexperienced, although enthusiastic about using PHP. I want to write
data more effectively to a file.
This doesn't work: fputs($frank, Testing $whatever more testing
\n\n\n);
Right now, all I know is using three separate fputs statements. I'd like
to
use just
I am attempting to use the rename() function and am receiving the following
error:
Warning: Rename failed (Permission denied) in
/usr/local/apache/htdocs/mydir/myfile.php on line 7
The files all have a mod of 777 . My application can update the same file
w/o any problem, it's only when
Greetings to You:
How do I get the user's screen resolution and color depth? Here's how it is
done in Javascript. I want to do it and put the results into a PHP varibal.
Scriptdocument.write(screen.width + x + screen.height)/script
Scriptdocument.write(screen.colorDepth + bit)/script
Can't be done...
1) Browser sends request
2) PHP page is compiled and executed
3) PHP output is sent to browser
4) Browser displays page/executes javascript/etc.
-Original Message-
From: Salty Marine [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL
But you could then re-submit the page with this data somehow, couldn't you?
- seb
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: 16 September 2001 21:04
To: 'Salty Marine'; [EMAIL PROTECTED]
Subject: RE: [PHP] Getting screen resolution and color depth
Can't be
Can someone please show me how to change the reply address in the mail function (and
the from address) cause i have a script im making for a mailing list and the script in
the manual doesnt work cause it has loads of different code aswell :(
-lk6-
http://www.StupeedStudios.f2s.com
Home of the
As long as it doesn't interfere with any GET or POST data, you could
redirect the browser...
I haven't tried this, so I don't know if my syntax is perfectly correct,
but here's a suggestion...
BODY onLoad=document.location = 'somefile.php?screen_res=' +
screen.width + x + screen.height +
ok... so the hard way.
I'm no regex wizard myself... as a matter of fact I suck at it.
I do it the hard (old C like) way.
You have to find some chunks of HTML that determine and end of the data in
the table and use them to walk trough the doc fetching what you want... let
me give an
I am just learning PHP. I have it installed on my Win 2000 IIS to practice,
and after I save PHP files in my wwwroot folder, I go ahead and access my
practice pages through IE via my full (universal) server address. However,
the \n code (to start a new line) never works. Any ideas?
Thanks!
--
If you are trying to use \n for a new line in HTML code, it will not work.
In other words
echo htmlh1Hello\nWorld/h1/html; will not work. You must use br
instead. Also, be sure that you are using double quotes instead of single
quotes. Single quoted text is literally interpreted.
--
Gaylen
Browsers don't parse \n as a new line, try using br which will make a new
line
Andrew
- Original Message -
From: alpherjo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 16, 2001 9:51 PM
Subject: [PHP] \n not working
I am just learning PHP. I have it installed on my
No, my problem is that I haven't got this DLL ...
I only have an older php3_gd.dll who make PHP hang when loaded, so i'm lookin for a
php4_gd.dll with gif, png, jpeg, etc support !!!
--
(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr
Gaylen
I just installed APC (Alternative PHP Cache). How do I know it's
loaded/running/working? Thanks.
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hi I am looking for an algorithm to generate the
permutation of the elements of a vector, say a,b,c.
Does anybody know / have implemented such (in PHP or
different languages).
Best regards.
__
Terrorist Attacks on U.S. - How can you help?
Donate
On 16-Sep-2001 Kurt Lieber wrote:
I'm trying to take a text file and count the number of lines that match
a regexp. I've got it working using the following code:
$data = file(myfile.txt);
$total = 0;
foreach($data as $i) {
if (ereg(^1,,$i)) {
$total = $total + 1;
That's what I suspected and yes, that does work. However, it causes
problems with session handling variables since 'www' doesn't own the 'tmp'
file, etc. Thanks though for confirming what I suspected.
Any other thoughts from anyone?
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
Nevermind, I made a stupid mistake.
Tad [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am setting up a box to run Apache + mod_ssl + MySQL + PHP.
Apache is configured with DSO support and everything goes fine until I do
make inststall in the php source
Close- this is what actually worked-
header (HTTP/1.1 404 Not Found);
But thanks- it got me on the right track, anyway (i wasn't aware server responses were
sent from the header)
It doesn't log it in the error_log or send the 404 error page, but i have a custom
error page- so i just
How about limiting results?
eg
limit the return page value after a certain number (say 10) to every 5
pages, then 50 pages a la google.
Page
1 2 3 4 5 6 7 8 9 10 ..15 ..20 ..50 ..100
This can be done relatively easily
eg (untested)
for ($count=1;$count=$pages;$count++) { // loop thru
Hi,
Does anyone know how to send a sms message to a handphone using PHP?
Thanks and regards,
Alva Chew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
On Sat, 15 Sep 2001 13:02, Terry Reynolds wrote:
Hi
has anyone in the PHP world ever managed to run mysqlimport via exec?
I have written a one line script
mysqlimport -u user -ppassword table file.txt
chmodded it (+ x), which works from the command line every time.
I've tried exec(),
I figured out another way to solve this. But, I need to know the downside,
if any.
I chmod the directory to 2777 and leave Apache as is. Obviously this opens
the directory up to danger if someone hacks in.
Comments?
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.01
Hi,
Does anyone know how to send a sms message to a handphone using PHP?
Thanks and regards,
Alva Chew
I have a class that does it. It is very easy. See the RFC on SNPP and some
use standard mail servers.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hey I did it. A special thanks goes out to Michael Kimsal for giving me the
idea of output buffering. Here is the code I used. Hope this helps
ob_start(); // Start output bufering
include ($filename); //$filename is the file you want to include
$x = ob_get_contents(); //Set the contents of the
Why on earth would you prefer java servlets?
Hmm... Let's see;Java is a full-fledge, totally OOP
and awesome programming language but not a scripting
language. Speed (will be mentioning this later),
having total control over whatever you want (exception
handling, db pooling, caching,
Threading instead of forking? None of these do
either. Apache is a
pre-forking multi-process server and both PHP and
mod_perl are part of
these pre-forked processes. Neither mod_perl nor
PHP do any threading nor forking.
??? I didn't get this? Aren't these pre-forked
processes handle
Maybe this is one of FAQ, Please give me a URL of this kind of comparison
page, or your experience.
A web server program is running in my office. It consists of Visual
Basic, IIS, and MS SQL Server on Windows 2000. although the performance
is confortable for few users, it is terribly slow for
Much as I don't like to defend MS, I'll take a stab here.
By 40-50 people in an office, I presume you're talking about an intranet
of some type - 40-50 aren't constantly hitting it (meaning 40-50 requests
per second all the time), but 40-50 are using it throughout the day for
various tasks.
You
??? I didn't get this? Aren't these pre-forked
processes handle requests using threads internally?
Say you configure apache to pre-fork 5 server
processes, what you are saying implies that you can
only handle 5 concurrent requests?? can you please
explain this more?
That's exactly what
I would agree that the DB is probably the biggest bottleneck...
Are you connecting to the DB via ODBC? I'm not an expert at DB stuff
outside of the MySQL realm, but I've heard many say ODBC is horribly
slow. I don't know ASP that well, but could someone comment on ADODB?
It uses OLEDB, not
I mean, for example say you have
an html that consists of blocks... Making every block
an include is clean, but this time, php engine has to
read all of these includes, and parse the html+php and
compile/run php everytime a request is made??? I am
not sure about this?
I wouldn't say it was
ie. don't necessarily use 1 file per block, create functions that are
defined in a single file and call those instead of including a new file.
How do you echo your html, do you put the html in your functions and
escape the double quotes? There is some extra load there echoing all the
html?
print split(=,$testString)[0];
First, using split() on such a simple delimiter is a waste. Use
explode(). And yes, PHP does not support automatic dereferencing of
returned arrays like that.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
ie. don't necessarily use 1 file per block, create functions that are
defined in a single file and call those instead of including a new file.
How do you echo your html, do you put the html in your functions and
escape the double quotes? There is some extra load there echoing all the
It may not be a performance thing based on software in use, it could be
coding problems with the current software.
If you are having problems with 40 - 50 users, you may want to look at where
things are locking up. Table locking because of badly designed update
queries can freeze a good system
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
calling empty($a) does not give a warning.
Sheesh. It doesn't at that. WTF?
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hallelujah...first time i've seen someone else mention here docs, and being
rasmus, not a bad person to make the mention ;-)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 12:17 AM
To: speedboy
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP]
How do you echo your html, do you put the html in your functions and
escape the double quotes? There is some extra load there echoing all the
html?
echo HTML? I do this:
? php stuff..?
HTML stuff
? more php stuff ?
I drop out of PHP mode to display raw HTML. If I have a
How do you echo your html, do you put the html in your functions and
escape the double quotes? There is some extra load there echoing all the
html?
echo HTML? I do this:
? php stuff..?
HTML stuff
? more php stuff ?
I drop out of PHP mode to display raw HTML. If I
Out of curiosity, why do you avoid having functions generate HTML? Is this
just personal preference, or is there some performance or other reason?
-Jason
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: speedboy [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday,
Kunal Jhunjhunwala wrote:
Hi,
Has anyone done this to date?? I was thinking of compiling my programs for
better perfomance, and of course, protect the source code. Anyone have any
ideas on this issue?
Regards,
Kunal Jhunjhunwala
There are sevral cache modules. These are cache modules
Hey all. I'm trying to do a fopen for reading on many different sites and
web pages. However, I have found that many webpages can not be FOPENed at
all. For instance, one such example would be
http://www.800.com/prod.asp?P=5261
I do not understand as I can read from numerous other sites. Why
Has anyone done this to date?? I was thinking
of compiling my programs for better perfomance,
and of course, protect the source code. Anyone
have any ideas on this issue?
Another question: is it possible to compile PHP
script in COM or EXE file?
--
Andrew Perevodchik
[EMAIL PROTECTED]
--
On Fri, 14 Sep 2001, GATop wrote:
Is there more like that?
Like what :)
Adrian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi all,
for testing purposes in a school environment, I would like to use a
Microsoft Access database with PHP. I know how to connect to and use a MySQL
database, but I can't find any functions for accessing Microsoft Access
databases.
Can anyone help me out here?
Thankx,
Alex
--
PS: Replace
75 matches
Mail list logo