[PHP] $PHP_AUTH

2003-02-15 Thread Sebastian
= 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

[PHP] AUTH (.htaccess style)

2003-02-20 Thread Sebastian
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

[PHP] Re: AUTH (.htaccess style)

2003-02-20 Thread Sebastian
#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)

Re: [PHP] Sitewide Header & Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Sebastian
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]

[PHP] Printer Friendly page

2003-02-22 Thread Sebastian
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.

[PHP] includes || perl

2003-02-23 Thread Sebastian
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

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
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

Re: [PHP] server hostname

2003-02-23 Thread Sebastian
$_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

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
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

Re: [PHP] includes || perl

2003-02-23 Thread Sebastian
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

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Sebastian
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: [

[PHP] dummy variable

2003-02-24 Thread Sebastian
? 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

Re: [PHP] php Warning help!

2003-02-26 Thread Sebastian
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

[PHP] PHP list problems?

2003-02-26 Thread Sebastian
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

Re: [PHP] PHP list problems?

2003-02-27 Thread Sebastian
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

Re: [PHP] PHP list problems?

2003-02-27 Thread Sebastian
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

[PHP] Date question

2003-03-01 Thread Sebastian
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

Re: [PHP] Date question

2003-03-01 Thread Sebastian
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.

[PHP] Truncating text

2003-03-04 Thread Sebastian
..'; } 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

[PHP] Date Question.

2003-03-05 Thread Sebastian
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

Re: [PHP] Re: Date Question.

2003-03-05 Thread Sebastian
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,

Re: [PHP] Re: Date Question.

2003-03-05 Thread Sebastian
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

Re: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread Sebastian
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:/

Re: [PHP] Adding dates

2003-03-11 Thread Sebastian
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

Re: [PHP] Encrypting/Compiling PHP Scripts

2003-03-11 Thread Sebastian
$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

Re: [PHP] Adding dates

2003-03-11 Thread Sebastian
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

[PHP] Dynamic titles.

2003-03-13 Thread Sebastian
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

[PHP] Enabling GD library

2003-03-13 Thread Sebastian
ny help is appreciated. warm regards, - Sebastian

[PHP] str_replace

2003-03-14 Thread 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

Re: [PHP] Re: str_replace

2003-03-14 Thread 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

Re: [PHP] Re: str_replace

2003-03-15 Thread Sebastian
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

[PHP] fopen

2003-03-16 Thread Sebastian
quot;"; } @fclose ( $fp ); echo $mappic; cheers, - Sebastian

Re: [PHP] fopen

2003-03-16 Thread 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

[PHP] How safe?

2003-03-17 Thread Sebastian
then include() this code into a page that i want to secure. Thanks for any suggestions. Authorization Required - Access Denied!'; exit; } ?> cheers, - Sebastian

[PHP] script conflicts

2003-03-17 Thread 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

Re: [PHP] script conflicts

2003-03-18 Thread Sebastian
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: |

[PHP] php to perl

2003-03-18 Thread Sebastian
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

Re: [PHP] LIsting all the Members who have not loged in for 60 days ...

2003-03-18 Thread 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

[PHP] Breadcrumbs help

2003-03-19 Thread Sebastian
uot;; echo ':: main page'; for($i=1; $i» $locationText"; } echo "\n"; } LocatorLine() ?> cheers, - Sebastian

Re: [PHP] Breadcrumbs help

2003-03-19 Thread 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

[PHP] echo

2003-03-20 Thread Sebastian
hello all, is it possible to delay an echo say by 5 seconds after the page loads? cheers, - Sebastian

Re: [PHP] echo

2003-03-20 Thread 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 -

Re: [PHP] echo

2003-03-20 Thread Sebastian
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

Re: [PHP] Increase a month

2003-03-21 Thread Sebastian
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

[PHP] md5 & cookies

2003-03-21 Thread Sebastian
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

Re: [PHP] Test the server.

2003-03-21 Thread 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

Re: [PHP] Wrapping text output

2003-03-21 Thread Sebastian
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

[PHP] odd problem

2003-03-23 Thread Sebastian
("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

Re: [PHP] count up from 7

2003-03-24 Thread 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.

[PHP] counting ..

2003-03-24 Thread Sebastian
, LoL. So i have to use $_GET right? If so can someone give me an example. Thanks in advanced. cheers, - Sebastian

Re: [PHP] counting ..

2003-03-24 Thread 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]>

Re: [PHP] counting ..

2003-03-25 Thread Sebastian
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

[PHP] register globals :|

2003-03-26 Thread Sebastian
p. cheers, - Sebastian

Re: [PHP] register globals :|

2003-03-26 Thread 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

[PHP] url rewrite

2003-03-28 Thread Sebastian
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

Re: [PHP] url rewrite

2003-03-28 Thread 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

Re: [PHP] referer

2003-03-28 Thread 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

[PHP] possible?

2003-03-28 Thread Sebastian
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; } ?>

Re: [PHP] Parsing CSS files

2003-03-30 Thread Sebastian
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

[PHP] global var.

2003-03-31 Thread Sebastian
' $id so it passes to the top $variable? first time i ever ran into this problem. Thanks in advanced. cheers, - Sebastian

Re: [PHP] global var.

2003-03-31 Thread 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

[PHP] getimagesize

2003-04-01 Thread Sebastian
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

Re: [PHP] getimagesize

2003-04-01 Thread 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

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
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

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
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

Re: [PHP] getimagesize

2003-04-01 Thread Sebastian
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

Re: [PHP] Wierd PHP Image

2003-04-01 Thread Sebastian
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

Re: [PHP] Wierd PHP Image

2003-04-01 Thread Sebastian
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

Re: [PHP] timestamp from uniqid()

2003-04-02 Thread Sebastian
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

Re: [PHP] newbie2

2003-04-02 Thread Sebastian
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

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Sebastian
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

Re: [PHP] Making it so the .php isn't needed

2003-04-02 Thread Sebastian
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

Re: [PHP] chill out

2003-04-02 Thread Sebastian
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

Re: [PHP] php.ini not being used?

2003-04-02 Thread Sebastian
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

Re: [PHP] datetime

2003-04-03 Thread Sebastian
$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

[PHP] no worky :|

2003-04-03 Thread Sebastian
son) VALUES ('1', '$username', '$_POST[reason]') WHERE id = '$id'"); if($result) { echo "message sent to moderators.return to your previous page."; } } cheers, - Sebastian

