RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Kelly Hallman wrote: > Other languages dispense with a lot of the formalities found in C++ (a > good or bad thing, depending on your perspective). I found Python to be a > great language to learn OOP, since it forces good habits on you. C++ is a very large unwieldly language

php-general@lists.php.net

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Maciek Hofstede wrote: > i'm writing a host monitor. > image it's diagram generate from mysql, > if i use imagestring or imagettftext web is too big, there is about 150 > - 170 hosts, and i have generate image and put html descriptions: > > host alive: ble ble ble > ble ble b

php-general@lists.php.net

2004-01-30 Thread Ajai Khattri
On Fri, 30 Jan 2004, Maciek Hofstede wrote: > I have one problem, > > i can't use 'text mode' exp: > > echo "blah"; > > end 'image function'? > exp: imagepng($rys); You have to use the font rendering functions to put text into an image. I have used imagettftext() to do this. See: http://www.php.

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 06:02:40PM -0300, Cesar Aracena wrote: > The thing is that I don't have phisical access to the server and it doesn't > have telnet access either. What I want to achieve is to make a password > protected page inside my site were a button is kept to start a full backup > of m

Re: [PHP] Apache Installation Query

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 03:56:49PM -, Shaun wrote: > I have just installed Apache on my local machine. However, when browsing a > directory I get the listing of it's contents rather than it defaulting to > the index.php file, is there a way to make this happen? Yes, you need to add index.php

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 04:39:22PM -0300, Cesar Aracena wrote: > I am wondering if someone could point me to the right functions to use to > make a script to dump all the tables in a specific MySQL DB. I need this to > keep a daily backup from my site as the hackers are screwing up my site very >

Re: [PHP] Problem With Apache / PHP Installation

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 07:46:07PM -, Shaun wrote: > I have installed PHP and Apache but when i try to view a PHP file i.e. > http://127.0.0.1/hello.php i get a dialog box asking me if i want to open or > save the file? > > Any ideas why this is happening? Assuming, your Apache is configured

Re: [PHP] Spamming bastardly problem, please help

2003-12-05 Thread Ajai Khattri
On Fri, Dec 05, 2003 at 11:03:56PM +0100, Ryan A wrote: > Problem is we have a catch all address as the site is large and we have been > using differient email ids all around the place which basically goes into > one, so turning of the catch all can/would result in us missing some > important stuf

Re: [PHP] PHP RSS sites and SlashDot

2003-12-05 Thread Ajai Khattri
On Fri, Dec 05, 2003 at 08:34:15PM +0100, Ryan A wrote: > I downloaded a few good classes to use RSS but dont know where to get the > feeds from... Basically RSS is just an XML file that you can retrieve from a site using HTTP. Sites that make feeds available generally have a link to them somewhe

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 03:43:53PM +, Jon Bennett wrote: > Would I be right in thinking that php alone can't change the content of > a dropdown once the browser has loaded the file without a page refresh > ??? In which case I need to source out some javascript, anyone got > anything that might

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 12:25:25PM -0500, Cesar Cordovez wrote: > So there you go! We are all greek!!! Beware of Greeks bearing GIFs (Sorry, couldn't resist ;-) -- Aj. Sys. Admin / Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] International Addresses and Telephones

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 09:53:16AM -0600, Rankin, Randy wrote: > I have a form which captures US addresses ( address, city, state ) and > telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I > need to expand this to capture non-US info, so I was hoping for some > guidance on

Re: [PHP] copy_file() files

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 06:21:05AM -0600, Jay Blanchard wrote: > You had already stated the owner/group...I want to know what the > read/write permissions are. For 'nobody' to be able to write to a > directory that directory must be owned by 'nobody' > > drw--- (chmod 600) > > If the group i

Re: [PHP] Remote Server Info

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 02:35:16PM -0800, Jason Williard wrote: > Is there a function that can get remote server information such as what > server software the remote host is running? http://www.php.net/manual/en/ref.info.php -- Aj. Sys. Admin / Developer -- PHP General Mailing List (http://w

Re: [PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 11:19:46PM +0100, Bronislav Klucka wrote: > are you working with uploaded files?? because move_uploaded _files() woks > only with them, I switched to this function and had the same problem. > and what is $image variable??? is that file on disk or uploaded file?? do u It

Re: [PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
On Wed, Dec 03, 2003 at 03:06:50PM -0600, Jay Blanchard wrote: > What is the chmod of those files/directories. Also, there is no Well, the destination folder (as I stated) is owned by user nobody and group nobody. Apache is running as user nobody and group nobody. And Im assuming that any files w

[PHP] copy_file() files

2003-12-03 Thread Ajai Khattri
I recently upgraded PHP and now have two sites that use copy_file() that no longer work. I have safe_mode=Off in my php.ini. Also, the files and directories Furthermore, the file and directories Im trying to copy files to are owned by user nobody and group nobody (My Apache server runs as user nobo