[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
> 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
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
> -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
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
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
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]
:[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
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
> 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
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
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
>
>
--
.--
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
> 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
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
[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
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
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.
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...
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
[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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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
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:
ot;]);
printf(" ");
printf(" ");
printf(" ",$myrow["varenr"]);
printf("",$myrow["varenavn"]);
printf(" ");
printf(" ");
printf(" (%s)",$myrow["innhold"]);
printf(" ");
printf(" ");
print
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
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]
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
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
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
42 matches
Mail list logo