php-general Digest 27 Apr 2010 04:54:58 -0000 Issue 6714

2010-04-26 Thread php-general-digest-help
php-general Digest 27 Apr 2010 04:54:58 - Issue 6714 Topics (messages 304619 through 304638): Re: What's your game? (X-PHP) 304619 by: Dan Joseph 304620 by: Ashley Sheridan 304621 by: Dan Joseph 304623 by: Ashley Sheridan 304624 by: Dan Joseph

Re: [PHP] FPDF passing values into header and footer?

2010-04-26 Thread Angus Mann
- Original Message - From: Angus Mann angusm...@pobox.com To: php-general php-general@lists.php.net Sent: Monday, April 26, 2010 2:46 PM Subject: [PHP] FPDF passing values into header and footer? Hi all. Whilst this question relates to fpdf (www.fpdf.org) I think it really is a PHP

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 25 April 2010 22:14, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ .

[PHP] Is the case of ?php important in any way?

2010-04-26 Thread Richard Quadling
Hi. I've recently come across some third party code which uses ... ?PHP as the PHP tag. This is the first time I've seen PHP in upper case for the tag. The code works in V5, so, from this, I can assume the tag is read case insensitive. Are there any issues with this when moving forward?

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Sunday, April 25, 2010 6:18 AM To: php-general@lists.php.net Subject: [PHP] CURL cannot connect to URL - IP address - after successful connection I can return a target page - once, but then on

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
-Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Monday, April 26, 2010 1:59 AM To: 'php-general@lists.php.net' Subject: RE: [PHP] CURL cannot connect to URL - IP address - after successful connection -Original Message- From: ioan...@btinternet.com

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack linux4miche...@tamay-dogan.net: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ . $_SERVER['REMOTE_ADDR'] . _ .

[PHP] getting content exceprts from the database

2010-04-26 Thread Ashley Sheridan
I've been thinking about this problem for a little while, and the thing is, I can think of ways of doing it, but they're not very nice, and I don't think they're going to be fast. Basically, I have a load of HTML formatted content in a database that get displayed onto the site. It's part of a

[PHP] LDAP import a csv file from php

2010-04-26 Thread Manolis Vlachakis
Hallo there everyone.. first thing first i would like to thank everyone for the help that this mailing list has provided me throughout my project.. i have found many answers and got me out of black point many times!!! now i am on my last step on my project and i would like to see if there are any

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
Just to eliminate all possibilities, are you to open the same URL/URI in the web pages repeatedly? Also, what happens when you fake the user agent in the web browser? The target site may have some anti bot mechanism in place to reduce stress/load on the server(s). Regards, Tommy One

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 12:05 +0900, ioan...@btinternet.com wrote: Just to eliminate all possibilities, are you to open the same URL/URI in the web pages repeatedly? Also, what happens when you fake the user agent in the web browser? The target site may have some anti bot mechanism in

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can think of ways of doing it, but they're not very nice, and I don't think they're going to be fast. Basically, I have a load of HTML

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Per Jessen
Ashley Sheridan wrote: Here's the rub though. As the content is in HTML form, I can't just grab the first 100 characters and display them as that could leave an open tag without a closing one, potentially breaking the page. I could use strip_tags on the 100-character excerpt, but what if the

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can think of ways of doing it, but they're not very nice, and I don't think they're

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
On 26 April 2010 13:23, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can think of

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Richard Quadling
On 25 April 2010 14:16, tedd t...@sperling.com wrote: What's your game? My wife and I play enjoy Baulder's Gate on the PS2 and I like the Lego (Star Wars, Batman, etc.) games on the PSP. The kids like to play Ice Age and Cars but crash a lot and end up shouting at each other. -- -

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread ioan...@btinternet.com
On 2010/04/26 20:01, Ashley Sheridan wrote: How frequently do you request the page? Maybe playing about with that would resolve it? Is it possible to randomise the request frequency a bit? Thanks, Ash http://www.ashleysheridan.co.uk Just manually for testing, and it would be used for

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 07:58 -0400, Phpster wrote: On Apr 26, 2010, at 7:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:54 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 07:58 -0400, Phpster wrote: On Apr 26, 2010, at 7:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52,

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread tedd
At 11:52 AM +0100 4/26/10, Ashley Sheridan wrote: -snip- SEO concerns Does anyone have any ideas about what I could do, or do you think I'm seeing problems where there are none? Thanks, Ash Ash: Not only do you have to consider SEO for content, but what about content for an internal Site

