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
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
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
'] 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
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
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
,
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
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
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
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
))
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
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
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
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
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
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
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
,
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
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
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
###
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
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
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
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
);
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
/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
://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
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
...
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
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
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
' 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
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.
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
--- 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
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
...:-)
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
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
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
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
--- 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
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
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
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
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
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
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
,
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
--- 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
{
$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
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
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
--- 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
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
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
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
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
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
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
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
60 matches
Mail list logo