Re: [PHP] no worky :|

2003-04-03 Thread 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: "

Re: [PHP] no worky :|

2003-04-03 Thread Sebastian
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

Re: [PHP] no worky :|

2003-04-03 Thread Sebastian
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" <

[PHP] Re: *****SPAM***** [PHP] REPLY NEEDED *****SPAM*****

2003-04-03 Thread 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

Re: [PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Sebastian
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

Re: [PHP] combining text with $_POST

2003-04-05 Thread Sebastian
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

Re: [PHP] Great Opportunity for all group members!!!

2003-04-05 Thread Sebastian
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

[PHP] counting words.

2003-04-06 Thread Sebastian
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

[PHP] rows by day

2003-06-15 Thread 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

Re: [PHP] rows by day

2003-06-15 Thread 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

Re: [PHP] rows by day

2003-06-15 Thread Sebastian
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

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-15 Thread Sebastian
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

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Sebastian
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

[PHP] is there a way to get the content type with php

2002-02-01 Thread Sebastian
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

AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread 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

AW: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread Sebastian
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

[PHP] can php pretend to be a MSIE or Netscape?

2001-12-17 Thread Sebastian
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

Re: [PHP] Need to check pdf for xss

2010-08-14 Thread Sebastian
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

Re: [PHP] Need to check pdf for xss

2010-08-15 Thread Sebastian
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

[PHP] magic getter

2012-07-19 Thread Sebastian
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

[PHP] magic getter

2012-07-19 Thread Sebastian
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

[PHP] mysql query

2005-02-17 Thread Sebastian
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

[PHP] uploading > remote server

2005-02-22 Thread Sebastian
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

[PHP] http referer

2005-02-26 Thread Sebastian
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   2   3   4   5   6   >