RE: [PHP] Updating cli executable on MS-Windows

2010-04-26 Thread Bob McConnell
From: Richard Quadling On 23 April 2010 02:34, Bob McConnell r...@cbord.com wrote: From: Richard Quadling On 22 April 2010 14:42, Bob McConnell r...@cbord.com wrote: I downloaded the MS-Windows cli from The PHP Group a while ago. It claims to be version 5.2.10. But now I can't find where I

Re: [PHP] Is the case of ?php important in any way?

2010-04-26 Thread Daniel Brown
On Mon, Apr 26, 2010 at 04:51, Richard Quadling rquadl...@googlemail.com wrote: Hi. I've recently come across some third party code which uses ... ?PHP as the PHP tag. This is the first time I've seen PHP in upper case for the tag. The code works in V5, so, from this, I can assume the

Re: [PHP] Updating cli executable on MS-Windows

2010-04-26 Thread Richard Quadling
On 26 April 2010 14:43, Bob McConnell r...@cbord.com wrote: From: Richard Quadling On 23 April 2010 02:34, Bob McConnell r...@cbord.com wrote: From: Richard Quadling On 22 April 2010 14:42, Bob McConnell r...@cbord.com wrote: I downloaded the MS-Windows cli from The PHP Group a while ago. It

Re: [PHP] Is the case of ?php important in any way?

2010-04-26 Thread Richard Quadling
On 26 April 2010 15:08, Daniel Brown danbr...@php.net wrote: On Mon, Apr 26, 2010 at 04:51, Richard Quadling rquadl...@googlemail.com wrote: Hi. I've recently come across some third party code which uses ... ?PHP as the PHP tag. This is the first time I've seen PHP in upper case for the

[PHP] php quiz script/tutorial

2010-04-26 Thread Paul Jinks
I'm considering my options for making quizzes mostly multiple choice type of thing, but also 'filling in the gaps'. This is in support of educational materials I'm working on. So far I've looked at Flash and javascript but have concerns about accessibility for both of these. Does anyone have any

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Jan G.B., Am 2010-04-26 11:52:02, hacktest Du folgendes herunter: I would recommend not to let any user input to your shell. This piece of code is very insecure as any client may manipulate the shell command at will. It is ony a simplified example... The original shell_exec() is

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Pete Ford
On 26/04/10 16:56, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using

