Re: [PHP] Hello, I'm new...

2005-05-13 Thread Drewcore
i think that you're best bet would be to find some open source community software and go with that. i built a community site from scratch one time, and while it was a lot of fun, it proved to be much more difficult that i had anticipated. so the next client that asked for a similar site ended up

Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Drewcore
is upgrading your php out of the question? i would go with at least 4.3.x if not 5... unless you don't have root access on your server... in which case, i have no advice... On 5/13/05, Erwin Kerk [EMAIL PROTECTED] wrote: Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Drewcore
I do suspect though, that the problem lies with how I am using addslashes and how I am not using it. Any definitive help would be much appreciated. i'm not an expert at this, but i think that since you're using mysql to store your data, you shouldn't use addslashes() and use

Re: [PHP] php forum and (almost certainly 0T) client editor

2005-06-01 Thread Drewcore
On 5/31/05, Leif Gregory [EMAIL PROTECTED] wrote: FCKEditor http://www.fckeditor.net/ It rocks. i'm currently working on a content management system designed for less-than-computer-saavy users that utilized fckeditor to create/edit content. i found it pretty easy to integrate (their

Re: [PHP] What are these weird variables??

2005-06-03 Thread Drewcore
On 6/3/05, Brian Dunning [EMAIL PROTECTED] wrote: I'm using a class that I downloaded, and to access the database it uses variable names in all caps, like this: those are constants: it's like a variable, except once you define it, it stays set at that value and you can't change it. And it no

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Drewcore
a parser is a program that i will take some preformatted text, extract the information from it, and then do work with that information. xml programs users parses to pull data from between the tags. in your case, you'd have to have some sort of declaration in your code that sets apart code blocks

Re: [PHP] Re: using rand()

2005-04-08 Thread Drewcore
i guess a good question would be which one of these methods has more overhead - having php calculate the random numbers for queries, or having the mysql db pick them at random itself? i don't really focus that much on optimization, but if you expect heavy traffic on your site, it might be in your

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-17 Thread Drewcore
i would approach this from another angle... why not store the videos as regular files on your server, then store the filenames as varchar (or something similar - whatever suits you best) on your database. then you can just pull up the filename from the db, and then load it the old fashioned

Re: [PHP] Post shorter code

2005-04-21 Thread Drewcore
dont fight guys, it makes me nervous... :) d On 4/21/05, Petar Nedyalkov [EMAIL PROTECTED] wrote: On Thursday 21 April 2005 18:21, Ryan A wrote: It also helps if you quote a bit from the original post so new people to the thread will know what you are talking about...

Re: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-21 Thread Drewcore
well, i guess it all depends... are you talking about having one server in south america that acts as your database server, one server in asia that's your web server, and then another server in north america that servers some other task? or are you talking about having a localized database,

Re: [PHP] help with install to one page only

2005-04-24 Thread Drewcore
lisa, i think your problem may be simple enough... but if this doesn't work, i dunno... i'm guessing that you're using some webhost right? well... Note: Your file should be present in the same folder where HEC/ is present E.g: ~/testcal.php [your file where you want to display event calendar]

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Drewcore
just put a @ symbol before the function calll, eg while ($myrow = @mysql_fetch_row($result)) { etc On 4/25/05, Mark Sargent [EMAIL PROTECTED] wrote: Hi All, get the following error when calling data from mysql, *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL

Re: [PHP] Re: editor that typesets the php code

2005-04-28 Thread Drewcore
well, i'm not sure what to do after your code is done, but as far as editors go, theres a free one out there that does syntax highlighting for a ton of languages (php included) called Vim... it comes with a graphical version called gvim that i do all of my coding on. no debugging features for php