Why don't you use:
highlight_file(__FILE__) ?
- tul
James Lockie wrote:
This almost works but all my < and > are replaced with "".
// open this file to show the source
if (($fh = fopen( __FILE__, 'r' )) === FALSE){
die ('Failed to open source file (' . $_FILE_ . ') for
Sancar Saran wrote:
Greetings,
I had some problems with broser caching behaviors and php name space
collision. I do lot of googling and try to figure what happened and I failed
to figure. So I need help,
Here Details
1-) Browser Cache Beahviors
You know the back button problem. I search t
Ed Curtis wrote:
Christian Haensel wrote:
Hi Ed,
did you try the backslash as escape character?
That's what did it. I was thinking the \ was the escape for the command
but wanted to make sure.
Thanks!
Why didn't you just test it yourself? Most people (well, I hope) would
try it out, fi
Mariano Guadagnini wrote:
Hy people,
I have an existential doubt regarding php classes. I have been a php
programmer for quite a long time, but never could figure out the clear
difference between using this-> or self:: when calling member functions,
wether they are private or public. I used th
Get a php.net CVS account and you get an @php.net email adress with it.
It's an extra for the work you do, not just to be able to show off your
new email.
- tul
Shadow wrote:
Hi, All.
Does anybody know how someone can get an email @php.net?
Thanks.
-
Don
Chris wrote:
Tijnema ! wrote:
On 4/20/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Fri, April 20, 2007 4:46 am, [EMAIL PROTECTED] wrote:
> I thought I could define() and array. However, when I do this:
Nope. :-(
Has to be string or int or boolean or float or other "scalar" type.
> define(
Philip Thompson wrote:
On Apr 13, 2007, at 10:26 AM, Jay Blanchard wrote:
[snip]
Just showing my ignorance, probably,
but what exactly is meant by a "PHP editor"?
Does it mean an editor for editing PHP scripts,
or an editor written in PHP?
[/snip]
Something to edit PHP with...unless you're tr
Lori Lay wrote:
Tijnema ! wrote:
On 4/10/07, Daevid Vincent <[EMAIL PROTECTED]> wrote:
OMG. Now that is the best idea. How simple. Guess I learned something
new
today too! :)
> -Original Message-
> From: Lori Lay [mailto:[EMAIL PROTECTED]
>
> Use array_search() and unset()?
Interest
I'd agree with Tijnema! here, variable variables aren't really of any
use here. However, a classic snippet of code is where one emulates
register_globals functionality in a non-register_globals environment
(not a good idea to do this btw, unless you know what you're doing and
don't have any oth
Jeff Taylor wrote:
Yeah I have, but what I dont understand is that the value of $name is an
object, and was accepted in the original array as the index:
the original array was:
$me = new Toon(,xxx,xxx,,xxx,etc,etc,etc)
$him = new Toon(xxx,xx,x,etc,etc,etc,etc)
$array=array
I agree with the first part, that it is in many cases better to use the
Perl Compatible Regular Expressions (PCRE, preg_*) than the POSIX
compatible ones (ereg[i]_*). However, I don't quite get what you mean by
"extension is useless" ? What extension...?? and why would it be
useless? (useless i
Ok, I'm pretty sure you have a point there, but I can't really see it to
be honest.
First of all, let's start out with the usual: RTFM! This page:
http://www.php.net/oop should explain basic class/object/method/member
terminology required to understand what's going on here.
In short you coul
you could instead use the proc_* functions to do this. However, seen as
those are pretty complicated and were not available in most php versions
ran by most hosts, a lot of people had to come up with other ways
around it. The most used way is indeed what you described. A simple:
$t = tempnam()
Chantal Rosmuller wrote:
Hi everyone,
In November I sent a mail to this list asking how to get the mail From header
right, I solved that but I still have a problem. The solution was using
the -f option like this:
$frommail = "[EMAIL PROTECTED]";
mail("$to", "$subject", "$message", "$headers"
change it to
Kencana wrote:
Hi all,
I got a doubt about the str_replace function.
$string="avenue 1, ave 1";
$words=str_replace ("ave","avenue", $string);
echo $words;
?>
the php code above will return me "avenuenue 1, avenue 1". i expect the
result will be "avenue 1, avenue 1". any idea of
UTF-8 works as long as you don't include a BOM (ByteOrderMark).
- tul
Google Kreme wrote:
On 11 Nov 2006, at 08:45 , C Drozdowski wrote:
Gotta a question whose answer should be really obvious to me but, for
some reason, is just eluding me.
Which encodings can PHP handle for source files? I'v
och.
- tul
Alain Roger wrote:
Sorry to tell you that but that's why i ask here this question, because i
get everytime 01.01.1970..
RTFM i did !
On 11/11/06, M.Sokolewicz <[EMAIL PROTECTED]> wrote:
well, I could say RTFM, but I'll help you this time with a few link
well, I could say RTFM, but I'll help you this time with a few links:
1. date() http://www.php.net/manual/en/function.date.php
2. strtotime() http://www.php.net/manual/en/function.strtotime.php
- tul
P.S. RTFM!
Alain Roger wrote:
Hi,
in my database PosgreSQL i have stored some date in the fol
David Giragosian wrote:
On 11/8/06, Travis Doherty <[EMAIL PROTECTED]> wrote:
David Giragosian wrote:
> Does Daylight Savings alter Zulu time? (I'm guessing "yes"). How did
the
> military deal with that?
>
> I use a date-time field as a primary key in db tables that get an
> insert a
> minut
Eduardo Arévalo wrote:
I have installed a Mapserver ms4w v 2,0 and PHP 5.1.4 I want to use I
modulate MAPSCRIPT.
Questions as I verify that this installed this I modulate as I install it
As it use (some manual).
thanks
so what is it you want exactly...?? because to be honest, I have
abso
No you have not, otherwise we would not be seeing:
"http://www.w3.org/TR/html4/loose.dtd";>
when we SHOULD be seeing
"http://www.w3.org/TR/html4/loose.dtd";>
- tul
Mel wrote:
I have
this is the page I am working on right now and it is valid html 4.01
http://www.squareinch.net/clien
Why can't you just add a
From: Registrar <[EMAIL PROTECTED]>
header? =/
- tul
Chris wrote:
Beauford wrote:
That doesn't work.
Here is what I have.
mail($email,$subject,$body,$from);
Which is (senders address, the subject, the body of the message, and the
from address)
The from address is ta
Børge Holen wrote:
When I use a normal single file upload form; both of these statements will
continue wether my form is empty or not, why?
if(!empty($_FILES)){
do som checking if its a jpg.
if not exit;
if(isset($_FILES)){
because it IS set and NOT empty.
$_FILES['file_uplo
M.Sokolewicz wrote:
Dotan Cohen wrote:
On 24/10/06, Chris Boget <[EMAIL PROTECTED]> wrote:
> $languages = array(
>"af" => array("Afrikaans", "Afrikaans", "South Africa"),
>"sq" => array("Albanian&quo
Dotan Cohen wrote:
On 24/10/06, Chris Boget <[EMAIL PROTECTED]> wrote:
> $languages = array(
>"af" => array("Afrikaans", "Afrikaans", "South Africa"),
>"sq" => array("Albanian", "Shqipe", "Albania"));
>
> foreach ($languages as $language){
>if ( strstr( $_HTTP_ACCEPT_LANGU
Ross wrote:
Looked on google and not found a satisfactory answer. Doies anyone have a
funtion to do this?
R.
please explain, in details, what it is you're looking for. "postback for
php - a function to do this" doesn't mean squat to most people. Please
EXPLAIN.
- tul
--
PHP General Maili
you've considered the fact that you might be running php as a module via
ie. apache, thus not using a php.exe at all? (you'd be using a
php4ts.lib/php5ts.lib instead)
- tul
Richard Lynch wrote:
So, I have this automated testing script I wrote, and I want to make
it work on more than just my c
Well, you could say that there is no difference really. Classes are
mainly used as collections; They're a collection of functions (methods)
sharing a common goal/dataset/whatever. One real world example is with
database abstraction layers. Say you have a script like:
Now, if you suddenly deci
28 matches
Mail list logo