Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Mag
not look very easy to learn :-( so I was hopeing for something else.. Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do

[PHP] ImageMagik

2004-10-21 Thread Mag
with php but no examples were given. Any idea of any classes that use imagemagik to do the above or you have any code taht does the above or can recommend some tutorials that do that above, please reply. Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Mag
the remote file but for some reason people left out the part if you want to just verify a file's existance... Thanks again, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

[PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Mag
'] of $remote_file but that too has failed... Any ideas? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do you Yahoo!? Declare

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Mag
but that too has failed... Any ideas? might want to try http://pear.php.net/package/HTTP_Client Nope, no PEAR allowedany other options? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile

Re: [PHP] dirty words

2004-10-18 Thread Mag
at the site and confirm itthe aboev is just something of a pre-screen I got it working though so this is an old problem :-) Cheers, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves

[PHP] Add to regex help

2004-10-18 Thread Mag
, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http

[PHP] cacheing problem

2004-10-17 Thread Mag
to set the headers or whatever :-) Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do you Yahoo!? Declare Yourself

Re: [PHP] cacheing problem

2004-10-17 Thread Mag
Hi, I dont really have a problem in converting from POST to GET but the html FILE box does not post its variables if it is not in POST eg: input type=file name=upload if you do a submit with $_GET the $_FILES array will be or not existant How to pass that? Thanks, Mag --- Greg Donald [EMAIL

[PHP] dirty words

2004-10-16 Thread Mag
some forum software before that used to take an array of bad words and check it against the post, anybody have an idea what that function would be like coz I am pretty sure I am going about this the wrong way...php has a simple solution to most of these problems... Thanks, Mag

RE: [PHP] dirty words

2004-10-16 Thread Mag
)) if(preg_match('/^Content-Length: (d+)/',$line,$m)) $size=$m[1]; echo isset($size)?size of $url file is $size: 'no such file: '.$url; Thanks, Mag in_array() can check your $string against a array and return if a bad word is in string Is this what you are after? Chris Kay (CK) [EMAIL PROTECTED

[PHP] Advanced maths help (for GD image functionality)

2004-10-15 Thread Mag
a h120 x w90 thumb *from the center of the image* eg: if from problem 1 the result is an image of 120 x 160 then x=35 and y=125 (I think, i told you i suck at maths.. :-D ) Anyone up to the challenge? or just want to help a poor person with some maths? Thanks in advance, Mag

RE: [PHP] Advanced maths help (for GD image functionality)

2004-10-15 Thread Mag
DAMN! 2 minutes after posting to the list I get some pretty good mails from two people with answers on how to solve this,while i had a restless night trying to figure this out in my head! I LOVE THIS LIST! Thanks guys, will tell you how this goes and if i have any problems. Cheers, Mag

[PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
doing even possible? or do I have to do everything from the start for problem 2 (eg: read from disk, calculate dimensions etc) Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

RE: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
hand at it tell me and i'll zip up the script and send it to you. Thanks, Mag --- Gryffyn, Trevor [EMAIL PROTECTED] wrote: My interpretation of Problem 2 before was that you wanted to get a 120w x 90h (?) section of the original image, not of the thumbnail you generated by resizing

Re: [PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
works and thanks to you and Trever I learnt how the first problem works too, not a bad day at all if I say so myself. Working on other parts of the scripts now so have not uploaded the working parts but if you would like to see it working, just reply. Cheers, Mag I think you've a couple

[PHP] include()ing into a variable

2004-10-14 Thread Mag
this is the first time I am experimenting with this approach, so I want to know is this legal in php and if I should be expecting any problems. The final pages to output can be around 100k I guess and I will be outputting every 3-60 mins. Thanks, Mag = -- - The faulty interface lies between the chair

Re: [PHP] include()ing into a variable

2004-10-14 Thread Mag
, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http

Re: [PHP] Quick imageSize question

2004-10-13 Thread Mag
the big boys on the list who have worked on stuff like this for a long time will confirm it. Thanks, Mag Hello, that's usually not possible because your webserver can't access the image on your computer; a possible solution might be to determine the image size via javascript and submit

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-13 Thread Mag
it was beyond them tooso where do we mere mortals have a chance :-D Will leave it as as for now and come back to it at a later date i guess. Thanks for trying. Mag ?php $url='http://www.textx.com/t1/t2/t3/blah.html'; function ret_url($rel_path, $base = '') { $base_path = substr($base

[PHP] Remote grabbed images are blank

2004-10-12 Thread Mag
### Any idea whats wrong? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Yahoo! Mail Address

Re: [PHP] Remote grabbed images are blank

2004-10-12 Thread Mag
Hi Rick, Thanks for replying. Mag wrote: Hi, I got a pretty good code snippet from Zend to grap a remote image and save it to disk, the problem is, when it saves to my disk i am unable to open the images...they are blank and the file matches the remote images filesize... [snip

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Oops, sorry to hear that. Some scumbag always spoils it for everyone :-( Looks like you can enable it if you really need it though.. Mag --- lists [EMAIL PROTECTED] wrote: Im kinda bummed, I tried to us it last night and discovered I could not use it because Pair Networks disables

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
with this, and specify that anybody running this code should have php 4.3.x or higher Most webhosts too I think will have a 4.3 or above version...if they are a good host anyway, ornot? I mean I have been running php on my desktop for months and have 4.3.1.. Feel free to correct me :-) Cheers, Mag

[PHP] Working out the image path...

2004-10-11 Thread Mag
); ANY help appreciated. Thanks! Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Yahoo! Mail Address

[PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Mag
/tr'; } echo '/table'; ? *** code end *** Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ___ Do

Re: [PHP] Working out the image path...partly solved, please have a look at my code

2004-10-11 Thread Mag
://www.textx.com/t1/t2/t3/imgs/blah.jpg and this: /../../imgs/blah.jpg should return: http://www.textx.com/t1/imgs/blah.jpg but its returning: http://www.textx.com/t1/t2/imgs/blah.jpg in both cases one extra level directory :-( Any ideas? Thanks, Mag = -- - The faulty interface lies between

Re: [PHP] PHP gurus...how are they doing this?

2004-10-11 Thread Mag
with REGEX (still learning from php walkers) I know this is solveable as its working on someone elses program...but just not able to work out the logic for myself. Ideas? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great

[PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
... is there anyway to 'quicken' the process or is this normal? do you recommend anything other than file_get_contents() ? and lastly, is this a resource intensive hog? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Mag
Hey, On Mon, 11 Oct 2004 07:24:03 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: $url=file_get_contents(http://www.yahoo.com/;); The thing is, it takes quite some time (2-5 secs) before the contents are in my program (I am using my local webserver on my desktop for testing

[PHP] PHP gurus...how are they doing this?

2004-10-10 Thread Mag
anybody tell me where to begin or some sample code? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Y

[PHP] finding links to jpg,mpg,avi

2004-10-08 Thread Mag
' or a href=pic.jpg or a href=pic.jpg or a class='blah' href='pic.jpg' etc HOW are these guys doing it? anybody? (I think I need regex here...but dont know regex :-(( ) Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Mag
Prick. = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.

[PHP] stand alone php

2004-10-01 Thread Mag
Hi, Is there any app that converts php to a stand alone version? like a windows .exe program. Just curious. Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

Re: [PHP] READ BEFORE REPLYING TO : Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Mag
--- Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote GH: Dear EVERYONE WHO HAS POSTED OR WANTS TO POST IN THIS THREAD... If Ms. Holland managed to get herself off of this list she is not seeing any of this... however you seem to be FLAMING the rest of the board with information

[PHP] simple date/now() question

2004-09-28 Thread Mag
help? am a bit confused because reading on google I see that there are 2 possible problems as MySql has its own time and PHP its own time (most of the time!) Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster

Re: [PHP] simple date/now() question

2004-09-28 Thread Mag
...:-) Thanks, Ryan or if you use datetime field instead of timestamp, which is prolly better off ofr many reasons, use DATE_SUB(NOW(), INTERVAL 1 DAY) or something similar. you can get timestamps from datetime fields, if that is an issue for you... Jason Mag [EMAIL PROTECTED] wrote: Hi

[PHP] 9 line function logic problem

2004-09-26 Thread Mag
of doing this? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your

[PHP] simple templateing

2004-09-24 Thread Mag
and the template should have a cacheing feature... Looking via google i think I can make such a template engine or another option would be to get the contents of a file and eval() them as was written on devshed, but if someone knows of something like this thats already written Thanks, Mag

[PHP] Any idea how this is done?

2004-09-23 Thread Mag
is using imagemagik. He also has an option to thumb an image, where you click on the image and a rectangle appears, then when you accept it, it cuts the image exactly according to the rectangleI am not too familier with imagemagik..is this easy to do? Thanks, Mag = -- - The faulty

Re: [PHP] Any idea how this is done?

2004-09-23 Thread Mag
--- Marek Kilimajer [EMAIL PROTECTED] wrote: Mag wrote: Hi, I was just looking at the demo of Comus Thumbs at http://nibbi.net/scripts/comus_thumbs.php and I see he has an option there to lighted/darken/sharpen/resize/thumb images dynamically on the page (the image gets

[PHP] Get remote servers ip

2004-09-22 Thread Mag
Hi, I have a textbox where a visitor can enter a site name/url (eg: http://google.com) and i need to display that ip on the screen. how do i get the ipaddress of google.com using PHP? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great

Re: [PHP] Get remote servers ip

2004-09-22 Thread Mag
gethostbyname() of course!!! Got it, I just forgot the function name. Thanks, Mag --- Eugeni Doljenko [EMAIL PROTECTED] wrote: That's very simple. Use gethostbyname() function. Look LXVIII. Network Functions for more details. - Original Message - From: Mag [EMAIL PROTECTED

[PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
like: http://google.com/index.html or http://www.google.com/something/more/index.html and gethostbyname is only displaying the ip if I pass it something like www.google.com Any idea how i can strip the first 2 examples to get the format i can pass to gethostbyname() ? Thanks, Mag

RE: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
Hey, Thanks Jay, I needed a starting point and after reading at the url you posted I think I need parse_url... Thanks, Mag --- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] and gethostbyname is only displaying the ip if I pass it something like www.google.com Any idea how i can strip

Re: [PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
It's all in the manual... http://us4.php.net/manual/en/function.parse-url.php Hey John, Thanks, got it! -Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

Re: [PHP] List Etiquette

2004-09-19 Thread Mag
Top posting Whats that? hehehe --- -{ Rene Brehmer }- [EMAIL PROTECTED] wrote: Most mail programs have their default settings set for top posting ... while most news clients are set for bottom posting which way is the most preferable depends on what's most useful for your reply

[PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
--- Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Mag: Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr)); ... This is the error I get: Warning

Re: [PHP] fopen problem, 5 line script [SOLVED!]

2004-09-15 Thread Mag
{ $resultt = 2; } echo $resultt; Cheers, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

[PHP] Reminder or answer to check if remote page is linking to you

2004-09-14 Thread Mag
of that thread or its url 2. how to do the above check I would really appreciate it. Thanks in advance, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

Re: [PHP] Reminder or answer to check if remote page is linking to you

2004-09-14 Thread Mag
John, Thanx for replying. I figured the part that you sent me by myself, but I dont know the regex/string functions used to read the href...any ideas? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Mag
--- John Holmes [EMAIL PROTECTED] wrote: Mag wrote: Hi, I will be getting input from a textarea and then I am using explode to break the text into an array when it encounters a space. eg: one two three four ninty would be broken into 5 parts of an array. ** The array

Re: [PHP] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Mag
the second value (which would be four) which would be be passed to the second script etc I think the main part which is confusing me is how I can take out just certain used parts of the array in the $_SESSION array...ideas? Thanx, Mag I guess you're looking for array_pop

[PHP] Perplexing problem, suggestions or answer needed

2004-09-10 Thread Mag
three) etc I have been reading the manual and have come this far, then I think I have to use the array splice function.. Am totally confused, any help, links, tutorials, pointers, tips or code would be appreciated. Thanks, Mag = -- - The faulty interface lies between the chair

[PHP] unzipping

2004-09-07 Thread Mag
Hi, Anybody know of a good class, tutorial or something easy to let me unzip a file on my server? E.g: I have 3 uploaded zip files named a,b,c I want to unzip them into 3 diff folders while preserving their file structure. Thanks in advance. Mag = -- - The faulty interface lies between

[PHP] Slightly 0T - Smarty problem

2004-09-04 Thread Mag
be appreciated. Please tell me if you want me to send you the page code/template or anything else. Thanks in advance. Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

[PHP] membership via folders

2004-08-18 Thread Mag
this from scratch...maybe modifying some existing apps? Any recommendations? resources? links? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron

[PHP] Please have a look at my function

2004-08-18 Thread Mag
everything below including !-- Hstart -- and !-- Hend -- !-- Hstart -- all this will be deleted! !-- Hend -- Its working great for 1 file, but when I put it into a for loop to handle multiple filesit takes ages for 10 files and sometimes just hangs. please help. Thanks, Mag

[PHP] PEAR

2004-08-16 Thread Mag
Hi, some newbie questions about PEAR: 1. How do I know if its already installed? (via phpinfo() ? ) 2. Can I install it myself if its not already installed or do I have to contact my host? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity