Re: [PHP] is this possible in PHP?

2005-05-04 Thread Richard Collyer
[EMAIL PROTECTED] wrote: I'd make a script that went through the httpd.conf file with DOM and pulled out all the virtual hosts. Either that or looked at the home directory listings for each site. If this is what you were getting at (seeing as you mentioned root access and what-not), then read the

Re: [PHP] is this possible in PHP?

2005-05-04 Thread disguised.jedi
> I want a script that can display a list of all the websites currently > hosted on my server.. (i have root access to the server) > > Say I have a page sitesonmyserver.php..it shud show a list of all the > websites hosted on my server..eg: > abc.com > xyz.om > > And any additional info if possible

Re: [PHP] is this possible in PHP?

2005-05-03 Thread Rasmus Lerdorf
Dasmeet Singh wrote: Hi! I want a script that can display a list of all the websites currently hosted on my server.. (i have root access to the server) Say I have a page sitesonmyserver.php..it shud show a list of all the websites hosted on my server..eg: abc.com xyz.om And any additional info

RE: [PHP] is this possible in PHP?

2005-05-03 Thread Kim Madsen
> -Original Message- > From: Dasmeet Singh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 03, 2005 9:03 AM > I want a script that can display a list of all the websites currently > hosted on my server.. (i have root access to the server) > > Say I have a page sitesonmyserver.php..it shu

Re: [PHP] Is this possible ?

