From: Jason G. <[EMAIL PROTECTED]>
Date: Thu, Sep 27, 2001 at 03:25:16AM -0400
Message-ID: <[EMAIL PROTECTED]>
Subject: Re: [PHP] handling errors
> Placing an @ symbol before the function name will suppress any errors.
> @GetImageSize()
Yep, I know it does. Yet, it's still no good way of ha
Placing an @ symbol before the function name will suppress any errors.
@GetImageSize()
At 09:09 AM 9/27/2001 +0200, * R&zE: wrote:
>
>From: Joseph Bannon <[EMAIL PROTECTED]>
>Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
>Message-ID:
><[EMAIL PROTECTED]>
>Subject: [PHP] handling errors
>
> > How d
From: Joseph Bannon <[EMAIL PROTECTED]>
Date: Wed, Sep 26, 2001 at 11:09:39AM -0500
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] handling errors
> How do I turn off the error messages that appear at the top of the page? I
> have this function below that if an image is not there for $url, it g
Hey,
I couldn't be bothered waiting for someone to show me a host that runs
php with GD, so i am just going to post the code here, and hope that someone
sees it, and checks it out, and shows the results
If you can't find a jpg file to test this on, just grab the php jpg one,
well i'll post the
I just want to know which is best solution , if my web site is heavy loaded.
mydata
"Jason G." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> A good question is: Do you REALLY need the speed difference, or should
you
> be asking which is the best language
A good question is: Do you REALLY need the speed difference, or should you
be asking which is the best language to do Dynamic Web Development
in??? Which is better supported, which is most cost effective, which is
Open Source, which is Better...
-Jason Garber
deltacron.com
At 02:48 PM 9/27/
Hi Mike,
The query
$query="selct count(*) from users where sign=1";
should be "select" not "selct"
-and in future to know if there is any error in your queries you might want to check
this way:
if(mysql_query($query)
{
--do statements--
}
else
-error msg-
or even the following would be
Hiyas,
I've made the following script to build a tree style navigation from a
table of sections for an image gallery. There are root nodes of the tree
which can have children, and those children can have their own children and
so on to an infinte depth. A root node has a parentID of 0 and a ch
echo "
Missing end quote and semicolon on this line may be the reason...
Try properly indenting and formatting your code. Also take advantage of
going in and out of php mode to seperate your code from your display of
content...
Ex:
instead of this:
$sContent"); ?>
Try this:
Or even this:
Did you restart your web sever? If you using IIS ,you must use comand line
to restart server.
"Yaroukh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there
>
> I have set "session.auto_start" to "1", but without "Session_Start()" the
> session handling doe
Hi,
I heard about JSP a lot recently though I doing PHP programing now.
somebody said jsp is most fastest in (asp , php , jsp).
I want to know if it is true . And if I use PHP + php cache , can I speed up
PHP as same as JSP as they said.
I just want to know which is the best solution ,(php + php
hi. this doesn't have to do with mysql_fetch_array. the following will
create that error :
echo "a $b['c'] d e f";
the following will not :
echo "a $b[c] d e {$f['g']} h i $j[$k] l 'm' n o p";
adjust accordingly. just posted a few words on this topic recently, can
view them here :
ht
Hello all,
I just come across this rather strange error while trying to configure up
4.0.6 under redhat 6.0, it is strange because i have installed it many times
before with no problems, have deleted source tree and started again too!
here is the error:
ltconfig: you must specify a host type if
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98
When PHP is running at the line: $arr=mysql_fetch_array($res);
The IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
group\apache\htdocs\web\
Hi everybody,
I'm very new to this list, so please bear with me if I break the "unspoken"
rules of the list (and let me know, of course:)
I have a question: did somebody encounter this warning before:
"Warning: offset not contained in string ***myscript.php on line xxx"
line xxx contains the fo
On another side-note, I haven't had trouble with echo "foo $arr[$a]" which is
very handy in loops (especially for, while, and foreach)
Also, nice to have you back, Maxim
On Wednesday 26 September 2001 09:28 am, you wrote:
> > The reason for it is that within double quote you can parse for 's
At 27.09.2001 03:34, David Robley wrote:
> > gcc -o conftest -g -O2
> > -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> > -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c
> > -lmysqlclient -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv
> > 1>&5 /usr/b
On Thu, 27 Sep 2001 08:56, Rob Walker wrote:
> Hi there
> I am new to Linux and PHP.
> I was installing PHP onto my 400MHz Pentium PC, running Red Hat Linux
> (and DOS on another partition) with a MySQL database and an Apache web
> server but there was a problem. Please can you helpthe con
Hi there
I am new to Linux and PHP.
I was installing PHP onto my 400MHz Pentium PC, running Red Hat Linux (and DOS on
another partition) with a MySQL database and an Apache web server but there was a
problem.
Please can you helpthe contents of the debug log are below.
(Thanks to David Ro
Ok. As far as I can tell from your example - you have a single
multidimensional array. From my reading of array_multisort
it looks like it is supposed to sort multiple arrays that happen
to be the same length, which is a little different.
Conceptually, what I think you have is an array of records
I think this is not working because "\t" is a regular expression and explode
only works on strings..
Actually, I have no idea and I feeling very confused right now but maybe
try "split" and see how it goes.
Brian
At 13:37 26/09/2001 -0400, John Frenzel wrote:
>I have created a 2D array, th
Try mysql_affected_rows()
It will tell you how many rows were affected.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 21.47
To: PHP (E-mail)
Subject: [PHP] updating a database (mysql)
When I u
On Wed, 26 Sep 2001 17:40:44 -0400, scott [gts] wrote:
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>i'm not worried about speed of execution or actual
>number of statements. (although i am looking to shave
>some typing and make my code a little clearer)
>
>i think that using: $r = function
The following code seems to work in general but everyone once in a while I'm
getting a segmentation fault. Can someone explain to me why this would be
intermittent and/or whether or not it should work?
function getDomain($serverName)
{
$result = $serverName;
// some processing to resul
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i'm not worried about speed of execution or actual
number of statements. (although i am looking to shave
some typing and make my code a little clearer)
i think that using: $r = function() or return 0; is more
readable and easier on the wrists than
Authentication eh? Consider :
http://www.zend.com/zend/tut/authentication.php
http://www.php.net/manual/en/features.http-auth.php
Yes cookies exist too, See :
http://www.php.net/setcookie
Curious about sessions? See :
http://www.faqts.com/knowledge_base/view.phtml/aid/6621
Links to
I'd like to ask your help to figure out why PHP objects are stripped of
their local variables when you add the objects to an array.
Shouldn't these be references, not shallow copies?
The code below is a simple org chart.
I create three instances, each is added to a global array called orgs[].
Ea
Here's one way :
$bye = 'jennifer lopez';
foreach ($cart as $title => $value) {
if (!strcasecmp($value,$bye)) {
unset($cart[$title]);
break;
}
}
Btw, it's => not ==>, jennifer not jannifer :)
regards,
Philip Olson
On Thu, 27 Sep 2001, Sijan Khadka wrote:
> How can we remove
hi,
i think -i've read- private sites which has login scripts (have username and
password) are made using cookie. if this is true, how can find the
information about making like that sites? if not, how can i make?
thanks all
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
How can we remove certain key==>val from an array?
Lets say i have an array --
$cart = array (
"Software"==> "Redhat",
"Book" ==> "Mastering PHP",
"MusicCD" ==> "Jannifer Lopez"
) ;
Here I want to remove "MusicCD" ==> "Jannifer Lopez" such that the $cart =
array ( "Software"==> "Re
If I'm reading your snippet correctly, then :
$foo = 'bar';
$bar = array('apple','banana');
print ${$foo}[0]; // apple
Note the use of {braces}. The last paragraph in the manual describes this
a bit :
http://www.php.net/manual/en/language.variables.variable.php
Although I don't see
On Wed, 26 Sep 2001, scott [gts] wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I thought i'd ask for your comments on how you'd code this
> common perl code with PHP:
>
> $value = some_function() or return 0;
>
> i usually code my functions to return 0 or "" on error, but
> have
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I thought i'd ask for your comments on how you'd code this
common perl code with PHP:
$value = some_function() or return 0;
i usually code my functions to return 0 or "" on error, but
have to use the following code to handle it... neither seem
lik
have you thought of just using
http://www.php.net/manual/en/function.serialize.php
http://www.php.net/manual/en/function.unserialize.php
its alot easier.
--
Chris Lee
[EMAIL PROTECTED]
"John Frenzel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I ha
I think this is what you are looking for
http://www.php.net/manual/en/function.mysql-affected-rows.php
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
- Original Message -
From: "Joseph Bannon" <[EMAIL PROTECTED]>
To: "PHP (E-mail)" <[EMAIL PROTECTED]>
I can not figure out why this is not working!
for ($j=0; $j<$resultNum; $j++) {
$newvar = "finalresult".$a;
$$newvar[$a][name] = $resultRow[name];
$$newvar[$a][title]= $resultRow[title];
$$newvar[$a][descript] = $resultRow[descript];
$$newvar[$a][countkey] = substr_count("$resul
Joseph Bannon wrote:
> have this function below that if an image is not there for $url, it give a
> "warning".
> $size = GetImageSize("$url");
Just use
> $size = @GetImageSize("$url");
but to stop display of error for all functions:
error_reporting (0);
the opposite, reports EVERYTHING, ev
Caleb Carvalho wrote:
> just finished installing php-4.0.6, now when writing the test.php page with
> the
Try again after you restarted apache ;)
--
PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com
tan: Tangent | http://www.php.net/manual/en/function.tan.php
--
PHP
When I update my mysql database, is there a way with PHP to know what or if
any records where updated?
Joseph
--
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-ma
Thanks. That will work quite nicely.
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:20 PM
To: Matthew Walker; [EMAIL PROTECTED]
Subject: RE: [PHP] PEAR DB Questions
don't know about pear, but in case you can't do it, there's a mysq
just for clarity, why do we need to reference a variable when the variable
already contain a reference? Thanks
"Ming-Chieh Lee" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> does anyone know what does &$this mean? I saw this on the php.net
> > tuturial
> >
does anyone know what does &$this mean? I saw this on the php.net
> tuturial
> > for references inside a constructor.
> > I thought that $this is already a reference?
> > The way it was used :
> > class Foo
> > {
> > function Foo($name)
> > {
> > // create a reference inside the g
don't know about pear, but in case you can't do it, there's a mysql version-
LAST_INSERT_ID()
like this:
mysql> select last_insert_id();
+--+
| last_insert_id() |
+--+
| 262 |
+--+
1 row in set (0.04 sec)
-jack
-Original Message--
Hola todos..!!
Mi nueva direccion a partir de ahora es [EMAIL PROTECTED]
Bye!
Gonzalo
Hi,
I wish to read the message string posted by my form into a php program.
I tried to use the environment variable $HTTP_RAW_POST_DATA but this did not contain
any value.
Can someone help me with reading the STDIN input from within the php program ?
Thanks and Regards,
Ashish Natani
Get Your
Chris Hobbs wrote:
> $dirList = $dirList + getDirList($dirName."/".$entry);
OK, on a lark I changed the above to use array_merge, and the problem
went away - that'll teach me to use a shortcut :)
--
___ ____ _
Chris Hobbs / \ \
I'm attempting to build an array of filenames in a sub-directory with
sub-directories. I'm using a modified version of code found on php.net -
the function I wrote is here:
function getDirList ($dirName) {
$dirList=array();
$d = dir($dirName);
while ($entry = $d->read()) {
I've got the docs you all mentioned in response to my earlier questions.
Thanks a ton! They were almost exactly what I needed.
There's only one thing that I can't figure out how to do with the
module. In PHP, there's a function 'mysql_insert_id()'. It returns the
Autoincriment ID of the last ins
Awesome... Its all working perfectly now! Makes perfect sense why the update
is like that.
thanks again!
__
Jason Dulberg
Extreme MTB
http://extreme.nas.net
> -Original Message-
> From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
> Sent: September 26, 2001 1:59 PM
Timestamp only sets itself to Now() if it isn't explicitly set (or set to
NULL). So try this:
$out = "UPDATE logged_in SET session='',time_in=time_in WHERE
(logged_in.userid='$aid') AND (logged_in.session='$sessid')";
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet
You were right! I changed it to a timestamp (14) and the selection is
working great now.
Only problem is that when I logout which UPDATE's the table to clear the
$session field, the $time_in timestamp gets updated because of the NOW()
function. I need that date to stay the same when someone logs
I have created a 2D array, then written it into a tet file. The file is
written such that all the secondary array elements (the rows) are seperate
lines, with the "columns" tab-delimited. Now I'd like to read this file back
into a 2D array. I thought this should work:
$array_file = file ("array.
> I want PHP parser to warn/fail when I try to use a variable
> not declared before. Like "Option Explicit" on ASP/VBA.
Look here:
http://www.php.net/manual/en/function.error-reporting.php
Chris
Ok, I now feel stupid because it still don't work or I still don't get it.
Here are the filez please feel free to comment and advise.
(See attached file: testadmin.php)(See attached file: index2.php)(See
attached file: menu.php)(See attached file: index.php)
I want PHP parser to warn/fail when I try to use a variable not declared
before. Like "Option Explicit" on ASP/VBA.
Thnx in advance :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Ok, I now feel stupid because it still don't work or I still don't get it.
Here are the filez please feel free to comment and advise.
(See attached file: index.php)(See attached file: TESTAD~1.PHP)(See
attached file: index2.php)(See attached file: menu.php)
Regards,
Michael
I'm not positive on this, but I think I catch your drift.
when you get the results of your query...
place 1 = $results[2]
place 2 = $results[0]
place 5 = $results[4]
Later,
Jerry Lake
Interface Engineering Technician
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED
> The reason for it is that within double quote you can parse for 'simple'
> variables only (es: $var, not $var[]). Otherwise it gives you a parse
> error.
Just a quick note, this is partially true. The following works :
error_reporting(E_ALL);
$arr = array ('a' => 'apple','b' => 'banana
> How do I turn off the error messages that appear at the top
> of the page? I have this function below that if an image is
> not there for $url, it give a "warning".
> $size = GetImageSize("$url");
> Example error message below...
> Warning: getimagesize: Unable to open 'http://www.yahoo.com'
How do I turn off the error messages that appear at the top of the page? I
have this function below that if an image is not there for $url, it give a
"warning".
$size = GetImageSize("$url");
Example error message below...
Warning: getimagesize: Unable to open 'http://www.yahoo.com' for readi
: I was just wondering if I could call some functions out side of the class
: I'm making? The reason why I want to do this is so that I don't have to
: rewrite the functions as methods in the class and I don't want to get too
: far into what I'm doing before I find out it doesn't work.
Sure you
Help!
I'm trying to install a development Apache + PHP environment on the same
machine as our test environment (Apache + mod_SSL + PHP). I followed the same
procedure that I used to set up our test system (which works fine) and
everything compiles and builds fine. However when I try to start up
Hey all,
I've been working on my first OPP driven PHP code and wanted to see what
everyone thought and any ideas anybody can add to the code that I'm working
on. I've had to make some concessions due to the limitations of PHP's OOP
model and the fact that I'm using PHP3 which doesn't functions l
I was just wondering if I could call some functions out side of the class
I'm making? The reason why I want to do this is so that I don't have to
rewrite the functions as methods in the class and I don't want to get too
far into what I'm doing before I find out it doesn't work.
Thanks,
Jay
--
I did, that's why I'm asking for a recommendation. There are quite a few.
> From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]>
> Organization: PHPBeginner.com
> Date: Wed, 26 Sep 2001 17:18:15 +0200
> To: "'Tom Beidler'" <[EMAIL PROTECTED]>, "'php list'"
> <[EMAIL PROTECTED]>
> Subjec
My friend owns a hosting company that supports php and MySQL along with a
ton of other things.and they are VERY inexpensive. You can check them
out at http://www.eaccounts.net/ref/jp52950052/?referer=emaillink
Jeff Pearson
Disclaimer: Yes the link tracks the referrals.No. I don't make any mo
Derek,
That worked a treat - not to try and get the flatness out of my head - that
wall was hard!
What still has me stumped is that as far as the query-building goes, both
methods are pretty much the same yet yours doesn't generate the error yet
mine does
Prepare yourselves as this is the l
Try to browse hotscripts.com, it has a plenty of them for you to choose.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: mercoledi 26 settembre 2001 17.06
To: php list
Subject: [PHP] PHP Chat recommendations
Does anyone have a
On Wed, 26 Sep 2001 09:47:57 -0500, you wrote:
>Just looking up that extract function, the manual says it extracts into
>the current symbol table. I assume that means that within foo() the
>array would be extracted into local variables. Is that right?
As http://www.php.net/manual/en/function.e
If you see no errors this might mean you have no records :-)
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Derek Mailer [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 17.14
To: George Pitcher
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Building Dynamic Value l
Does anyone have a recommendation on a PHP based Chat system. I'm looking
for an easy to install and reliable system.
Thanks,
Tom
--
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 a
What error do you see, George?
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
Sent: mercoledì 26 settembre 2001 17.01
To: George Pitcher; [EMAIL PROTECTED]
Subject: Re: [PHP] Building Dynamic Value list using ohp
-
Hi,
HTTP has a method called HEAD, that is for example can be used for
exmample to get the requested files' size if the other web
server/php script supplies it.
So all you have to do is to make a connection to the other web
server, give a HEAD request (it is almost the same as GET), and
parse the
Sheridan,
I added the error stuff (adding an else bit) but when I went to my browser,
I got the same resulting error I've always had.
I have tried pasting the select statement striaght into MySQL_Front and I
get my nice neat list. So it doen't look like a SQL problem.
Head banging off wall righ
what's the error you're getting now?
if you aren't getting any error, but it just isn't working try something
like...(note that I haven't tested this code).
$drop_down_list = "";
$link = mysql_connect ('localhost', '', '')
or die ("Could not select db");
mysql_select_db ('Heronsql')
or
- Original Message -
From: "George Pitcher" <[EMAIL PROTECTED]>
To: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 9:42 AM
Subject: Re: [PHP] Building Dynamic Value list using ohp
> Thanks for everyone's help but this is st
Also look for missing semicolons and unclosed braces in the lines above
22.
-Steve
On Wednesday, September 26, 2001, at 09:19 AM, Derek Mailer wrote:
> oops...I was going to add...
>
> 2) -
>
> $result = mysql_query($query, $mysql_link);
>
> doesn't require the $mysql_link argument, try
>
> $
Just looking up that extract function, the manual says it extracts into
the current symbol table. I assume that means that within foo() the
array would be extracted into local variables. Is that right?
-Steve
On Wednesday, September 26, 2001, at 06:50 AM, Alister wrote:
> Follow up to my own
If you use preg_match (PERL style Regex) instead of ereg
you can use the s match modifier which tells it to treat the
entire file as a single line... so your Regex would be
if (preg_match("|(.*)|is", $line, $out)) {
(The i is case insensitive... since you were using eregi)
Hope that helps
Sher
Thanks for everyone's help but this is still failing to work.
Revised code is:
{$row[0]}");
}
}
mysql_close($link);
?>
Any more suggestions (please)?
George
- Original Message -
From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>
To: "'George Pitcher'" <[EMAIL PROT
You can't send from outside, something that is INSIDE... I mean a session
variable.
If that could be done than probably I will seriously have security problems.
Now what you've written it's correct in my opinion and it should work.
What are you trying to do exactly? to save a session variable, o
AFAIAC,
The only function that gets you image size is GetImageSize() which you
claimed cannot do remote check. Therefore, I do not think you can manage
this without downloading/copying the file to your server.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Marian Vasile [
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dave Vanauken) wrote:
> normally this would easily be solved passing the command as
> $command="myscript.pl $name $phone $ccnum";
> $results=passthru($command);
> and parsing out the argv's in the perl script
>
> however, this break
On Wednesday, September 26, 2001, at 02:48 AM, [EMAIL PROTECTED]
wrote:
>
>
>
>
>
>
> Steve Cayford <[EMAIL PROTECTED]> on 25/09/2001 17:28:57
>
>
>
> To: [EMAIL PROTECTED]
> cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: [PHP] Getting my head around nulls
>
>
> On Tuesday, Septe
All you need to learn, about submission is just forms (post get) and some
javascript, to simulate perfectly like user is typing the info.
Youca use two frames for that and it's really easy... :)
Yours
Marian
"Krushna Kumar R" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PR
On Fri, 21 Sep 2001, vishal khialani wrote:
> Hi,
> I am searching companies who will host my site. Presently I am looking out
> for php, mysql and ssl support. So does anyone know a good company ?
> Vishal
Something to consider... perhaps supporting those companies that support PHP
might be
> Is here anyway to make a variable like $var not the same than
> $HTTP_SESSION_VARS[var], when register_globals=1?. (where
> $var is in the
> script scope).
>
> I read in a changelog that this is relatively recent (make
> $var the same
> than $HTTP_SESSION_VARS[var]).
I'm not sure what was ch
It is possible to get the filesize for couple files on other server, without
downloading ?
Probably this will be not fully resolved, but is there any way ?
Thanx,
M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
You just need a simple Regex. This should do it
http://demo.ina-finland.fi/sample.html","r";);
$buffer = fread ($fp, 100);
preg_match("|]*ruudukko[^>]*>.+|is", $buffer, $regs );
$table = $regs[0];
echo $table;
?>
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.fo
1. this:
print("$row[0]");
should be this:
print("{$row[0]}");
or like this:
echo ''.$row[0].'');
The reason for it is that within double quote you can parse for 'simple'
variables only (es: $var, not $var[]). Otherwise it gives you a parse
error.
2. this:
mys
>From the PHP manual:
http://www.php.net/manual/en/features.remote-files.php
Example 20-1. Getting the title of a remote page
http://www.php.net/";, "r");
if (!$file) {
echo "Unable to open remote file.\n";
exit;
}
while (!feof ($file)) {
$line = fgets ($file, 1024);
/* This onl
oops...I was going to add...
2) -
$result = mysql_query($query, $mysql_link);
doesn't require the $mysql_link argument, try
$result = mysql_query($query);
Another general comment is that you have copied a bit of your code that
seems to include the root password to mysql. Not a good idea - yo
A couple of things about the code...
1) -
mysql_connect ('localhost', 'root', 'monty');
should be
$mysql_link = mysql_connect ('localhost', 'root', 'monty');
2) -
You only pass
you can read more about it all and copy and adapt the code snippter from
http://www.php.net/manual/en/ref.mysql.
> > > Yes that's what I do but it freeze on netscape 6 ?
> > FAFAIK the client's browser can't influence the header() call in
> > your script. Are you sure there aren't any errors somewhere else. Eg
> > before the header() call or at the start of the page where you
> > redirect the user to?
>
> I
> > Yes that's what I do but it freeze on netscape 6 ?
> FAFAIK the client's browser can't influence the header() call in
> your script. Are you sure there aren't any errors somewhere else. Eg
> before the header() call or at the start of the page where you
> redirect the user to?
Indeed. A good
> Yes that's what I do but it freeze on netscape 6 ?
FAFAIK the client's browser can't influence the header() call in
your script. Are you sure there aren't any errors somewhere else. Eg
before the header() call or at the start of the page where you
redirect the user to?
--
* R&zE:
-- »»
Thanks Gottfried, but that doesn't change the response I get.
Any more suggestions.
George P in Edinburgh
PS I am hoping to come over to Frankfurt for the conference in November
(boss might pay)
- Original Message -
From: <[EMAIL PROTECTED]>
To: "George Pitcher" <[EMAIL PROTECTED]>
Sen
> So... when redirecting the user to a different page, you should
> always put exit after the header() call.
Yes that's what I do but it freeze on netscape 6 ?
Does anyone has experience this or am I the only one ?
py
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
date_add(time_in,interval 1 hour)
is the same as
time_in + interval 1 hour
as of MySQL 3.23 so unless you are using 3.22 you should get the
same result (anything prior to 3.22 won't support date_add)
Neither query is going to work, however, because time_in is a varchar
rather than one of the date
The reason my query didn't work is you have time_in as a varchar.
Change it to a datetime field or timestamp field and it should work.
I would suggest making it a timestamp field. That way whenever
you update the row (probably update the session field with a new
session) MySQL will automatically
1 - 100 of 130 matches
Mail list logo