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
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
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
')
> >
> > 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
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
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
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
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
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
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
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
=
--
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
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
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
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
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?
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. :-)
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 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
"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
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
##
';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
ath,'/../') === false)
> { return $base_path.$rel_path; }
>
> elseif(strpos($rel_path,'://') > 0)
> { return $rel_path; }
>
> else { return
> collapse(dirname($base).'/'.$rel_path); }
>
> retu
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
$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. :-)
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
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
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
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
; 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
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. :-)
_
:-(( )
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
--- 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
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
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:/
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...
>
>
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
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
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
=
--- 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
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
>
> 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
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
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()
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
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
"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
= 1;
}
else
{
$resultt = 2;
}
echo $resultt;
Cheers,
Mag
=
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism
--- 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";);
> >
> >
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.
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
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
> 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
> &
--- 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:
>
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
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
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
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
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
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
60 matches
Mail list logo