Re: [PHP] Re: Weird problem with is_file()

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 17:56 +0200, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Kevin Kinsey
Richard Quadling wrote: On 25 April 2010 14:16, tedd t...@sperling.com wrote: What's your game? Ooh, do we *have* to tell? I've got interest in the AOE stuff, but haven't played in a while. Haven't purchased AOE3. If I'm *really* bored, I've got freecell.exe running on every O.S. I run

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Sunday, April 25, 2010 10:44 PM To: a...@ashleysheridan.co.uk; tommy...@gmail.com Tommy Pham Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful connection The answer I

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Sun, Apr 25, 2010 at 9:16 AM, tedd t...@sperling.com wrote: My gamer tag is special tedd Hey Tedd, I'm 'jakmo' on Live. I'll have to give you an add next time I jump on. I've been playing Dragon Age and Lost Odyssey. Both are great. -- -Dan Joseph www.canishosting.com - Unlimited

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Mon, Apr 26, 2010 at 7:48 AM, Richard Quadling rquadl...@googlemail.comwrote: On 25 April 2010 14:16, tedd t...@sperling.com wrote: What's your game? My wife and I play enjoy Baulder's Gate on the PS2 and I like the Lego (Star Wars, Batman, etc.) games on the PSP. The kids like to play

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 12:41 -0400, Dan Joseph wrote: On Mon, Apr 26, 2010 at 7:48 AM, Richard Quadling rquadl...@googlemail.comwrote: On 25 April 2010 14:16, tedd t...@sperling.com wrote: What's your game? My wife and I play enjoy Baulder's Gate on the PS2 and I like the Lego (Star

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Mon, Apr 26, 2010 at 12:36 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Diablo 3 is out soon... Thanks, Ash http://www.ashleysheridan.co.uk oh cool, I did not realize.. have they set a release date yet? I didn't see one on gamestop.com... -- -Dan Joseph

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Pete, Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: Is it possible that the space is a new-line (or a carriage-return) ? grmpf! -- That it was... preg_replace('/\s+$/','',$FILE); Works now! Thanks, Greetings and nice Day/Evening Michelle Konzack

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 12:48 -0400, Dan Joseph wrote: On Mon, Apr 26, 2010 at 12:36 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Diablo 3 is out soon... Thanks, Ash http://www.ashleysheridan.co.uk oh cool, I did not realize.. have they set a release date yet? I

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Mon, Apr 26, 2010 at 12:52 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Not yet, but there's trailers on YouTube and it looks good so far. A few more classes, different mobs, it looks good! The screenshots look great as well. I am going to check YouTube for trailers. Maybe after

RE: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Bob McConnell
The last game I played was catch. My oldest grandson and I borrowed his cousin's Harlem Globetrotters miniature basketball. I taught him how to use spin to deflect the ball path when it bounced. I actually don't recall the last time I played an electronic game. Bob McConnell -- PHP General

[PHP] Re: getting content exceprts from the database

2010-04-26 Thread Nathan Rixham
Ashley Sheridan wrote: I've been thinking about this problem for a little while, and the thing is, I can think of ways of doing it, but they're not very nice, and I don't think they're going to be fast. Basically, I have a load of HTML formatted content in a database that get displayed onto

RE: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Williams, Dewey
The only online games I play are Guild Wars and - now - Dungeons and Dragons Online (FREE!). I haven't played vgaplanets in ages - too few servers to get a decent game. Not certain I can even install my original 3.5 inch disk anymore! Dewey Williams -Original Message- From: tedd

[PHP] Contact form....

2010-04-26 Thread Watson Blair
Hey guys, so ive coded a sucessfull contact form before, but for some reason this bit of code is giving me the run-arroundl so my HTML end is: form action=send.php method=post enctype=multipart/form-data table border=0 cellspacing=2 cellpadding=0 trtd

Re: [PHP] Contact form....

2010-04-26 Thread Adam Richardson
On Mon, Apr 26, 2010 at 3:16 PM, Watson Blair bestudios...@gmail.comwrote: Hey guys, so ive coded a sucessfull contact form before, but for some reason this bit of code is giving me the run-arroundl so my HTML end is: form action=send.php method=post enctype=multipart/form-data

Re: [PHP] Contact form....

2010-04-26 Thread Watson Blair
I knew i was missing something although it still doesn't work... i'm still getting : ; $send_contact=mail($to,$subject,$message, $header); if($send_contact){ echo Thank you for Contacting Us!; } else { echo An error occured while sending your message, review your information and please try

Re: [PHP] Contact form....

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 15:46 -0400, Watson Blair wrote: I knew i was missing something although it still doesn't work... i'm still getting : ; $send_contact=mail($to,$subject,$message, $header); if($send_contact){ echo Thank you for Contacting Us!; } else { echo An error occured while

Re: [PHP] Contact form....

2010-04-26 Thread Watson Blair
ya, i'm working on a walk around now, i just wanted to get the function up and running in it's most basic before i started supping it up, as it were. i was thinking about using a switch and assigning each of my radio buttons a value from 1 to 3... On Mon, Apr 26, 2010 at 4:35 PM, Benjamin

Re: [PHP] Contact form....

2010-04-26 Thread Brandon Rampersad
Ashley thank you for catching that, i caught it but then i saw your reply further down. On Mon, Apr 26, 2010 at 5:11 PM, Watson Blair bestudios...@gmail.comwrote: ya, i'm working on a walk around now, i just wanted to get the function up and running in it's most basic before i started supping

RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-26 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Monday, April 26, 2010 7:10 AM To: Tommy Pham Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful connection On 2010/04/27 1:13, Tommy Pham wrote: -Original

[PHP] “五步连贯”股权激励法

2010-04-26 Thread aopi
下午 12:54:38 《 “五步连贯”股权激励法--留驻核心人才 》 时 间:2010年5月29-30日(深 圳)   时 间:2010年6月04-05日(上 海) (股权激励第一人薛中行博士主讲)为企业建立最完善的股权激励方案 ◆课程对象:企业总裁、董事长、总经理、决策者、人力资源总监、财务总监及薪