Hi from Fleming . Hope your Friday is cool and happy holidays. Something
big for HxPn.pk over next few weeks. Check otc boards. Keep an eye out for
it and get in early.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in, so it will be ours.
_YOU_ have to pay, _WE_ own the domain.
Wonder who would patent this.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$pdag[$n];
echo $$temp;
or
$temp = $$pdag;
echo $temp[$n];
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 02:05 24.11.2002, empty said:
[snip]
>i have string like: "string";
>
>how can i get variable $string;
[snip]
$var = 'string';
$$var will resolve as $string
--
>O Ern
At 08:47 24.11.2002, Jean-Christian Imbeault said:
[snip]
>Ernest E Vogelsinger wrote:
> >
>> if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) {
>
>Ok, please forgive my ignorance, but in PH
...
[snip]
You're quite right :=
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o comments.
I have no profiling yet how much having comments or blank lines would
actually effect execution times, but I doubt it would be really an issue
since PHP, once a comment start is encountered, doesn't parse the text but
just scans for the end-comment tag.
--
>O Ernes
these loops, be it an
end-of-line comment, an inline comment, or no comment.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
runs locally and gets contacted by
the applications, or even some shared memory... choose your ways, but keep
your data at the server's.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he very last bottleneck
that ever would occur; the database times add up much quicker than any
session file i/o would ever be able to.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
than having no comments in them *g*
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
chown root:apache, chmod 640 *).
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
away because it is expired...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an uncached form could still be populated by your script when using
session variables.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e("D, d-M-Y H:i:s \G\M\T", ($time));
header("Set-Cookie: $name=$value; expires=$date; path=/;");
} else {
header("Set-Cookie: $name=$value; expires=" . time()+$exp . ";
path=/;");
}
return true;
}
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at Alex was talking about a search
form. Search forms are often used on "normal" static web pages _without_
the help of sessions... that's the reason.
Rest assured I know about sessions in PHP :)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://
he script "getimg.php" would need to issue the appropriate cache
directives to allow caching.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rection problems on IIS
where I had to resort to
header('HTTP/1.0 302 Moved');
header)'Location: blah');
Don't know if this helps in your case.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Moved
Location: blah
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
en reads all necessary data, including last login, user rights, etc
etc, from the DB, sometimes updates a user cookie, depending on the app. DB
is checked only once.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing Li
overloaded
constructor both times.
What you might do to distinguish which "overload" has been called:
function A($string=null) {
if (!isset($string))
echo "Default constructor A()\n";
else
echo "Overloaded constructor A($st
sion yields true if 1-3 are not-empty AND four is an empty
string. Not sure if that's what you want.
All empty:
!($lineone || $linetwo || $linethree || $linefour)
--or--
!$lineone && !$linetwo && !$linethree && !$linefour
All set:
$lineone &&am
At 16:45 26.11.2002, Chris Shiflett spoke out and said:
[snip]
>--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote:
>
>> At 13:50 26.11.2002, [EMAIL PROTECTED] said:
>> >if ($lineone && $linetwo && $linethree &
ery strings.
Just check with the W3C HTML Validator: http://validator.w3.org/
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
st page for all to check out... nevertheless,
here it is:
http://www.vogelsinger.at/test.php
Simply provides a link using query parameters encoded with &, to check
with different browsers. Maybe someone will check this outwith his browser
anyway.
--
>O Ernest E. Vogelsinger
done online manual at http://www.php.net/manual/en/.
Regards,
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lready there,
check it out with "locate php" or "whereis php".
For Win32 there are prefab'ed binaries, including an installer,
downloadable at PHP's web site: http://www.php.net/downloads.php
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
mber function on a non-object
[snip]
Just as the error message says - you're trying to execute a function
(like $hObj->foo()) where there's no such function.
Would be helpful if you posted some code where the error arises...
--
>O Ernes
thorized']);
This will create a "unique" realm due to the use of date/time, so when the
user logs off he will be presented with a 401 response, even if the browser
has cached the login info from the previous login attempt. Another realm,
another game.
Disclaimer: untested, as usual.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
oblems _refusing_ upload (except size exceeds, of
course) in the online manual. I only found that browsers can be directrd to
easily circumvent the limit (save html locally, edit form action to point
to your server, edit max_file_size, and there you go...)
Try the above hints and tell us abo
grammer, but you certainly lack style and
social skills.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
write some log file at the very beginning of your script to
see if the web server runs your script, or not (what I assume).
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
At 20:11 27.11.2002, Ernest E Vogelsinger spoke out and said:
[snip]
>Ooops - you should normally only get this with GET requests where the max.
>query string size is exceeded - I'd check the Apache docs though... seems
>positively to be connec
At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said:
[snip]
>Error 413 certainly denotes that the web server refuses to handle the
>request. No idea how to configure this value but I'm sure it can be done
>with Apache. I see a be
www" user is member of.
In short - if you can create the file, you can delete it as well. (At least
that's what I've learned).
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
an be created on the fly
(dynamically) by PHP.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ariables of
their choice into PHP, making any script more than unsafe. Having it
switched off allows YOU to control the data that you work with - an
absolute MUST unless you're begging for trouble, IMHO.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.
$input = $aresult[3];
}
// $input has the rest of the line
array_push($tokens, explode(' ', $input));
return $tokens;
}
Disclaimer: untested as usual. _Should_ behave like this:
$string = "\"search for this sentence\" -NotForThisWo
At 23:11 27.11.2002, Ernest E Vogelsinger said:
[snip]
>If I understand you correctly you want to isolate either quoted strings
>(with or without whitespace), or tokens separated by whitespace, as array
>elements?
>
>For this you would first
ot;http://www.healthtvchannel.org/courses/pay/data/test.xml";;
$fp = fopen($dataFile, "rb");
$strFile = null;
while ($chunk = fread($fp, 524288)) // 512 kB chunks modify as needed
$strFile .= $chunk;
fclose($fp);
HTH,
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
$c != chr(13) or $c != chr(9)) {
$isbinary = 1;
/* >>> */ break;
}
}
}
return $isbinary;
}
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of thumb, always pass REFERENCES when
you're dealing with object handles.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be ready to go!
[snip]
Sounds fine - did you restart Apache?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ray,
isn't it always easier to omit some functionality you don't need than to
reinvent the wheel? You get the source code anyway, so why don't you just
use one of the solutions you found, learning how they did it, and learning
a lot of other useful stuff too?
--
>O
hould study the SOAP protocol (a.k.a. WebObjects) - this protocol is
intended to let servers - even remote ones - work cooperatively together.
It's good stuff IMHO, despite the fact that M$ is hooked on it with C# and
.net.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ h
matches), or is
outdated (serial number mismatches), for what reason ever, be it a refresh
or the user stepping back and resubmitting.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld:
function submitForm(form) {
document.forms[form].submit();
window.opener.location.reload();
window.close();
return true;
}
...within your form code...
...your form contents...
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogels
ry again. If it works
then, shoot them.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eneral
This is listed at the PHP home page, when clicking on "mailing lists",
"general/Archive(yes)".
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
server and appending xml
>data right after the header. I need access to the xml blob.
[snip]
Not sure if this gives you the posted data, but you could try
$_SERVER['QUERY_STRING']. Or simply print_r the $_SERVER array to check if
it is available.
ints out fine"?
However, this gives exactly what you want:
----
Output for both cases:
1024x768
1024x768
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
blanks in a search argument.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
no tag defined in HTML, or XHTML, that would do what you need.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Productivity
>
> Web Developement. Database. Hosting. Multimedia.
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;)
a dot before
anything without a dot before (grouped, 'preext')
starting with a dot
The group will contain the preextension.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;q=input. Any ideas?
>
>action=\"$PHP_SELF?action=change&id=$id&q=input\">
[snip]
Most certainly register_globals is off in your php.ini file. Try using
$_SERVER['PHP_SELF'] instead of $PHP_SELF.
--
>O Ernest
2 as "data1", 'hello world' as "data2"
FROM users where username='myUsername';
should do it (untested on mySQL)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
re* trying to use it?
>
>--
>Jason Wong -> Gremlins Associates -> www.gremlins.biz
>Open Source Software Systems Integrators
>* Web Design & Hosting * Internet & Intranet Applications Development *
>
>/*
>Fay: The British police force used to be run by me
rity on how documents look like.
For example, in Internet Explorer, you may go to Extras/Options/Advanced
and specify to print (or not) background colors or images. In Netscape this
option exists in the preferences dialog.
There's no way for the page to override the agents settings.
--
y ($_SESSION['count']) to handle session persistent data:
html_begin ($title, $header);
if (!array_key_exists('count', $_SESSION)) {
$_SESSION['count'] = 1;
}
else {
$_SESSION['count']++;
}
end then
r).";";
> }
> else {
>$output_string .= $char;
> }
>}
>
>You may need to test for value 127 ... not sure if it starts on 0 or 1
>that is...
[snip]----
preg_replace('([\x80-\xff])/e', '&#'.ord(
Renée Zellweger becomes Renee Zellweger.
[snip]
$chars_in = array('Á',''á','É','é'); // you get it
$chars_out = array('A','a','E','e'); // this too
preg_replace($chars_in
>>
>> but i see a single line instead of:
>> -line1
>> -line2
>> -line3
[snip]
Use nl2br(), something like:
echo '', nl2br(htmlentities($string)), '';
This should give you the results you need.
--
outside the tag, without an
attribute, just plain:
Print '',
htmlspecialchars($row['OrgName']),
'';
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in php-4.3.0. but the value is displayed in
>php-4.2.2 version.
[snip]
Perhaps the 4.2.2 server is configured with register_globals on, and the
4.3.0 has set this to off?
Try
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
'normal' names fail and goofy ones don't; without some code and
>some specific examples we can't really tell too well :-)
[snip]
I believe you could even use md5() to "encode" the logon... would shield
everything too :)
--
gt;header("Content-Length: $filelength"); header("Content-Disposition:
>attachment; filename=".basename($fname).";");
[snip]
The correct Content-type is "application/octet-stream". Should work with that.
--
xt2']}', '{$_REQUEST['num2']}', '{$_REQUEST['city']}',
'{$_REQUEST['state']}', '{$_REQUEST['zip']}', '{$_REQUEST['desc']}',
'{$_REQUEST['flags']}')");
Two other &
At 10:08 29.01.2003, Justin French said:
[snip]
>The W3.org site is down at the moment, so I can't confirm this, but I'm
>pretty sure...
>
>
AFAIR
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^
ply global so you need to
declare it within a function.
$php_errormsg is not set by default (warning prone) and will be overwritten
immediately by the next error or warning. What you should do is something
like this:
global $php_errormsg;
$php_errormsg = null;
@run_your_script();
$err = $php_erro
At 11:13 29.01.2003, Sol spoke out and said:
[snip]
>test
[snip]
testback
please provide detailed information how you received this mail so the it
can be shared with the list :)
--
>O Ernest E. Vogel
by parsing the "Received" headers. MTAs usually
add something like "received for", which corresponds to the SMTP envelope
RCPT address, not to the message's MIME "To" or "Cc" entries.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
At 15:51 29.01.2003, Ysrael Guzmán spoke out and said:
[snip]
>Warning: Failed opening 'cliente.php' for inclusion
>(include_path='.;c:\php4\pear') in Unknown on line 0
[snip]----
and?
--
le rebuilding the cache...
My 2c :-)
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a certain cookie value is available, with
register_globals on this value may be forged by passing the value as part
of the url. A lot of different possibilities arise.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing
on't have a clue as to what's going on...
Did you mention the version? Possibly there's a special build here that
never allows to register globals? (config gurus chime in here please)
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.a
eld name list)
>VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3'])
>
>I just want to use $var1, $var2, $var3
[snip]
You can always resort to
extract($_REQUEST);
--
>O Ernest E. Vogelsin
'));
echo $this->export;
exit();
Note that it seems to be necessary to surround the filename using quotes to
make it work correctly.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nt.
>What am I misunderstanding?
[snip]
PHP tries to "help" you - you can only compare data of the same type. So
PHP goes ahead and casts this for you, a string to int in this case.
If you compare it using "===" (typesafe comparison) you
slash is an "escape"
character telling PHP to take the next character literally. So if you want
a backslash you need to type 2 of them:
"C:\Program Files\php" ==> "C:\\Program Files\\php"
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^
is not allowed to make an
outgoing connection on the specific port?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Include your class definition file before session_start() and you'll be fine.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
???
With the first method, you'd need to test for a button named 'sample_a'.
For the second method, you'd need to test for a button named 'sample_b_x'.
So where's the difference?
You need to "loop" through all available button names
input fields in your form that might
name-collide (which wouldn't be good anyway ;->), this will give you an
array with exactly one entry if any of the buttons are clicked, be it an
image (sample_a, sample_c) or a regular (sample_b) button.
--
>O Ernest E. Vogelsinger
(\) ICQ #
QUEST['button'] containing the button value. Note
though that this doesn't work if JS has been disabled in the browser, or if
the "browser" doesn't support JS at all.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;rename fails with "there is no such file".
>whats wrong?
[snip]
try to escape blanks and quotes:
rename("/tmp/foo\ \'n bar", "/tmp/foobar");
generally you should escape all non-ascii characters in file n
AddType text/plain .php
engine=off returns an apache config error.
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is set. It's very likely that your test never
succeeds (except by chance that var1.var2.var3 result in "0".
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Simply try
$hf = fopen($filename, "w");
- Original Message -
From: "Jason Jacobs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:30 PM
Subject: [PHP] problems with fopen
Afternoon all.
I've been trying to write to a text file for a while. I opened it
1) Include file not found:
if (file_exists($incfile))
include($incfile);
else
include ($error_html_file);
2) Error in file:
global $php_errormsg;
$php_errormsg = null;
@include($incfile);
$err = $php_errormsg;
if ($err)
echo "The include file $incfile has an error: $err";
The trick is
Don't use array_push - simply set the value:
$image_array[$file_name] = $image_url;
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 1:28 PM
Subject: Re: [PHP] Creating associative ar
As you correctly found out, the onUnload handler would be the place to do
this, something like this:
Within your page, have a hidden form:
In your statement you'll have
Be aware that this will trigger _always_ if the user leaves the page,
regardless if he closes the browser, or goes to an
$_REQUEST['date'];
$year = $date_received['Y'];
$month = $date_received['M'];
$day = $date_received['D'];
HTH,
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rst entry');
$elem = array('prev' => &$start, 'next' => null, 'data' => 'Second
entry');
$start['next'] =& $elem;
You get the picture, I believe. Just make sure the "pointers" are actually
references to the li
reference:
class foo {
function test() {
if (isset($this) && is_object($this) && get_class($this) == 'foo')
echo 'I am a foo object';
else
echo 'I have been called as a "static" method';
}
}
$foo = n
t;manual, in this case http://www.php.net/manual/en/language.types.string.php
[snip]
To shorten up the process, you're missing the string concatenizer:
echo '';
or
echo '';
This doesn't mean you shouldn't read the manual, thou
-[snip]
I'm not sure if this is the source of your problems, but when referencing
an array from within a string you should put it in curly quotes:
echo "\n";
$query = "select username, active, password, clec_id from users
t;
>But then the PHP isn't executed, it just dumps me the straight source
>code.
If you can open and read the report, there's only one more step to execute
it: use eval():
$fname = "/www/htdocs/admin/report.php"
$file = fopen($fname,"r");
if ($file) {
$c
et/manual/en/ref.pcre.php
http://www.perldoc.com/perl5.6/pod/perlre.html
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
les\sitemap\admin\admin_header.php on line 19.
Pretty cool, hm?
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 595 matches
Mail list logo