Re: [PHP] security/deployment issue

2009-10-16 Thread hessiess
> Humm.. thanks for the replies. But i have another problem about rsync > again. > > > > When i deploy a project using the rsync the permissions of all home > directory is changed. i tried to use the parameter -p -o -g (preserve > permissions, owner and group): > > > I dont know but the rsync doesn

Re: [PHP] security/deployment issue

2009-10-16 Thread hessiess
>> Rsync should work fine, but personally I like to see exactly which >> changes are being deployed especially when deploying to production. >> While I realise this recommendation is not Open Source software, I >> have found it to be an excellent piece of software for this task. I >> use Beyond Com

[PHP] Wrighting to $_POST array

2009-10-12 Thread hessiess
I have some code which will loop over the whole $_POST array, runs it through mysql_real_escape_string and then writes it all back to the array again, which seams to work. Are there any incompatibility problems or such like with writing into the $_POST or $_GET array? function clean_post()

Re: [PHP] Embedding foreach loops

2009-08-11 Thread hessiess
> > On Aug 11, 2009, at 12:13 AM, hessi...@hessiess.com wrote: > >> Do *NOT* get into the habit of outputting your HTML using echo or >> print >> statements, it becomes unmaintainable very quickly, use a templating >> language, ether with a framework(recomended) or standalone. > > This soun

Re: [PHP] Embedding foreach loops

2009-08-10 Thread hessiess
Do *NOT* get into the habit of outputting your HTML using echo or print statements, it becomes unmaintainable very quickly, use a templating language, ether with a framework(recomended) or standalone. You should learn the basics of HTML and CSS, go and read http://htmldog.com/, btw to add a newlin

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread hessiess
These is a PHP binding for FFMPEG here: http://ffmpeg-php.sourceforge.net/, though most of the tutorials you will find are for the C API, for example http://www.dranger.com/ffmpeg/, which demonstrates how to implement a media player. Personally I would just skip using the API and use the CLI progr

Re: [PHP] Converting MP3 to FLV On-The-Fly

2009-06-07 Thread hessiess
> Hi Lista > > I'm trying to figure how I can turn MP3 files into FLV files on the fly > using PHP. > I'm having a server and I can install 3rd party software in order to > accomplish this conversion. > > I have never dealt before with music file comression or anything similar > so > I don't know w

Re: [PHP] how to manage permissions for file uploader

2009-06-04 Thread hessiess
> But, if I move the directory a level up, not accessable from outside - how > can read the image since it's not accessable fro outside? I can't > inlcude() the image? You need to do something simmaler to reading files stored in a database, which is described here: http://www.php-mysql-tutorial.co

Re: [PHP] PHP scalability problem

2009-05-27 Thread hessiess
> What I am trying to achieve is to have the server do less processing. > Like I said PHP is a server side scripting language and each time a > request is made a process is spawned and processes are heavy weight as > compared to a thread which is a light weight process. So I want to take > away muc

[PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread hessiess
Something that seriously annoys me about PHP is the fact that it has a configuration file which can *completely* change the behaviour of the language. Take the following for example: -- function parse_to_variable($tplname, $array = array()) { $fh = fo

Re: [PHP] problem with PHP simplexml and doxygen generated XML

2009-04-05 Thread hessiess
> I HAVE THE SAME PROBLEM, PLEASE HOW HAVE YOU DONE IT > > On Sun, Apr 5, 2009 at 4:08 PM, wrote: > >> > >> > >> > On Apr 3, 2009, at 17:52, hessi...@hessiess.com wrote: >> > >> >> I have bean trying to right a PHP script to generate XHTML code from >> >> the >> >> class documentation xml files cr

Re: [PHP] problem with PHP simplexml and doxygen generated XML

2009-04-05 Thread hessiess
> > > On Apr 3, 2009, at 17:52, hessi...@hessiess.com wrote: > >> I have bean trying to right a PHP script to generate XHTML code from >> the >> class documentation xml files created by Doxygen(the HTML it outputs >> is >> invalid, messy and virtually imposable to integrate into another web >> page

[PHP] problem with PHP simplexml and doxygen generated XML

2009-04-03 Thread hessiess
I have bean trying to right a PHP script to generate XHTML code from the class documentation xml files created by Doxygen(the HTML it outputs is invalid, messy and virtually imposable to integrate into another web page). One thing has bean causing problems, the tags which start with `@', for exampl