2004-01-19 Thread Dagfinn Reiersøl
An object-oriented way of doing it: keep the extra result in a member variable and get it separately. You might not find this necessary, but it gets more useful in more complex cases. class MyClass { var $num; Function MyFunc(){ if(isset($_POST['var'])){ $sql = mysql_query("select * from

RE: [PHP] Is this possible ?

2004-01-18 Thread Larry Brown
ry. Larry -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: Sunday, January 18, 2004 6:11 AM To: 'Toby Irmer' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Is this possible ? Thanks Toby, But I forgot to mention something that makes retuning an array not usable in the

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
you Dave C -Original Message- From: Toby Irmer [mailto:[EMAIL PROTECTED] Sent: 18 January 2004 10:29 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Is this possible ? One way: hth toby - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
:[EMAIL PROTECTED] Sent: 18 January 2004 10:29 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Is this possible ? One way: hth toby - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 11:22 AM

Re: [PHP] Is this possible ?

2004-01-18 Thread Toby Irmer
One way: hth toby - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 11:22 AM Subject: [PHP] Is this possible ? Hi List, I have a function that makes a call to mysql based on certain vars. ---example Function My

RE: [PHP] Is this possible?

2003-10-16 Thread Joseph Bannon
> Write a small script and see. Yep, it worked. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this possible?

2003-10-16 Thread Raquel Rice
On Thu, 16 Oct 2003 10:36:38 -0500 "Joseph Bannon" <[EMAIL PROTECTED]> wrote: > Is it possible to set two variables at once like this... > > $test = $variable = 5; > Yes. -- Raquel To sin by silence when they should protest makes cow

Re: [PHP] Is this possible?

2003-10-16 Thread Robert Cummings
Write a small script and see. Rob. On Thu, 2003-10-16 at 11:36, Joseph Bannon wrote: > Is it possible to set two variables at once like this... > > $test = $variable = 5; > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- .--

Re: [PHP] is this possible?

2003-09-27 Thread Jason Sheets
It sounds to me like you are having them update their information on a central admin control panel for their site. There are a couple problems with your proposed method, first the .php file by default will get parsed by their server before it is sent to you so you will not be able to include it

RE: [PHP] Is this possible?

2003-07-23 Thread Tony Crockford
> Umm, you mean like: > > select i.id,d.description from items i, descriptions d where > d.itemid = > i.id; > > ? Of course I do! How stupid am I? No, don't answer that - it's been a long week working on the wrong stuff! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Is this possible?

2003-07-23 Thread Adam Voigt
Umm, you mean like: select i.id,d.description from items i, descriptions d where d.itemid = i.id; ? On Wed, 2003-07-23 at 12:32, Tony Crockford wrote: > Hi > > > Thanks for the help on previous questions, I now have an in principle > type question. > > I have a MySQL database - "items" in one

RE: [PHP] Is this possible?

2003-06-11 Thread Jay Blanchard
[snip] Please read these pages: http://de.php.net/release_4_1_0.php http://de.php.net/manual/en/security.registerglobals.php if your PHP setting called register_globals is turned on, then the code you propose would allow hackers to ask anything they want to your database, including destructive o

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
At 18:06 11-6-03, you wrote: Hey, Whats the problem with this "table" ? its a perfectly legal bit of HTML...wheres your doubt? in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query. Either this is just too simple or i dont really understand w

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
Please read these pages: http://de.php.net/release_4_1_0.php http://de.php.net/manual/en/security.registerglobals.php if your PHP setting called register_globals is turned on, then the code you propose would allow hackers to ask anything they want to your database, including destructive options.

Re: [PHP] Is this possible?

2003-06-11 Thread Ryan A
Hey, Whats the problem with this "table" ? its a perfectly legal bit of HTML...wheres your doubt? in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query. Either this is just too simple or i dont really understand what you are trying to do...

Re: [PHP] Is this possible? Group related results from mysql to one field…

2003-03-08 Thread Marek Kilimajer
The only way that comes to my mind is using a SET column type - in related table you would not wave toid relating to categories, but instead it would be of type SET("demonstrations","people"). This column can be set to "" -empty, no category "demonstrations" "people" "demonstrations,people" But

Re: [PHP] Is this possible with php?

2003-01-11 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: using MS Word in windows, when a file is saved, can it be AUTOMATICALLY uploaded (via http POST or other mechanism) to a server? Yes, in a webDAV enabled directory on your webserver (http://www.webdav.org). Its a module that you can compile for use with Apache (I'm us

RE: [PHP] Is this possible with php?

2003-01-11 Thread Rasmus Lerdorf
You should probably mention that this is called WebFolders in M$-speak and it actually works quite well when combined with the mod_dav and mod_digest Apache modules. -Rasmus On Fri, 10 Jan 2003, Timothy Hitchens (HiTCHO) wrote: > So you want to be able to have a directory that when saved to it

Re: [PHP] Is this possible with php?

2003-01-10 Thread try
On Fri, Jan 10, 2003 at 12:00:33PM -, Danny Shepherd wrote: > Hi, > > Where did he say he wanted to use Word to edit PHP files? AFAICT the idea > was to automatically upload Word files, presumably to make them available on > an Intranet for download etc. Yes, automatically upload word file af

Re: [PHP] Is this possible with php?

2003-01-10 Thread Danny Shepherd
c: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 11:38 AM Subject: Re: [PHP] Is this possible with php? > > [EMAIL PROTECTED] wrote... : > > > I would like to know if the follwing function can be implemneted > > in php with help of other tools: > > in PHP distribu

Re: [PHP] Is this possible with php?

2003-01-10 Thread Justin French
on 10/01/03 6:14 PM, Tom Rogers ([EMAIL PROTECTED]) wrote: > I use webdrive which allows me to map an ftp site to a windows drive letter so > it gets treated as a local drive . very usefull. > You can read about it here http://www.webdrive.com/ Does anyone know of a mac (OS8/9 NOT OSX) applic

Re: [PHP] Is this possible with php?

2003-01-10 Thread Maxim Maletsky
[EMAIL PROTECTED] wrote... : > I would like to know if the follwing function can be implemneted > in php with help of other tools: in PHP distribution? PHP is the programming language, not a client/server tool. This is definitely something to be an integrated part of something else. > using MS

Re: [PHP] Is this possible with php?

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:06:23 PM, you wrote: tnc> I would like to know if the follwing function can be implemneted tnc> in php with help of other tools: tnc> using MS Word in windows, when a file is saved, can it be AUTOMATICALLY tnc> uploaded (via http POST or other mechanism) to a serve

RE: [PHP] Is this possible with php?

2003-01-09 Thread Timothy Hitchens \(HiTCHO\)
So you want to be able to have a directory that when saved to it is really the server well besides ftp or samba integration into explorer the only other option you have is to use webdav with apache and that way it would be a post of sorts to the mod webdav module in apache. Timothy Hitchens (HiT

Re: [PHP] is this possible ...

2002-08-10 Thread Justin French
Yes attaching files to email is possible. There's such a class available at phpclasses.org by Manuel Justin French on 11/08/02 3:53 AM, M.E. Suliman ([EMAIL PROTECTED]) wrote: > Hi > > I need the contents of a form to be emailed as an attached Excel file or > html file. Is this possible usi

Re: [PHP] Is this possible

2002-06-06 Thread Analysis & Solutions
On Thu, Jun 06, 2002 at 05:32:45AM -, James Edgar wrote: > class myClass > { > function myFunc($var) > { > include("xml.inc"); > $obj = new xml($data,"xml"); And what happened when you ran this? Why not tell us? In the future, please

RE: [PHP] Is this possible

2002-06-05 Thread Scott Hurring
Since you didnt include the code for InsideClass, i can only assume that you're probably getting errors becuase "$bob" is not initialized anywhere. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Ja

RE: [PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread John Holmes
Yes, it's certainly possible. You will have to talk your host into giving you remote access though, which could be hard. How permissions work in MySQL is that your username is given permission to connect from a specific host. Generally, the host is listed as 'localhost' meaning the script has to

Re: [PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread Jason Wong
On Monday 13 May 2002 15:05, r wrote: > Hey there guys, > I have a slight problem which i could not solve via Java servlets and now > that I am migrating to PHP I was wondering if its possible... > > I am hosting with a company that has given me a database (MySql) I am using > the database for all

RE: [PHP] Is this possible?

2002-02-14 Thread Rick Emery
I forgot to mention, you must have access to the A and/or CNAME records for your DNS in order to point the domains to the single IP adress. Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a hundred

RE: [PHP] Is this possible?

2002-02-13 Thread Rick Emery
Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a hundred. This is index.html file: $query"); if( mysql_num_rows($results)<>1 ) { print "Error: Cannot find sub-domain ".$HTTP_SERVER_VARS['HTTP_HOS

Re: [PHP] Is this possible?

2002-02-06 Thread Julio Nobrega Trabalhando
I am sorry, this has nothing to do with the logic of your code, but instead with style (and a little bit of perfomance, both from you and your system). Isn't easier to escape PHP when you are going to enter html code lines? Like this: \n"; echo " \n"; ?> IMHO would be better:

Re: [PHP] Is this possible?

2002-02-06 Thread Raymond Lilleødegård
ot;]); printf(" "); printf(" "); printf(" ",$myrow["varenr"]); printf("",$myrow["varenavn"]); printf(" "); printf(" "); printf(" (%s)",$myrow["innhold"]); printf(" "); printf(" "); print

Re: [PHP] Is this possible?

2002-02-06 Thread DL Neil
val, Surely this would only be possible if "SIZE1" and "P2" [sic - maybe "SIZE2"] were constants, ie that all small packs had SIZE="small" and all large packs were defined as SIZE="large". (also that all products had no more than two sizes) Interesting thought though (subject to the <=2 sizes c

Re: [PHP] Is this possible?

2002-02-06 Thread val petruchek
Let prices(id,price etc.) be table of prices, products(NUM,name etc). Try smth like this: SELECT DISTINCT * FROM PRODUCTS P, PRICES P1, PRICES P2 WHERE P.NUM=P1.ID AND P.NUM=P2.ID AND P1.SIZE=SIZE1 AND P2.SIZE=P2 Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED]

Re: [PHP] Is this possible?

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 12:16 PM, Raymond Lilleodegard wrote: > So... how do I get only one row from the "product table" and two rows > from > the "price table" in one line in a page? Use this query: SELECT producttable.onerow, pricetable.onerow, pricetable.tworow FROM producttabl

RE: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Joe Sheble \(Wizaerd\)
Michael Champagne; PHP General Mailing List > Subject: Re: [PHP] Is this possible? PHP + Javascript > > > At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: > >I have a huge database-driven list of clients with a checkbox > next to each > >one. When I check one of t

Re: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Reuben D Budiardja
At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: >I have a huge database-driven list of clients with a checkbox next to each >one. When I check one of these clients, I'm wanting one of those small >javascript boxes to pop up and display the contacts for this client (another >database lookup) a