Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 25 April 2010 22:14, Michelle Konzack 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_" . > $_SERVER['REMOTE_ADDR'] . "_" . $_COOK

[PHP] Is the case of

2010-04-26 Thread Richard Quadling
Hi. I've recently come across some third party code which uses ... http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling --

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 the

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...@btint

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack : > 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'] . "_" . $_COOKIE['VSERVER_AUTHUSER

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

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

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 m

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
On 26 April 2010 12:52, 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 datab

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

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

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Peter Lind
On 26 April 2010 13:23, Ashley Sheridan wrote: > > On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: > > On 26 April 2010 12:52, 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

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

2010-04-26 Thread Richard Quadling
On 25 April 2010 14:16, tedd 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. -- - Richard Quadling "Stand

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 huma

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:23 AM, Ashley Sheridan wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, 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 ni

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 > wrote: > > > On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: > > > >> On 26 April 2010 12:52, Ashley Sheridan > >> wrote: > >>> I've been thinking about this problem for a little while

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:54 AM, Ashley Sheridan wrote: On Mon, 2010-04-26 at 07:58 -0400, Phpster wrote: On Apr 26, 2010, at 7:23 AM, Ashley Sheridan wrote: > On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: > >> On 26 April 2010 12:52, Ashley Sheridan >> wrote: >>> I've been thinki

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 Se

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 wrote: >> From: Richard Quadling >>> On 22 April 2010 14:42, Bob McConnell 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 got it, nor

Re: [PHP] Is the case of

2010-04-26 Thread Daniel Brown
On Mon, Apr 26, 2010 at 04:51, Richard Quadling wrote: > Hi. > > I've recently come across some third party code which uses ... > > > 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 > in

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

2010-04-26 Thread Richard Quadling
On 26 April 2010 14:43, Bob McConnell wrote: > From: Richard Quadling >> On 23 April 2010 02:34, Bob McConnell wrote: >>> From: Richard Quadling On 22 April 2010 14:42, Bob McConnell wrote: > I downloaded the MS-Windows cli from The PHP Group a while ago. It > claims to be version 5

Re: [PHP] Is the case of

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

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

[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 var_dump(

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

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

2010-04-26 Thread Kevin Kinsey
Richard Quadling wrote: On 25 April 2010 14:16, tedd 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 I'm also a Playe

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

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

2010-04-26 Thread Dan Joseph
On Sun, Apr 25, 2010 at 9:16 AM, tedd 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 Hosting Plans sta

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 wrote: > On 25 April 2010 14:16, tedd 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

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 > wrote: > > > On 25 April 2010 14:16, tedd 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 o

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 wrote: > > > 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 www.canishosting.com - Unlimit

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

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 > wrote: > > > > > > > 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 wrote: > 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 they get Starcraft goi

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

2010-04-26 Thread Peter Lind
On 26 April 2010 18:58, Michelle Konzack wrote: > 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! Consider a trim,

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 Maili

[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

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

[PHP] Admin Panel Ebook

2010-04-26 Thread Brandon Rampersad
Hello Guys, I've bought a couple ebooks, especially from orielly, on PHP development and they are mostly dealing with front end stuff about user interface and PHP development. Could anyone refer me an ebook on back end programming ie Admin Panel development in PHP especially for social websites he

[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: Send E-mail to: General Information Founder and President: Professor

Re: [PHP] Contact form....

2010-04-26 Thread Adam Richardson
On Mon, Apr 26, 2010 at 3:16 PM, Watson Blair wrote: > 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: > > > > >Send E-mail to: > >G

Re: [PHP] Contact form....

2010-04-26 Thread Dan Joseph
Looks like you might have errors turned off. I see: $subject =$_POST"subject"; Which should be: $subject =$_POST["subject"]; $_POST is an array, and that's how you access those elements. check to see if errors are on, if not, you'll see errors in the log files. -- -Dan Joseph www.canishos

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

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 Hawkes-L

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

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

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

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