php-general Digest 21 Sep 2009 10:08:57 -0000 Issue 6350

2009-09-21 Thread php-general-digest-help
php-general Digest 21 Sep 2009 10:08:57 - Issue 6350 Topics (messages 298206 through 298221): Re: Creating file name with $variable 298206 by: Ralph Deffke 298208 by: Tommy Pham 298216 by: Lars Torben Wilson more info. help? 298207 by: johny why Is an

[PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
Hi All, I am creating a social networking website. I want that every user should have there own profile page with a static URL like- http://www.abcnetwork/user/username Where username will be dynamic userid or something else. This is something very similar to

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Tommy Pham
- Original Message From: Gaurav Kumar kumargauravjuke...@gmail.com To: php-general@lists.php.net Sent: Monday, September 21, 2009 12:54:30 AM Subject: [PHP] Best Practice to Create Dynamic URL's- With Username Hi All, I am creating a social networking website. I want that every

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 13:24 +0530, Gaurav Kumar wrote: Hi All, I am creating a social networking website. I want that every user should have there own profile page with a static URL like- http://www.abcnetwork/user/username Where username will be dynamic userid or something else.

[PHP] Re: Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ralph Deffke
be aware if you do not have full control of your server setup, this type of parameter handling is not possible on most shared hostings. however url encoded it is never a problem. so be clear where yout page will be hosted. ralph_def...@yahoo.de Gaurav Kumar kumargauravjuke...@gmail.com wrote in

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Richard Heyes
Hi, ... As has been suggested you could use mod_rewrite, but you don't have to if your needs are simple (or maybe you don't have it). You could also use the ForceType directive. Eg on my website the URLs are like this: http://www.phpguru.org/article/20-years-of-php Where article is actually a

Re: [PHP] Re: Creating file name with $variable

2009-09-21 Thread Lars Torben Wilson
On Mon, 21 Sep 2009 00:43:24 +0200 Ralph Deffke ralph_def...@yahoo.de wrote: Hi Haig, it would be better if u tell us what purpose u want to solf with this approuch. Its hard to understand for a prov why u want to create a filename .php .php files are scrips containing functions or

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
A Big Thanks to all of you. Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer, but I wonder why you choose /user/username rather than just /username a la twitter. I will be using many other aspects of my users something like /projects/username/; /gallery/username/. OK

RE: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Andrea Giammarchi
Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer, but I wonder why you choose /user/username rather than just /username a la twitter. I will be using many other aspects of my users something like /projects/username/; /gallery/username/. well, it does not matter

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
I totally agree with this architecture. You are correct, I am just in the starting phase of the project and in fact still need to define the architecture in detail. Now the question I asked in my last reply is still to be answered? Gaurav Kumar OSWebstudio.Com On Mon, Sep 21, 2009 at 3:06 PM,

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote: I totally agree with this architecture. You are correct, I am just in the starting phase of the project and in fact still need to define the architecture in detail. Now the question I asked in my last reply is still to be answered?

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Gaurav Kumar
Thanks Ashley and all the folks out there... On Mon, Sep 21, 2009 at 3:25 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote: I totally agree with this architecture. You are correct, I am just in the starting phase of the project and

Re: [PHP] Re: Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Tommy Pham
- Original Message From: Ralph Deffke ralph_def...@yahoo.de To: php-general@lists.php.net Sent: Monday, September 21, 2009 1:31:05 AM Subject: [PHP] Re: Best Practice to Create Dynamic URL's- With Username be aware if you do not have full control of your server setup, this type of

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Tommy Pham
- Original Message From: Ashley Sheridan a...@ashleysheridan.co.uk To: Gaurav Kumar kumargauravjuke...@gmail.com Cc: Andrea Giammarchi an_...@hotmail.com; php-general@lists.php.net Sent: Monday, September 21, 2009 2:55:20 AM Subject: Re: [PHP] Best Practice to Create Dynamic URL's-

Re: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 03:42 -0700, Tommy Pham wrote: - Original Message From: Ashley Sheridan a...@ashleysheridan.co.uk To: Gaurav Kumar kumargauravjuke...@gmail.com Cc: Andrea Giammarchi an_...@hotmail.com; php-general@lists.php.net Sent: Monday, September 21, 2009 2:55:20 AM

[PHP] Re: Random Flash Movies

2009-09-21 Thread Gary
ESET Smart Security, version of virus signature database 4442 (20090921) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 4442 (20090921) __ The message

Re: [PHP] Touch screen programming help

2009-09-21 Thread Bastien Koert
On Mon, Sep 21, 2009 at 9:29 AM, Robert Cummings rob...@interjinn.com wrote: Tommy Pham wrote: Original Message From: Manish - dz - PHP man...@dotzoo.net To: php-general@lists.php.net Sent: Monday, September 21, 2009 5:32:59 AM Subject: [PHP] Touch screen programming help Hi  

Re: [PHP] Touch screen programming help

2009-09-21 Thread Tommy Pham
- Original Message From: Robert Cummings rob...@interjinn.com To: Tommy Pham tommy...@yahoo.com Cc: Manish - dz - PHP man...@dotzoo.net; php-general@lists.php.net Sent: Monday, September 21, 2009 6:29:01 AM Subject: Re: [PHP] Touch screen programming help Tommy Pham wrote:

