Hi
I'm developing a web interface for server admin in php, but the bos has
added a complication, he wants ssh / telnet colson for as well, is i
posible to create a consol app in php ? My original idea was to have a
couple of files that the web interface would you to stor the settings and
gene
Angelo,
I am very happy after knowing that it is working. :)
--Nirmalya
Angelo Christou <[EMAIL PROTECTED]> wrote:
Hello Nirmalya,
Thank you for your response. With the help of your reply, I've now got it
working! :)
Ang.
Nirmalya Lahiri <[EMAIL PROTECTED]> wrote: Hi,
you can do th
Hi,
you can do this by using unix command 'for'. Please apply the
command written below & reply me your experiment result.
for filename in `ls *.txt`;do ./edit.php $filename var1 var2;done
--Nirmalya
Angelo Christou <[EMAIL PROTECTED]> wrote: Hello List
I would like some advice from PHP us
Peter Lauri wrote:
> As I read in the documentation it only takes the content of the file. If
> there is a script in the file I want that to be fun first. A file like
> this:
>
> --
> HTLM content
>
> HTML content
> --
>
> I want the result from my function to be
>
> --
>
I have used output buffering[1] in the past to do what you are
describing.
# HTML to be written:
ob_start(); // Begin output buffering:
require($_SERVER['DOCUMENT_ROOT'].$path.'/
'.$name_of_template.$name_of_template_ext);
$message = ob_get_contents(); // Put contents of the above require
Hi Peter,
Ah, I understand now.
If the file echo'ed it's output you could do:
ob_start();
include('file.php');
$output = ob_get_contents();
ob_end_clean();
or:
$output = exec('script.php');
(but make sure you use escapeshellarg &/or escapeshellcmd where
applicable for security reasons).
f
Hi Chris,
As I read in the documentation it only takes the content of the file. If
there is a script in the file I want that to be fun first. A file like this:
--
HTLM content
HTML content
--
I want the result from my function to be
--
HTLM content
Hello World
HTML cont
Hi Peter,
Close :)
file('file.html');
see http://www.php.net/file
or
file_get_contents('file.html');
see http://www.php.net/file_get_contents
the 'file' function returns an array, 'file_get_contents' returns it as
a string.
Peter Lauri wrote:
Best group member,
I have a php script run
Best group member,
I have a php script running and need to save the output from an HTML-file or
PHP-file. What I want to do:
$the_output = thenicefunction('file.html');
Any suggestions?
/Peter
Afan,
Here's some code that will show enum values:
$q2 = "describe ". $tname . " ;";
$r2 = mysql_query($q2) or die(mysql_error());
while ( $a2 = mysql_fetch_array($r2) )
{
$els = count($a2);
echo "";
for ($i2 = 0; $i2 < $els; $i2++)
{
$f = $a2[$i2]
- Original Message -
From: "Steve Edberg" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General"
Sent: Sunday, January 29, 2006 10:51 PM
Subject: Re: [PHP] PHP on domain...
At 10:08 PM +0100 1/29/06, Gustav Wiberg wrote:
Hi guys!
How can you check if a domain
I saw that one. Actually, I'm using right now the code below the one you
mentiones (from Peter Rekdal). but was thinking that there is kind of
pre-defines php function, smething like mysql_field_name(), or
mysql_field_len(), or mysql_field_flags(). That's why I posted my question
on this gr
look Suresh Kumar,
you came to this list about 2 weeks ago stating "i am working as a web
designer in PHP & Mysql.i know the basics of PHP & Mysql". Since that
post, you've posted the following questions:
1. i dont know how 2 store images in gif/jpeg format in Mysql Database.i
also want 2 know
I think Afan means they are values in an enum field. But I may be mistaken... :)
Gerry
On 1/29/06, tedd <[EMAIL PROTECTED]> wrote:
> >Hi to all,
> >I need to collect info about columns from a selected table.
> >I use this:
> >
> >$result = mysql_query("SELECT * FROM ". $TableName);
> >$fields = m
At 10:08 PM +0100 1/29/06, Gustav Wiberg wrote:
Hi guys!
How can you check if a domain (that you don't own), can run PHP-code?
Is it possible?
/G
@varupiraten.se
Answer 1:
Call them, fax them, email them, IM them, or check their website.
This is the only way to know for sure.
Answer 2:
[EMAIL PROTECTED] wrote:
If I have columns type ENUM('live', 'hidden', 'pending'), $flags will show
ONLY 'enum'.
How can I get all ENUM values?
Thanks for any help or direction.
-afan
This doesn't really seem a PHP question... BUT... give a look here:
http://dev.mysql.com/doc/refman/5.0/en/
Hi guys!
How can you check if a domain (that you don't own), can run PHP-code?
Is it possible?
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi to all,
I need to collect info about columns from a selected table.
I use this:
$result = mysql_query("SELECT * FROM ". $TableName);
$fields = mysql_num_fields($result);
for ($i=0; $i < $fields; $i++)
{
$type = mysql_field_type($result, $i);
$name = mysql_field_name($result,
At 1:18 PM -0600 1/29/06, Philip R. Thompson wrote:
Hi all.
I figured this question was suitable for both the MySQL list and the
PHP-General list. Here's what I'm running into.
I just installed MySQL5 and currently have PHP 4.3.11 installed. I
am wanting to connect to the mysql database on loca
Downgrading to MySQL 4.1 should fix the problem.
Philip R. Thompson wrote:
> Hi all.
>
> I figured this question was suitable for both the MySQL list and the
> PHP-General list. Here's what I'm running into.
>
> I just installed MySQL5 and currently have PHP 4.3.11 installed. I
> am wanting
Hi all.
I figured this question was suitable for both the MySQL list and the
PHP-General list. Here's what I'm running into.
I just installed MySQL5 and currently have PHP 4.3.11 installed. I
am wanting to connect to the mysql database on localhost, but I
get the following results:
--
Hi all
I'm using PHP 4.x and MySQL 3.x. I'm saving in my DB various fields with
greek text.
What I need to do is pass that data to flash in UTF format, but the MySQL
doesn't support UTF.
Is there a way to take the greek text and convert it to UTFchars so Flash
can read it?
Many Thanks
Mar
I have a couple extensions that maybe useful for PHP users who use
PostgreSQL.
I have a serializer for PHP that serializes session data to a documented XML
format. That extension is called XMLDBX. I also have a PostgreSQL extension
that will read this XML data and allow you to query it.
select xm
Brian V Bonini wrote:
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
I have a block of XML that looks as follows:
<*_~_*> Røyken VGS <*_~_*>
My question is, can I in any way efficiently (i -stress- efficiently, if
anyone read my previous XML and special characters post its a rather
la
suresh kumar wrote:
> hai,
> i am having 3 files,namely page1,page2 and page3,when i enter
> username and password in my first page i want 2 display my username and
> password in my third page through second page.
>
>
Hi to all,
I need to collect info about columns from a selected table.
I use this:
$result = mysql_query("SELECT * FROM ". $TableName);
$fields = mysql_num_fields($result);
for ($i=0; $i < $fields; $i++)
{
$type = mysql_field_type($result, $i);
$name = mysql_field_name($result,
Hi to all,
I need to collect info about columns from a selected table.
I use this:
$result = mysql_query("SELECT * FROM ". $TableName);
$fields = mysql_num_fields($result);
for ($i=0; $i < $fields; $i++)
{
$type = mysql_field_type($result, $i);
$name = mysql_field_name($result, $
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
> I have a block of XML that looks as follows:
>
> <*_~_*> Røyken VGS <*_~_*>
> My question is, can I in any way efficiently (i -stress- efficiently, if
> anyone read my previous XML and special characters post its a rather
> large XMl file (br
hai,
i am having 3 files,namely page1,page2 and page3,when i enter username
and password in my first page i want 2 display my username and password in
my third page through second page.
A.suresh
29 matches
Mail list logo