Re: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Stephen Pynenburg
Thanks for the response. Here's the relevant bit: $fontcolour = imagecolorallocatefromhex($i,$tcolor); $font2colour = imagecolorallocatefromhex($i, $t2color); $bg = imagecolorallocatefromhex($i,$bcolor); if($bcolor == '#00') $bg = imagecolorallocate($i, 0, 0, 0); if($tcolor == '#

[PHP] Re: exec() Error

2008-06-24 Thread Shawn McKenzie
Wei, Alice J. wrote: Hi, I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer language to perform some operations on another remote machine. According to my client, he calls

[PHP] exec() Error

2008-06-24 Thread Wei, Alice J.
Hi, I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer language to perform some operations on another remote machine. According to my client, he calls this behind the scenes

RE: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Stephen Pynenburg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:27 PM > To: php-general@lists.php.net > Subject: [PHP] ImageTTFText leaves Black in letters > > Hi all, > I'm using imagettftext, and my script works perfectly, except that on > these

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:22 PM > To: php php > Subject: Re: [PHP] Monitor a WP website ---8<--- big snip > It's not rocket science -- but occasionally my solutions leave craters. Haha! Yes! I'm going to use this (with yo

[PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Stephen Pynenburg
Hi all, I'm using imagettftext, and my script works perfectly, except that on these TTF fonts that I'm using, in any letter with a hole in the middle (letters like a, R, O) the hole is coloured black, not transparent. Is this a PHP thing, or do I need to edit my fonts somehow? Thanks, Stephen

Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd
At 3:50 PM -0400 6/24/08, Daniel Brown wrote: On Tue, Jun 24, 2008 at 3:29 PM, tedd <[EMAIL PROTECTED]> wrote: Okay, then get_file_contents(), parse between the tags that would contain the stuff you want to monitor, hash, store that, and do what I said. Even if you did use the *file_get

[PHP] Re: Include Problem

2008-06-24 Thread Shawn McKenzie
Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include("/cms/templates/footer.php"); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No su

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:07 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem ---8<--- snip > > I think that the variables passed to will be used by that code > to > > do

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 4:55 PM To: Wei, Alice J.

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:51 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Alice, > > If you simply need to execute a remote PHP script and pass variables, > you could

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Alice, If you simply need to execute a remote PHP script and pass variables, you could do it behind-the-scenes with cURL or AJAX, and pass the variables in the url (i.e., http://www.mysite.com/script.php?param=value). cURL is capable of retrieving the page (read: the results of the executed script

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:11 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > From: Boyd, Todd M. [EMAIL PROTECTED] > Sent: Tuesd

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:53 PM To: php-general@lists.php.net; Wei, Alice J. Subject: RE: [PHP] Include Problem > > > If you are trying to include() a remote file via HTTP, the remote > > server > > will (most like

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:58 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > Ryan, > > That feed is indeed XML. > > > > Ooookay! I think i see where my confusion

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Ryan, That feed is indeed XML. Ooookay! I think i see where my confusion was coming in opening the "http://www.ballzbollywood.com/feed/"; in FF3 automatically parses it in a way... as does it in IE7... but opera is giving me the "raw" feed and it makes sense again. (Am on win vista home

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Okay, then get_file_contents(), parse between the tags that would contain the stuff you want to monitor, hash, store that, and do what I said. So far yours has been the best solution Tedd, thanks! Cheers! R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:29 PM, tedd <[EMAIL PROTECTED]> wrote: > > Okay, then get_file_contents(), parse between the tags that would contain > the stuff you want to monitor, hash, store that, and do what I said. Even if you did use the *file_get_contents()* method you mentioned (;-P), how wo

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:34 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > If it's RSS, I think it's going to be XML regardless of the language > they're using to

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
If it's RSS, I think it's going to be XML regardless of the language they're using to assemble it (Perl, PHP, ASP, etc.). I might be wrong, but I thought that's part of what made it RSS. I'm afraid to click on a site with the url "ballz.info" while I'm at work. :D Any other WP feed examples? LO

Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd
At 3:20 PM -0400 6/24/08, Daniel Brown wrote: On Tue, Jun 24, 2008 at 2:46 PM, tedd <[EMAIL PROTECTED]> wrote: Now, if you want to do this on your own, then it should be simple enough to use get_file_contents and put the file through a md5() function (or use md5_file) and store the result in

Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:21 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > I'm afraid to click on a site with the url "ballz.info" while I'm at > work. :D Any other WP feed examples? Heh. I checked it out, and it's a celebrity gossip website. In fact, in the third picture down, Paris Hilt

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:23 PM > To: Stut > Cc: Eric Butera; php php > Subject: Re: [PHP] Monitor a WP website > > >Got an example? I've never seen a WP site with RSS feeds disabled. > > Hey Stut, > > Actually, dont ha

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-24 Thread Dotan Cohen
2008/6/24 Per Jessen <[EMAIL PROTECTED]>: >> What is the English/French name of the French non-Frenchmen reserve >> army? They are very well respected. > > The French Foreign Legion?? I wouldn't call that "a reserve army". > Yes, that's it, thanks. Reserve might not have been the correct term, bu

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
>Got an example? I've never seen a WP site with RSS feeds disabled. Hey Stut, Actually, dont have an example.. :o) but i have seen this question of how to disable wordpress rss frequently come up on many forums ( a quick google search with "wordpress disable rss" gives up quite a few result

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:18 PM > To: Boyd, Todd M.; tedd > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > > > So, you want something to tell you if something new has been added to > > a r

Re: [PHP] Monitor a WP website

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 2:46 PM, tedd <[EMAIL PROTECTED]> wrote: > > Now, if you want to do this on your own, then it should be simple enough to > use get_file_contents and put the file through a md5() function (or use > md5_file) and store the result in a dB. > > Then cron a check every so often t

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
> So, you want something to tell you if something new has been added to > a remote site, right? > > There used to be free services that did that -- I used to monitor > competitors's web sites using such service. But, I think they > eventually stopped the free service. Here's one site that charge

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:48 PM > To: Wei, Alice J. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > -Original Message- > > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > > Sent:

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:47 PM > To: php php > Subject: Re: [PHP] Monitor a WP website > > At 10:09 AM -0700 6/24/08, Ryan S wrote: > >Hey, > >Is there a way to check if a new post has been submitted on your > >favourite w

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:39 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Hi, > > Thanks for the clarifcations. > I have two more questions regarding this iss

Re: [PHP] Monitor a WP website

2008-06-24 Thread tedd
At 10:09 AM -0700 6/24/08, Ryan S wrote: Hey, Is there a way to check if a new post has been submitted on your favourite wordpress site? So, you want something to tell you if something new has been added to a remote site, right? There used to be free services that did that -- I used to mon

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi, Thanks for the clarifcations. I have two more questions regarding this issue: 1. If I try to do this from Windows platform to another Window platform work? 2. With this type of scenario, if I cannot use include, what type of options may I have? Anything is appreciated. Alice ===

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:04 PM > To: Daniel Brown > Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > From: Daniel Brown [E

Re: [PHP] Monitor a WP website

2008-06-24 Thread Nitsan Bin-Nun
RSS parsing is like anything else.. I believe you can create a database which will contain URL && customized regex to scrape the information from the website. I dont have other ideas, thats what just poped in my mind. HTH, Nitsan On 24/06/2008, Ryan S <[EMAIL PROTECTED]> wrote: > > Hey Eric, Stut

Re: [PHP] Monitor a WP website

2008-06-24 Thread Stut
On 24 Jun 2008, at 19:06, Ryan S wrote: Hey Eric, Stut, Maybe you should start by trying to utilize the RSS feed. Went to that option at first too... but have a quick look around, there are many sites that for some reason dont have this feature turned "on", and for them... the only optio

Re: [PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey Eric, Stut, >Maybe you should start by trying to utilize the RSS feed. Went to that option at first too... but have a quick look around, there are many sites that for some reason dont have this feature turned "on", and for them... the only option i think is to "read" the page... unless I a

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:59 PM To: Wei, Alice J. Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > Hi, > > This is the error I got: > > Warning: include() [function.include]: URL file-access is disabled in the > server configuration in C:\Inetpub\wwwroot\read.php on line 29 > Warning: include(http://www.mysite.com/calc

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi, This is the error I got: Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\wwwroot\read.php on line 29 Warning: include(http://www.mysite.com/calculate.php) [function.include]: failed to open stream: no suitable wrapper could be f

Re: [PHP] Include Problem

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 1:32 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Make sure you have these enabled > > allow_url_fopen = On > allow_url_include = On In addition to what Jay and Jim already correctly suggested, you may also want to try this at the top of your files to see if there are a

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jim Lucas [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:32 PM To: Wei, Alice J. Cc: Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem Wei, Alice J. wrote: > > From: Jay Blanchard [E

Re: [PHP] Monitor a WP website

2008-06-24 Thread Stut
On 24 Jun 2008, at 18:09, Ryan S wrote: Hey, Is there a way to check if a new post has been submitted on your favourite wordpress site? Heres what i am trying to do: do a fopen http://ezee.se/articles-blog/ via CRON every x minutes if a new post has been submitted, i mail someone... but am

Re: [PHP] Monitor a WP website

2008-06-24 Thread Eric Butera
On Tue, Jun 24, 2008 at 1:09 PM, Ryan S <[EMAIL PROTECTED]> wrote: > Hey, > Is there a way to check if a new post has been submitted on your favourite > wordpress site? > > Heres what i am trying to do: > do a fopen http://ezee.se/articles-blog/ via CRON every x minutes > if a new post has been s

Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas
Wei, Alice J. wrote: From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$line_num} : "

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$line_num} : " . htmlspecialchars($lin

RE: [PHP] Include Problem

2008-06-24 Thread Jay Blanchard
[snip] foreach ($lines2 as $line_num => $line2) { echo "Line #{$line_num} : " . htmlspecialchars($line2) . ""; } include ('http://www.mysite.com/calculate.php'); My problem is that when I use a blank file that only has http://www.mysite.com/calculate.php'; ?> The code works and displays

[PHP] Monitor a WP website

2008-06-24 Thread Ryan S
Hey, Is there a way to check if a new post has been submitted on your favourite wordpress site? Heres what i am trying to do: do a fopen http://ezee.se/articles-blog/ via CRON every x minutes if a new post has been submitted, i mail someone... but am not just looking to do this for this one sit

[PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi, Guys: Here is a strange scenario that I am attempting to do. I am trying to extract some information from an external source on a different server, and then include some of the external calculations as I am running scripts on a local machine. Below is my script snippet: // Get

[PHP] O-T What are we going to do about the O-T thread that asks the question: What we are going to do about those OT's?

2008-06-24 Thread Ryan S
Sorry, had to ask :o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another canvas example

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 11:07 AM, Ray Hauge <[EMAIL PROTECTED]> wrote: > > Strange, I've tested it on Kubuntu Hardy FF 3, SuSE SLED 10.1 & FF2, > Windows FF2&3 Safari Opera 9.5 IE6&7, Mac OSX Safari. I'd be interested in > what error you got, just email me off-list if you like. Sorry, Ray, I

Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge
Daniel Brown wrote: On Tue, Jun 24, 2008 at 3:53 AM, Ray Hauge <[EMAIL PROTECTED]> wrote: http://www.primateapplications.com/trackattack/ Ray, This displays perfectly fine, but does not function beyond looking pretty on Firefox 3 (Linux/KDE). I am, however, probably going to play tha

RE: [PHP] Re: Another canvas example

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ray Hauge [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 10:02 AM > To: Per Jessen > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: Another canvas example ---8<--- snip > My son likes trains, and I was using this as an excuse to learn > JavaS

Re: [PHP] Re: Another canvas example

2008-06-24 Thread Ray Hauge
Per Jessen wrote: Colin Guthrie wrote: http://www.primateapplications.com/trackattack/ Since you're working with the Canvas, you can be reasonably sure that the browser would support doing this. Dude, that's cool it's killed my productivity, but it's cool :D The Playmobil website has a

Re: [PHP] Another canvas example

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:53 AM, Ray Hauge <[EMAIL PROTECTED]> wrote: > > http://www.primateapplications.com/trackattack/ Ray, This displays perfectly fine, but does not function beyond looking pretty on Firefox 3 (Linux/KDE). I am, however, probably going to play that game for a bit on

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-24 Thread Per Jessen
Dotan Cohen wrote: > > What is the English/French name of the French non-Frenchmen reserve > army? They are very well respected. The French Foreign Legion?? I wouldn't call that "a reserve army". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] PHP and Apache

2008-06-24 Thread David Robley
R B wrote: > The people that will install this system, don´t have programming > knowledge. They have a website, buy don´t have knowledge of > configurations. > > If i add all the lines, it don´t works, unless the last line is the > correct for that particular server. > > > > >> >> >> Why not

Re: [PHP] Re: Another canvas example

2008-06-24 Thread Per Jessen
Colin Guthrie wrote: >> >> http://www.primateapplications.com/trackattack/ >> >> Since you're working with the Canvas, you can be reasonably sure that >> the browser would support doing this. > > Dude, that's cool it's killed my productivity, but it's cool :D The Playmobil website has a ve

[PHP] Re: Another canvas example

2008-06-24 Thread Colin Guthrie
Ray Hauge wrote: Richard Heyes wrote: Pretty sweet! My only problem with it is that I had to use the keyboard to get to the "Attach" button, since I couldn't click on it with it being behind the pie chart in the page's Z-order. Yes, no way around (I think). Even with the buttons z-index set to

Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge
Richard Heyes wrote: Pretty sweet! My only problem with it is that I had to use the keyboard to get to the "Attach" button, since I couldn't click on it with it being behind the pie chart in the page's Z-order. Yes, no way around (I think). Even with the buttons z-index set to 99 it still show

Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge
Richard Heyes wrote: Pretty sweet! My only problem with it is that I had to use the keyboard to get to the "Attach" button, since I couldn't click on it with it being behind the pie chart in the page's Z-order. Yes, no way around (I think). Even with the buttons z-index set to 99 it still show

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-24 Thread Sancar Saran
> I hate to say this, but I am expendable. If that's what it takes to > keep my country and my family safe, myself and many other men would > quickly rise to take the fire. /salute -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php