[PHP] Re: Touch screen programming help

2009-09-21 Thread Ralph Deffke
well, I would say a touch screen usualy is just another 'pointing device' like the mouse is. it depends on the operating system and the driver setup for it. then u simply can use any browser and just adjust the pointing receiving elements like buttons and links a bit bigger and with images rather

[PHP] Usage of strlen(tuf8_decode()) and /u regex modifier

2009-09-21 Thread GoForThisWorld
Hello, As indicated below, the strlen(tuf8_decode()) and the /u regex modifier do not work as per my understanding. 1) What is my misunderstanding? ?php $the_string = '#1052;#1072;#1088;#1080;#1085;#1072; #1054;#1088;#1083;#1086;#1074;#1072;'; echo

RE: [PHP] Usage of strlen(tuf8_decode()) and /u regex modifier

2009-09-21 Thread Andrea Giammarchi
$the_string = '#1052;#1072;#1088;#1080;#1085;#1072; #1054;#1088;#1083;#1086;#1074;#1072;'; did you actually wrote this or i tis the PHP ml that converted utf-8 chars? I can read only an ASCII string with length 85 ... please tell me you are not confusing HTML entities with UTF-8

[PHP] Extract links from strings

2009-09-21 Thread Jônatas Zechim
Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How can I extract the URL from these strings? They can be [http:// + url] or

Re: [PHP] Extract links from strings

2009-09-21 Thread Paul M Foster
On Mon, Sep 21, 2009 at 12:52:12PM -0300, Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How

Re: [PHP] Extract links from strings

2009-09-21 Thread tedd
At 12:52 PM -0300 9/21/09, Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How can I extract the URL

Re: [PHP] Extract links from strings

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 11:06 -0700, Mattias Thorslund wrote: Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor

[PHP] wrong time stamp in log filewrong time stamp in log file

2009-09-21 Thread Struzik Wojciech
I have updated a php to version 5.2.11. the timestamp in php log is incorrect. the time differs from local time with 2 hours. In changelog I can find the following information: Updated timezone database to version 2009.13 (2009m) (Derick) Is it related with my problem ??? When I run the following

Re: [PHP] Extract links from strings

2009-09-21 Thread Mattias Thorslund
Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How can I extract the URL from these strings? They can

RE: [PHP] wrong time stamp in log filewrong time stamp in log file

2009-09-21 Thread Andrea Giammarchi
I have updated a php to version 5.2.11. you should update the keyboard as well, it fires CTRL+V twice (subject, and I am joking ..) When I run the following script: ?php print date('d M Y, H:i'); ? It's returns a correct time. correct accordingly with your local time zone, 'cause I am

[PHP] webpage link validation

2009-09-21 Thread Al
What's the simplest way to test if a link is valid? I've got a script that throughly checks the dns, etc. But, I'd also like to check to see if the user has inputted a valid link to a webpage. File_exists() and etc. seem to have a lot of caveats. E.g., foo.com/bar/file.txt Most things I've

Re: [PHP] webpage link validation

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 14:42 -0400, Al wrote: What's the simplest way to test if a link is valid? I've got a script that throughly checks the dns, etc. But, I'd also like to check to see if the user has inputted a valid link to a webpage. File_exists() and etc. seem to have a lot of

RE: [PHP] webpage link validation

2009-09-21 Thread Andrea Giammarchi
Several ways that I can think of: * use the file_get_contents() which like you said, could be overkill * shell out to wget to retrieve just the headers for the path. You'd be looking for a 200 return code, which indicates the URI exists. *

RES: [PHP] Extract links from strings

2009-09-21 Thread Jônatas Zechim
I don't think so, but I've found this (from PT-BR LIST): $string = 'Lorem ipsum dolor http://site.com sit amet lorem www.google.com '; preg_match_all('!(?:http://|www)[^ ]*!',$string,$links); print_r($links); Zechim -Mensagem original- De: Mattias Thorslund

Re: [PHP] wrong time stamp in log filewrong time stamp in log file

2009-09-21 Thread Tommy Pham
- Original Message From: Andrea Giammarchi an_...@hotmail.com To: bm9ib...@gmail.com; php-general@lists.php.net Sent: Monday, September 21, 2009 11:41:01 AM Subject: RE: [PHP] wrong time stamp in log filewrong time stamp in log file I have updated a php to version 5.2.11. you

Re: [PHP] Extract links from strings

2009-09-21 Thread Jim Lucas
Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How can I extract the URL from these strings?

Re: [PHP] Extract links from strings

2009-09-21 Thread Jim Lucas
Jim Lucas wrote: Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net sit amet'; How can I extract the URL from

[PHP] Re: Validation XHTML code and repairing broken one

2009-09-21 Thread Manuel Lemos
Hello, on 09/17/2009 06:33 AM Dušan Novaković said the following: I have few questions about validation XHTML and repairing if it's broken. The problem is that I have some, for example HTML code (simple web page) and want to load that page to DOMDocument and than make something of it. That

[PHP] using a USB device (flash) in the Virtualbox

2009-09-21 Thread chamba kasonde
Hi! I am a new user of this feature and tool and would like to transfer data and info to and from Windows Xp in the Virtualbox running on a Linux Ubuntu platform. My first version of Virtualbox was 2._ _ _ which said it did not support that feature. Therefore, I upgraded to 3._ _ _ which