[PHP] Best way to allow users to post youtube video links ?

2007-12-20 Thread Don Don
I want to allow people to be able to post links to videos on youtube. I've implemented it in a certain way by allowing them to copy the embed tag into a textarea and then submit the form. I pick up the form data, validate and display on the site. Is there any better way to do this or php

Re: [PHP] Is there any Open Source Mailing List Manager that works good

2007-12-20 Thread Don Don
phplist. its awesome, opensource and will support all your needs. srihari naidu [EMAIL PROTECTED] wrote: Hi, I am searching for a good open source php mailing list manager for some days. can any one suggest me one please. Thanks in advance. Regards, Sri.

[PHP] Assistance needed with mysql query to achieve this php5

2008-01-24 Thread Don Don
Hi all I have a table below CREATE TABLE `friends` ( `id` int(11) NOT NULL auto_increment, `member_id` int(11) NOT NULL, `member` varchar(32) NOT NULL, `friendwith` varchar(32) NOT NULL, `friendWithId` int(11) NOT NULL, `status` varchar(32) NOT NULL, PRIMARY KEY (`id`) )

Re: [PHP] Assistance needed with mysql query to achieve this php5

2008-01-25 Thread Don Don
you may need to swap member/friendwith as well... But why you are storing everybody's NAME twice is beyond me... Or maybe I'm guessing wrongly what the fields are... On Thu, January 24, 2008 10:49 am, Don Don wrote: Hi all I have a table below CREATE TABLE `friends` ( `id` int(11) NOT NULL

[PHP] Getting nuequiz pro wo to work in php5

2008-01-28 Thread Don Don
http://nuedream.com/nuequizpro/ I cant get the above product to work in php5. The product works in php4 but has problems with a $this variable in the database class with php5. Has anyone used the above product in php5 and found a way arround it ? Cheers Don

[PHP] Displaying HTML characters in real format

2007-07-12 Thread Don Don
Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. quot; but will like it to be displayed as htmlspecialchars or htmlentities or page character set ? Cheers - Take

[PHP] Reading sub-elements using XML Reader

2007-07-18 Thread Don Don
I am reading the following xml data in a very large file using XML reader, the xml structure looks like the xample given below item enginehead/engine braketail/brake tireshead/tires chromespart head 1/chromes chromesPart head 2/chromes seatstail/seats /item item

[PHP] Cut text from a string

2007-08-02 Thread Don Don
hi all, am trying to cut some texts from a serries of string values e.g. this is how we do (50 cents feat. the game) give it to me (nelly feat timerland) let me hold you (bow wow feat omarion) i want to cut off the text between the comas and i've seen some examples ? $string = Hello world,

Re: [PHP] Cut text from a string

2007-08-02 Thread Don Don
I meant i want to get rid of the braces. e.g. get the text up to the start of the first brace and ignore anything from the first brace onwards Dan Shirah [EMAIL PROTECTED] wrote: Maybe I'm blind, but I don't see any commas in the text you are referring to. On 8/2/07, Don Don wrote: hi all

[PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
Hi all, I've set up a url rewrite code below. Options +FollowSymLinks RewriteEngine on RewriteRule profile/username/(.*) profile.php?username=$1 It only works when I type in this url http://www.example.com/profiles/profile/username/baller/ If i do not then the normal url

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
/profiles/profile/username/baller --- On Fri, 7/25/08, Per Jessen [EMAIL PROTECTED] wrote: From: Per Jessen [EMAIL PROTECTED] Subject: Re: [PHP] URL Rewrite not working for me To: php-general@lists.php.net Date: Friday, July 25, 2008, 3:15 AM Don Don wrote: Hi all, I've set up a url

[PHP] Creating user groups in social application (e.g. facebook group)

2008-07-25 Thread Don Don
Hi All, Has anyone created or has tips for the creation of user groups in a app. e.g. a Facebook group ? I am trying to create groups in a social application where users on the site can join a group etc its just much like a facebook group. Any help will be appreciated. Ta. --

[PHP] Store database password outside of public_html folder

2008-08-04 Thread Don Don
Hi All, I've been reading on the internet that is most secure to store your database details outside of the public accessible folder. I am a bit stuck on how to do this. I've got a folder db_details that contains the file dbdetails which contains the database login info. I normally include

[PHP] Date formatting issue

2008-08-05 Thread Don Don
Hi all, I've got dates in the following formats e.g. August 05, 2008, 10:14 am (e.g. today's date) August 04, 2008, 7:08 am (e.g. yesterda's date) August 03, 2008, 9:08 am (e.g. in the past) I am trying to format these dates do I can display them like this Today at 10:14 am (today) Yesterday

[PHP] Separating HTML code from PHP code

2007-03-10 Thread Don Don
Hi all, i am building a system using php and am trying to separate the html codes from the php codes (i.e. placing them in separate files), I am from the java struts/spring background and seem to be finding it difficult doing that at the moment with php. I've got a registration form in

[PHP] PHP URL issues

2007-03-12 Thread Don Don
I've got the following url rewriting problem. on page 1 i've got this p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p and on page 2 i've got this $messageID = $_REQUEST[messageId]; $userID = $_REQUEST[userId]; when i check to see the values of these

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
qoutations marks, not single. PHP will replace var names with values only inside double qoutations. Hope that helps On 3/12/07, Don Don [EMAIL PROTECTED] wrote: I've got the following url rewriting problem. on page 1 i've got this p a href='page1.php?messageId=$tmpForumuserId=$user_id' See

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
qoutations marks, not single. PHP will replace var names with values only inside double qoutations. Hope that helps On 3/12/07, Don Don [EMAIL PROTECTED] wrote: I've got the following url rewriting problem. on page 1 i've got this p a href='page1.php?messageId=$tmpForumuserId=$user_id' See

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
- From: Don Don To: PHP List Sent: Tuesday, March 13, 2007 11:37 AM Subject: Re: [PHP] PHP URL issues I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or what could be wrong ? e.g. this works echo

[PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Don Don
Hi all, my program outputs some characters along with text from the database, these texts contain chars like ‘ ’. How can i get rid of theses chars and display their meaning instead ? I am thinking htmlspecialchars or html entities will do the job will it ? Cheers

[PHP] Speed of apache/php4 on windows

2007-03-31 Thread Don Don
Hi all, i've got apache/php4 running on windows xp with good hardware configuration etc. However, the speed of execution of php pages is really slow. When testing on my local development machine it takes a few more seconds executing php files than it should normally take. How can I up

[PHP] Best opensource XML parser for PHP ?

2007-04-02 Thread Don Don
Hi all whats the best open source (free) xml parser for php (4 ) ? I've come across a few but am looking the best as adjudged by the industry. Cheers - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA.

[PHP] SimpleXML end of element/tag error

2007-04-05 Thread Don Don
I am using simple xml to parse an xml file, the program parses the file and produces an error at the end of the foreach loop when it reaches the end of the tag, it tries to look for an element/tag when there is none and produces an error Call to a member function attributes() on a non-object

Re: [PHP] SimpleXML end of element/tag error

2007-04-10 Thread Don Don
line) How can i solve that or determine when there are no more tags to parse. JM Guillermin [EMAIL PROTECTED] wrote: And with : foreach ($xml as $cs) { . } ?? jm - Original Message - From: Don Don To: PHP List Sent: Thursday, April 05, 2007 10:32 AM Subject: [PHP

[PHP] PHp Install problems on debian linux

2007-04-11 Thread Don Don
Hi all am having issues with a little problem regarding php5 installation on a debian linux machine. while trying to install php5 and supported modules I get the following error messages, what can i do to get rid of them and continue with the installation ? The following packages

[PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-22 Thread Don Don
Hi all how can i make my phpmyadmin run fast on windows ? I installed phpmyadmin on a linux and windows machines, but the windows version runs (executes) too slow, i.e. it takes to long for a page to be loaded, while it take less that 3 secs for the linux version. Both however run on the same

RE: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-23 Thread Don Don
version of Apache, and that both are running as either CGI or an apache module? -Logan -Original Message- From: Don Don [mailto:[EMAIL PROTECTED] Sent: Sunday, April 22, 2007 4:34 PM To: PHP List Subject: [PHP] PhpMyAdmin slow on windows but fast on linux Hi all how can i make my

[PHP] Redirecting (after output has started)

2007-04-25 Thread Don Don
Hi all, whats the best way to perform a redirect after out put has started ? using header:location will not work unless theres been no output. I usuall use the method below, however am concerned for browsers that do not support javascript. $location = 'index.php'; echo script

[PHP] Make eclipse-php recognise custom extension as php ?

2007-04-27 Thread Don Don
Hi all, i've changed my server's apache config to recognize my custom extension for php files. And all my development filenames now come with this new extension. However my IDE (Php Eclipse) will not recognise this new extension as a php file, even though it opens it up but it looses all

Re: [PHP] Re: Make eclipse-php recognise custom extension as php ?

2007-04-27 Thread Don Don
Hi Roberto, i tried out your tip, it does work but it looses the syntax highlighting functionality. Is there anyway I can make the new extension open up its contents with syntax and other php oriented functionalities ? Cheers Roberto Mansfield [EMAIL PROTECTED] wrote: Don Don wrote

Re: [PHP] Re: Make eclipse-php recognise custom extension as php ? [SOLVED]

2007-04-27 Thread Don Don
behaves exactly like a php file. Cheers..at least your tip lead me there. Don Don [EMAIL PROTECTED] wrote: Hi Roberto, i tried out your tip, it does work but it looses the syntax highlighting functionality. Is there anyway I can make the new extension open up its contents with syntax

[PHP] Disable Soap Client and Soap Server in php5

2007-05-09 Thread Don Don
How can i disable soap client and server for php5, reason is that i've got NuSOAP (which i must use) and its classes clash with that of PHP5. My php configuration (when using phpinfo() displays soap client and server enabled for php5. I need to disable if ..amd looking into the configs..to

Re: [PHP] Re: Disable Soap Client and Soap Server in php5

2007-05-09 Thread Don Don
I'm mistaken, is to recompile php with --disable-soap. I don't think you can do it from php.ini. -- itoctopus - http://www.itoctopus.com Don Don wrote in message news:[EMAIL PROTECTED] How can i disable soap client and server for php5, reason is that i've got NuSOAP (which i must use

[PHP] printing out this nested array

2007-05-14 Thread Don Don
I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors] = Array ( [0] = Array ( [ErrorId] = AD27JH [ErrorMsg] = OK ) ) ) I can get the values

Re: [PHP] printing out this nested array

2007-05-14 Thread Don Don
oops ! [0] cheers Richard Davey [EMAIL PROTECTED] wrote: Don Don wrote: I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors

[PHP] Pokeing functionality

2007-05-22 Thread Don Don
Hi All, am trying to integrate a poke me poke you functionality to a web 2.0 application am developing. I've got some ideas of how to do this but am not sure if its the best aproach. i am using the idea of a PM system since i've done that earlier. Does anyone have any way of implementing a

[PHP] Regular Expressions

2007-05-22 Thread Don Don
Hi all, am trying to run a regular expression to a list of user entered data on some forms. I've creating what i think is a matching pattern for each category as shown below: function validateEntry($regularExpression, $fieldValue) { if(preg_match($regularExpression, $fieldValue)) {

Re: [PHP] Pokeing functionality

2007-05-22 Thread Don Don
? This is an extremely general question, like I want users to be able to view each other's profiles, how?... --rob On 5/22/07, Don Don wrote: Hi All, am trying to integrate a poke me poke you functionality to a web 2.0 application am developing. I've got some ideas of how to do this but am not sure