= 0 ) {
$auth = true;
}
}
if ( !$auth ) {
header( "WWW-Authenticate: Basic realm=\"$realm\"" );
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required!';
exit;
}
//- end -+
Thanks for your time.
Sebastian - [BBR] Gaming Clan
http://www.BroadBandReports.com
ability to include the file into any script I would like to
protect and validate the user based on the information that is stored on the mysql
database.
Conclusion: Does anyone know of a handy script that I could use?
Thanks in advanced.
Sebastian - [BBR] Gaming Clan
http
#x27;] and $HTTP_SERVER_VARS['PHP_AUTH_USER'] .. neither works =\
I am just including this script into a script I want to protect.
Thanks.
- Original Message -
From: Sebastian
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 4:34 AM
Subject: AUTH (.htaccess style)
do:
my config.php has all my site includes and it allows me to dynamically
change anything throughout the site in a matter of seconds.
hope this helps.
Sebastian - [BBR] Gaming Clan
http://www.BroadBandReports.com
- Original Message -
From: "CF High" <[EMAIL PROTECTED]
Greetings all.
I am looking for a simple print page script. I tried just about all the print scripts
at hotscripts.com and not one works (at least for me).
Does anyone know of one that works under php v 4.2.3 with register globals off?
thanks in advance.
I have a php script with an include("mydomain.com/script.pl"); it includes a
bit of perl, but will not include it if I do it using /home/path/ only full
URL, and when i use the full URL it causes one of my other php includes not
to function correctly.
unfortunately, I do not think
Thank you, that worked like a charm :)
I appreciate it.
warm regards,
Sebastian
- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
Cc: "php list" <[EMAIL PROTECTED]>
Sent: Sunday, Febru
$_SERVER['HTTP_HOST'] or $HTTP_SERVER_VARS['HTTP_HOST']
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, Febru
Wow, thank you. That is perfect.
I never heard of virtual() function, it really should also be located at:
http://www.php.net/manual/en/function.include.php
since it's a type of include.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Me
ah, I didn' see that. Thanks.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: Leif K-Brooks
To: Sebastian
Sent: Sunday, February 23, 2003 11:17 PM
Subject: Re: [PHP] includes || perl
It is. "See al
this question was answered about 15 times already ;)
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Sunfire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:52 AM
Subject: Re: [
?
this is the function that I'd like to use:
preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/si", "\\2");
How do I do this?
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
apparently the path to an include is not correct.. Check you have the
correct path for your include();
chmod 777 might not be the answer.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Richard Baskett" <[EMAIL PROTECT
every so often i get a blank email that contains an attachment, a ATTxyz.dat
and ATTxyz.txt why?
I just got a reply from David T-G, Thread "Deleting a page after viewing it"
and its blank with an attachment..
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
Hmm... i cannot see your message,.. see it's blank below ..
Seems to be only happening to your emails.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "David T-G" <[EMAIL PROTECTED]>
To: "PHP General li
haha, okay, I see now. your message was attached to a text file. thanks.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "David T-G" <[EMAIL PROTECTED]>
To: "PHP General list" <[EMAIL PROTECTED]>
C
what function would I use in this case, date() ? If so, how would I do the
same exact thing?
thanks.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
sorry, I do not see how that will work. I need a function that will know if
"2002-08-29 10:53:09" was 24 hours ago, and if true, "new" will appear.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "John W.
..';
}
But when a $title contains a ! (exclamation point) it only shows one result.
Why is an ! interfering?
Any suggestions?
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
I have a date field in mysql in this format: Y-m-d H:i:s
I would like to echo "Today" if the date is today, can someone offer some
help? Thanks.
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
can you give an example? I am stil learning :)
- Original Message -
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
| Strip off the H:i:s part using explode() and use date() to get an
| equivalent string for right now and if they match, today's the day.
|
| On Wed,
Thank you very much, That worked well.
warm regards,
Sebastian.
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>; "Philip Hallstrom"
<[EMAIL PROTECTED]>
Cc: "php list" <[EMAIL PR
What php version?
For older php version:
$HTTP_SERVER_VARS['HTTP_REFERER'];
Newer:
$_SERVER['HTTP_REFERER'];
Or you can usually do: echo $HTTP_REFERER;
I don't think there is even a way of disabling it in the php.ini
warm regards,
Sebastian - [BBR] Gaming Clan
http:/
http://www.php.net/manual/en/function.strtotime.php
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 3:2
$1,000 for an encrypter.. hehe.
I'm sure you'll pass, huh? ;)
I was thinking about doing the same, can't trust webhost nowadays with
access to your scripts :P
Although, I wouldn't mind seeing a cheaper method of encrypting php.
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED
No problem. I love the function myself :)
warm regards,
- Sebastian
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:24 PM
Subject: Re: [PHP] Adding dates
Hello.
I have many pages, and was thinking of a way to generate dynamic page
titles, very similar to a breadcrumb where it uses the directory structure
to make the page title.
Anyone have something like this, and is willing to give a hand?
warm regards,
Sebastian - [BBR] Gaming Clan
http
ny help is appreciated.
warm regards,
- Sebastian
This may seem weird:
How do I str_replace an include function?
I want to replace this line: include("$header");
with nothing ..
something like this:
$footer = str_replace(" '. include("$header"); .' ", "", $footer);
I get errors, any ideas?
cheers,
- Sebastian
ey visit: file.php?action=print
// html
cheers,
- Sebastian
- Original Message -
From: "John Gray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 15, 2003 12:31 AM
Subject: [PHP] Re: str_replace
| $footer = str_replace('include("$head
Thank you, that seems to work fairly well :)
cheers,
- Sebastian
- Original Message -
From: "Ernest E Vogelsinger"
| At 07:23 15.03.2003, Sebastian said:
| [snip]
| >doesn't work but also doesn't give any errors, I wil
quot;";
}
@fclose ( $fp );
echo $mappic;
cheers,
- Sebastian
not a bad idea, thanks, I will do just that.
cheers,
- Sebastian
+- Original Message -+
said by: "John W. Holmes"
| > i have this snippet of code, from what i can tell it works .. just
| > wondering
| > if i am doing it in a correct way, or if there is a bett
then include() this
code into a page that i want to secure.
Thanks for any suggestions.
Authorization Required - Access Denied!';
exit;
}
?>
cheers,
- Sebastian
i have two scripts included into one page, one of them i have been running
for a long time .. i recently made another script and when i include it into
the same page the other script returns this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
resource in /home/pub
t see mysql_fetch_row() function anywhere in your code.
|
| Sebastian wrote:
|
| >i have two scripts included into one page, one of them i have been
running
| >for a long time .. i recently made another script and when i include it
into
| >the same page the other script returns this error:
|
unfortunately i am a rookie with perl, can someone help me convert this
little bit of code to php?
thanks in advanced.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
open(LOADAVG, '/proc/loadavg') or die $1;
while( ) {
$loadavg = substr( $_, 0, 4 );
}
close(LOADAVG);
cheers,
- Sebastian
you can use strtotime()
example, this will subtract 60 days from the variable you assign to it, in
this case it'll subtract it from $lastDate
and go from there.
strtotime("-60 days");
http://www.php.net/manual/en/function.strtotime.php
cheers,
- Sebastian
- Original Mes
uot;;
echo ':: main page';
for($i=1; $i» $locationText";
}
echo "\n";
}
LocatorLine()
?>
cheers,
- Sebastian
well, the problem with that is most of my files are called 'index.php'
cheers,
- Sebastian
- Original Message -
From: "Diego Fulgueira" <[EMAIL PROTECTED]>
| Sebastian wrote:
| > hello all.
| >
| > this code creates dynamic breadcrumbs, ie: home
hello all,
is it possible to delay an echo say by 5 seconds after the page loads?
cheers,
- Sebastian
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I just want to delay some text from loading too quick.
i am sure is can be done in java but i don't have any experience in it :s
cheers,
- Sebastian
- Original Message -
thank you. now we're talking, Works great :)
cheers,
- Sebastian
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
| sorry - sleep(5);
|
| -Original Message-----
| From: Sebastian [mailto:[EMAIL PROTECTED]
|
| php has a wait function? I didn
see if it works.
Note: strtotime() does the math, thats why it doesn't work, or at least
thats what i think is happening.
cheers,
- Sebastian
-Original Message-
From: shaun [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Increase
hello all,
Cookie noob here :s
how do I add md5 hash so it encrypts the password only in the cookie? and
how do I increase the expire time to 30 days? Here's the snip:
setcookie("pass","$HTTP_POST_VARS[password]",time()+(3600*24*7));
Thanks in advanced.
cheers,
- Sebastian
put this in a .php file:
it'll tell you what OS, (usually)
check if safe mode is on.. if it's on then usually you can't "exec"
anything.
cheers,
- Sebastian
- Original Message -
From: "Vincent M." <[EMAIL PROTECTED]>
| Hello,
|
| Is there a
wrap ..
cheers,
- Sebastian
- Original Message -
From: "Philip J. Newman" <[EMAIL PROTECTED]>
| $my_data = "This is a really long string that could go on for ever and
ever
| and ever and ever and ever and ever and ever and ever and ever and ever
and
| ever and ever and ever an
("UPDATE comments SET reported = '1' WHERE id =
'$HTTP_GET_VARS[comment]'");
}
// some echos..
echo "
";
Its suppose to update mysql once the submit button is pressed, but its not..
Is the form ok?
cheers,
- Sebastian
not sure if this is what you're looking for:
if ( $var > 7 ) {
// do stuff
}
- cheers,
Sebastian
- Original Message -
From: "Richard Whitney" <[EMAIL PROTECTED]>
| Braindead!
|
| I need to evaluate a number if greater than 7 and add a value per
increment.
,
LoL.
So i have to use $_GET right? If so can someone give me an example.
Thanks in advanced.
cheers,
- Sebastian
I Have made my own pagination script, but i am trying give each comment
isn't own number. Which i already did, but when i view the next results it
starts counting from 1 again.
cheers,
Sebastian
- Original Message -
From: "Nikunj Virani" <[EMAIL PROTECTED]>
because my comment system is pretty much like forum style, sometimes a user
referrers to another comment by it's number, etc...
.. and because i want to ;)
cheers,
- Sebastian
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
| Why do you think comm
p.
cheers,
- Sebastian
Hmm .. might be easier to use an .htaccess. Is it possible to enable
Register Global just for the script and not the site? I heard it's possible
to enable it on just one directory (where the script resides).
cheers,
- Sebastian
- Original Message -
From: "Leif K-Brooks" &l
hello,
i am not sure where to post this question, since it's partly related to PHP,
so i'll ask here.
I'd like to rewrite a url
that looks like this: /news/articles/article.php?id=255
into /news/articles/255/
any help is appreciated.
cheers,
- Sebastian
if that were the case I wouldn't have asked here.. perhaps i didn't find the
answer at "google or the archives."
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Ask google or ask the archives.
| On Friday 28 March 2003 16:38, Sebastian
try: $_SERVER['HTTP_REFERER'];
cheers,
- Sebastian
- Original Message -
From: "Mat Harris" <[EMAIL PROTECTED]>
| am i going mad or something?
| i want to use the referer string from the server vars, but the
| $_SERVER["REFERER"] and $HTTP_SERVER_VARS
ow about
dynamically resizing them such as:
image.php?id=1&width=300 is that possible? If so, please let me know how.
Thanks in advanced.
cheers,
Sebastian
0)
{
$row = @mysql_fetch_array($result);
$image_type = $row['type'];
$image = $row["image"];
header ("Content-type: $image_type");
print $image;
}
?>
if you have cpanel you can add the extension from there.
cheers,
- Sebastian
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
Is there any way of making PHP parse files with a CSS extension?
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
' $id so it passes to the top
$variable?
first time i ever ran into this problem.
Thanks in advanced.
cheers,
- Sebastian
org" );
$result = @mysql_query("INSERT INTO images blah blah.");
$id = mysql_insert_id();
cheers,
Sebastian
- Original Message -
From: "Marcus Rasmussen" <[EMAIL PROTECTED]>
Putting an & sign in front of the $id in the first line should do the trick
esize($form_data);
if($imagewidth[0] >= "1024") {
$img_width = "1024";
} else {
$img_width = "*";
}
// rest of the script to resize...
so an i doing it the proper way of getting $form_data?
cheers,
- Sebastian
What? the ACCEPT? yes it can be done :)
http://www.w3.org/TR/REC-html32.html#rfc1867
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| wow wots this
|
|
|
| this is a first i never knew you could do that ?
|
| $imagewidth = getimagesiz
no it doesn't work, it returns this: Warning: getimagesize(Array)
so its not getting the image from the form hmmm
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| well does this not work ? $imagewidth = getimagesize($_FILES['i
nope, still get Warning: getimagesize(Array)
i've tried everything and it just doesn't get the form data :|
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| try removing that mime check , and put this to lower case encType
| tr
php 4.3.1.
I got it working, this is what i had to use:
$imagewidth = getimagesize($_FILES ["image"]["tmp_name"]);
if($imagewidth[0] >= "1042") {
$img_width = "1024";
} else {
$img_width = "*";
}
i guess i had to add the tmp_name :)
Than
sorry what is Thies?, I have this too in my phpinfo... do i need it? Should
i get rid of it?
It started to appear when I complied GD Library with mcrypt support.
cheers,
- Sebastian
- Original Message -
From: "Don Read" <[EMAIL PROTECTED]>
|
| On 02-Apr-2003 Ben Lake
well, its not much of a joke .. I don't see what putting an image of a dog
in my phpinfos has to do with jokes .. a pretty stupid one nonetheless..
cheers,
- Sebastian
- Original Message -
From: "Jason k Larson" <[EMAIL PROTECTED]>
| I hope you all can take a jok
may i ask what is it that your trying to do? Why not use time(); ?
cheers,
Sebastian
- Original Message -
From: "nooper" <[EMAIL PROTECTED]>
| Would there be a way to extract a timestamp from uniqid(), since the
| function is based on the microsecond, and its purp
fatal error? What gave you this? Enabling it might not be a good idea, for
security.
.. but if you want to enable it you have to editing the php.ini and set
register_globals to ON.
cheers,
- Sebastian
- Original Message -
From: "Ilyas" <[EMAIL PROTECTED]>
To: <[EMA
Hello,
read this:
http://php.benscom.com/manual/en/security.hiding.php
:)
cheers,
- Sebastian
- Original Message -
From: "Teren Sapp" <[EMAIL PROTECTED]>
Hi, I had it setup on my server before i reloaded it, but what i need to
have happen is so that when i'm p
yeah pretty cool,
there are no limits on what you can do.
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| this is funny , you could have any extension u like say , i'm a synth
freak ,
| i luv the word "303" so on some of my
for a list that is not moderated i think it's doing quite well.
this isn't a service so you get what you pay for ;)
cheers,
- Sebastian
- Original Message -
From: <[EMAIL PROTECTED]>
| We subscribe to a few email lists on various languages.
|
| This list would have
at the bash prompt type "where is php.ini"
and it will tell you exactly where it's at.
cheers,
- Sebastian
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
| Hi,
|
| I can't believe I've never bothered to learn this stuff, s
$date = date("Y-m-d g:i:s", $date);
echo $date;
cheers,
- Sebastian
-Original Message-
From: Tim Haskins [mailto:[EMAIL PROTECTED]
> How does one retrieve the date and time off a server in the following
> format?
>
> 2003-04-03 11:11:38
--
PHP Gene
son)
VALUES ('1', '$username', '$_POST[reason]') WHERE id = '$id'");
if($result) {
echo "message sent to moderators.return to your previous page.";
}
}
cheers,
- Sebastian
thanks for pointing that out yeah, you're right it was wrong, should be
"UPDATE news_comments SET WHERE ..."
since there was already a row.
... still can't get it to post to the database though.
cheers,
- Sebastian
- Original Message -
From: "
ugh, just when you posted that I got it figured it out!
I needed a hidden value like you said!
Thanks!
cheers,
- Sebastian
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 20
haha, good one!
Funny, I have a bad habbit of using "ugh".
cheers,
- Sebastian
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
| The name's not ugh it's Hugh ; )
| ----- Original Message -
| From: "Sebastian" <
can you not yell?!
- Original Message -
From: "PATRICK KOFI" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 5:28 AM
Subject: *SPAM* [PHP] REPLY NEEDED *SPAM*
| SPAM: Start SpamAssassin
results --
| SPAM: T
This is how i make my drop downs, see if this help...
echo "
show all";
$results = @mysql_query("SELECT * FROM table");
while($row = mysql_fetch_row($result)) {
echo "$row[0]";
}
echo "";
che
you also really don't need single quotes in the $_POST...
echo "Name: $_POST[name]";
.. should work.
cheers,
- Sebastian
- Original Message -
From: "Don Read" <[EMAIL PROTECTED]>
|
| On 06-Apr-2003 David McGlone wrote:
| > Hi all, how can I co
hehe. i should get me one of those ;)
cheers,
- Sebastian
- Original Message -
From: "Matt Giddings" <[EMAIL PROTECTED]>
| mailto:[EMAIL PROTECTED]";
|
| function spam-o-meter( $sender ) {
| return( is_real($sender) ? 'not spam' : 'spam
s(strtr($row[12],
array_flip(get_html_translation_table(HTML_ENTITIES;
$wordcount = preg_match_all("#(\w+)#", $row[12], $match_dummy);
if($wordcount == "0") {
$count ="";
} else {
$count = preg_match_all("#(\w+)#", $row[12], $match_dummy);
}
cheers,
- Sebastian
s that are posted on Monday.
Tuesday's Articles:
all rows that are posted on Tuesday ...
Etc, etc.. How would I group them like that. I want to echo the actual day
with all the rows of that day falling under it.
can i do this with one query? Or would i have to create multiple queries?
any examples?
Thanx for any help.
cheers,
- Sebastian
the database has the timestamp in unix format, so this is what i use for
'dayofweek_column' ?
what should $old_dayofweek hold?
thankyou.
cheers,
- Sebastian
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
| John W. Holmes:
|
| You only n
r = "News for
$content['datefor'] ";
$old_dayofweek = $content[timedate];
}
echo "$newsfor $row[title] Written by $row[author] $row[text]";
}
cheers,
- Sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
See if this helps you get started. I assume each user has an ID. If so all
you have to do is make a query above $userid that fetches the user ID of the
user that is auth to download.. Also, edit the $path to the location of the
files, you can download a file by file.php?file=a_file.zip -- he/s
it should not do that. Are you on *nix?
try not editing the script so much, try it like i gave it to you except
remove the array to test a file to download. Just to verify that the script
works for you.
cheers,
- Sebastian
- Original Message -
From: "Mishari" <[EMAIL P
Hi all
i have a skript that sends out various files after versifying tat the
user is authenticated.
can i determine the content type of a file with php? like using it on
pdf and it return
applicatin/pdf etc?
Sebastian
if user
is
authorized to get these files.
sebastian
> -Ursprüngliche Nachricht-
> Von: George Pitcher [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 19. Oktober 2001 12:55
> An: Arpad Tamas; [EMAIL PROTECTED]
> Betreff: Re: [PHP] Delivering NAMED pdf files
>
>
&g
Hi
We encountere some problems with our Squid-Proxy.
When we user direct internet connection the sky was the limit,
but with our Proxy, the limit was 2MB...
Sebastian
> -Ursprüngliche Nachricht-
> Von: The Big Roach [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 13. Nove
hi all
how do i prevent php from exposing itself when opening url with
fopen() ?
kann i make it look like MSIE or whatever?
reaons : i want to query google by script but it does not allow that...
Sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Peter Lind wrote:
> On 14 August 2010 22:36, Sebastian Ewert wrote:
>> Hi,
>>
>> before I allow to upload images I read them and check for several html
>> tags. If they exist I don't allow the upload. Is their any need to check
>> pdf files, too? At the time
OK THX to everyone. I will check the images with imagick and let the
pdfs in adobes responsibility. One worry less.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
is this a bug, or a feature?
class Foo
{
private $data;
public function __get($name)
{
return $this->data[$name];
}
}
$foo = new Foo();
$foo->color = 'red';
echo $foo->color;
I would expect an error, or a least a notice, but it prints out "red" ...
--
PHP General Mailin
Hi all,
is this a bug, or a feature?
class Foo
{
private $data;
public function __get($name)
{
return $this->data[$name];
}
}
$foo = new Foo();
$foo->color = 'red';
echo $foo->color;
I would expect an error, or a least a notice, but it prints out "red" ...
--
PHP General Mailin
Hello,
im working on an article system and looking to avoid running three queries.
example, i have this query:
SELECT id,title FROM articles WHERE id=$_GET[id]
now say $_GET[id] = 5
I would like to get the previous id 4 and the next id 6 (if there is one)
so i can do something like:
<< Previous
i have some php forms which uploads files/images and i would like to know if
its possible to upload them to a remote server instead, if so, how?
cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok, so i made a file manager and i need to prevent people from linking
directly to files that do not come from another part of the site.
i know i can use http_referer, but i wonder how fool proof it is, i dont
want to spit out errors to a legit user that actually came from a valid page
before tryi
1 - 100 of 578 matches
Mail list logo