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

2004-10-21 Thread Mag
tually fetches 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, eve

[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
s that might be my best option)...but it does 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 fa

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

2004-10-20 Thread Mag
') > > > > where domain is the parse_url['host'] of > $remote_file > > 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, M

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

2004-10-20 Thread Mag
host'] 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

[PHP] Add to regex help

2004-10-18 Thread Mag
t remember how I modified it and it completly ignores the below: because its a map and I guess it does not start with but I need to make sure it catches even the above... Can someone help me add to the above regex please? Thanks, Mag = -- - The faulty interface lies between the chai

Re: [PHP] dirty words

2004-10-18 Thread Mag
at pass the above test get added to the database on an "unconfirmed" state, then I personally look 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 f

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: if you do a submit with $_GET the $_FILES array will be "" or not existant How to pass that? Thanks, Mag --- Greg Donald <[EMAIL PROT

[PHP] cacheing problem

2004-10-17 Thread Mag
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] dirty words

2004-10-16 Thread Mag
ath']} HTTP/1.1\r\nHost: {$addy['host']}\r\n\r\n"); while($line=fgets($sh)) 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

[PHP] dirty words

2004-10-16 Thread Mag
have seen 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] 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 c

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 > thum

[PHP] Advanced maths help (part 2)

2004-10-15 Thread Mag
the first parts output... is what i am 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 pla

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 (for GD image functionality)

2004-10-15 Thread Mag
e x and y parameters to cut 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?

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

2004-10-14 Thread Mag
complicated, would you mind filling in your example a bit more and I can make add to it and work from there? 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] include()ing into a variable

2004-10-14 Thread Mag
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 and t

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

2004-10-13 Thread Mag
re is something to try Nope, no go...but dont worry about it, most of the PHP gurus on the list have not replied so I guess 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

Re: [PHP] Quick imageSize question

2004-10-13 Thread Mag
"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

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

[PHP] Remote grabbed images are blank

2004-10-12 Thread Mag
## ';else:echo "No image there.";endif; ?> ### End image code ### Any idea whats wrong? Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, ever

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

2004-10-11 Thread Mag
ath,'/../') === false) > { return $base_path.$rel_path; } > > elseif(strpos($rel_path,'://') > 0) > { return $rel_path; } > > else { return > collapse(dirname($base).'/'.$rel_path); } > > retu

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

2004-10-11 Thread Mag
ris[] ='http://some-site-blah.com/imgs/blah.jpg'; echo ''; foreach($uris as $uri) { echo ''.htmlspecialchars($uri).''.htmlspecialchars(ret_url($uri,$url)).''; } echo ''; ?> *** code end *** Thanks, Mag = -- - The faul

[PHP] Working out the image path...

2004-10-11 Thread Mag
$pieces= explode("/",$thispath); print_r($pieces); 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. :-)

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

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: > I"m kinda bummed, I tried to us it last night and > discovered I could > not use it because Pa

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 us

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

2004-10-11 Thread Mag
xperienced guys... 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 g

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

2004-10-11 Thread Mag
; or ".mpg". I thought so too, but then its not picking up the normal image links eg: its only takeing the href image links eg: Another problem is I am not too good with REGEX (still learning from php walkers) I know this is solveable as its working on someone elses program...but just n

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

2004-10-10 Thread Mag
same thing for a cartoon site, can 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. :-) _

[PHP] finding links to jpg,mpg,avi

2004-10-08 Thread Mag
:-(( ) 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 AutoComplete - You start. We

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 wit

[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] 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. http:/

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

2004-09-28 Thread Mag
for me...:-) 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... > >

[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

[PHP] 9 line function logic problem

2004-09-26 Thread Mag
am i doing wrong? or is there a better way 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 Y

[PHP] simple templateing

2004-09-24 Thread Mag
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 =

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/sharpe

[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] 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, every

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.co

[PHP] Get remote servers ip [part 2]

2004-09-22 Thread Mag
thing 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()

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

[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] 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

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

2004-09-15 Thread Mag
= 1; } else { $resultt = 2; } echo $resultt; Cheers, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism

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? > > > > > $fileptr = > > fopen("http://www.google.com/index.html","r";); > > > >

[PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
t; ?> This is the error I get: Warning: filesize(): Stat failed for Resource id #1 (errno=2 - No such file or directory) in /home/quickxxx/public_html/tpg/ check- remote.php on line 4 Warning: fread(): Length parameter must be greater than 0. in / home/quickxxx/public_html/tpg/check-remote.

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

2004-09-14 Thread Mag
functions to search $page for a > "href" back to your site. > Not foolproof, but then nothing is. > > ---John Holmes... Hello 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

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

2004-09-14 Thread Mag
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] Perplexing problem, suggestions or answer needed

2004-09-11 Thread Mag
> finishes > > it redirects back to the first script which will > pass > > 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 > &

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: >

[PHP] Perplexing problem, suggestions or answer needed

2004-09-10 Thread Mag
y) four (deleteing four) three (deleteing 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

[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-03 Thread Mag
any advise/examples would 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, ev

[PHP] Please have a look at my function

2004-08-18 Thread Mag
low including "" and "" all this will be deleted! Its working great for 1 file, but when I put it into a for loop to handle multiple files....it takes ages for 10 files and sometimes just "hangs". please help. Thanks, Mag = -- - The faulty interfac

[PHP] membership via folders

2004-08-18 Thread Mag
iting 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 lov

[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 is