php-general Digest 14 Dec 2003 23:30:33 -0000 Issue 2473

Topics (messages 172675 through 172696):

Re: What would the best way to veladate a URL string?
        172675 by: andre.as.no-ip.com

Re: session_start() make netscape 4.7 reload page.
        172676 by: Marek Kilimajer

Re: PHP IDE?
        172677 by: BAO RuiXian
        172679 by: rush
        172684 by: Mike
        172686 by: Ahbaid Gaffoor
        172695 by: Erwin Kerk

Operation in an Array
        172678 by: Harry.de

e-commerce with php
        172680 by: pehepe php
        172693 by: Eric Bolikowski

help with install
        172681 by: Paul Vinten

php compile error with mysql undefined reference to `mysql_real_escape_string'
        172682 by: Ivone Uribe

trouble parsing an XML document
        172683 by: alfredo
        172685 by: Raditha Dissanayake

Re: Where to get PHP manual?
        172687 by: Chris Shiflett
        172688 by: David T-G

Sort flags
        172689 by: Jake McHenry
        172691 by: John W. Holmes

Re: Email Forwarders
        172690 by: Mike

How do i save images created using PHP
        172692 by: crdsouza.buffalo.edu

Re: url rewriting within sessions - confused newbie needs help - [FIXED]
        172694 by: Peter Walter

Re: (0/T) executeing script below public
        172696 by: Ryan A

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Sat, Dec 13, 2003 at 08:17:08PM -0500, Paul Chvostek wrote:
> Validate?  How about something like:
> 
> eregi('^(f|ht)tp://([a-z0-9._:-]+@)?([a-z0-9][a-z0-9-]+\.)+[a-z][a-z]+(/([a-z0-9.%&=-]+)?)?',$string);

I like it, but I would start with '^(ftp|gttp|https):.......'
People could be using SSL.

-- 
Regards,

Andre

--- End Message ---
--- Begin Message --- Jonathan Zhang wrote:
test.php
-->
<?
session_start();
?>
<form>
<input type="text" name="test">
</form>

For Win2kpro+netscape 4.7,all form data you enter in this page will lost
when resize the browser's window size, ns4.7 have reload this page when
resize the window.
But if you remove the session_start() from this page, the issue will not
exist.

Is there any solution for it?

thanks,
Jonathan Zhang


Netscape 4.x has this annoying behavior, it tries to fetch a fresh copy whenever you resize window, view source code or print the page.

You might try to use session_cache_limiter() function to control the cache headers send, try private_no_expire first. Do not set it to public if the page contains private information.
--- End Message ---
--- Begin Message --- Mike wrote:

if you are using windows, I would highlt recommend PHPEdit, it is open
source and has function completion.  It boosts productivity a lot

http://www.phpedit.net/products/PHPEdit/

Mike


Not that good. IIRC, all the error messages and the prompts are in German, one need to guess which button should press if you don't know the very language.

Best

Bao

On Sat, 2003-12-13 at 17:06, Jough Jeaux wrote:


Was wondering what everyone's favortie IDE is for
coding in PHP.  I've got a big PHP project in the
works.  I'll be doing alot with it and am looking for
ways to boost my productivity.

--Jough





--- End Message ---
--- Begin Message ---
"Jough Jeaux" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Was wondering what everyone's favortie IDE is for
> coding in PHP.  I've got a big PHP project in the
> works.  I'll be doing alot with it and am looking for
> ways to boost my productivity.

If you are going to work with templates, you can take a look at
TemplateTamer, which has IDE geared for such development.

rush
--
http://www.templatetamer.com/

--- End Message ---
--- Begin Message ---

Not that good. IIRC, all the error messages and the prompts are in German, one need to guess which button should press if you don't know the very language.


They were all in english last time I used it (which was a while ago)

Mike
--- End Message ---
--- Begin Message --- with folding you can "fold" your code in chunks, you basically setup a "start fold" and an "end fold" and place code between them, then you can
open and close (fold) that block of code as you need to or don't need to see it...

for example:

# {{{ PHP Code to do something...

..
..
10000 lines of code...
..
..
# }}}

would collapse to one line when folded.... and look something like:

+ PHP Code to do something

then when you hit space on it it expands. (I use {{{ and }}} as my start and end folds)


ctags allows you to build a dictionary of words which you can hook into vim, that way you can do tab completion on PHP words etc.

I also like to map keystrokes to coding templates for things like functions, loops, declarations etc.

Everyone's got their own setup :)

Plus I always use a CVS repository for my work, so my routine of, code, test, commit is habit.

Looking at the responses there seems to be a lot of neat editors out there, to each his own.

regards,

Ahbaid.

Jough Jeaux wrote:

Hmm, I'm currently a vim user also.  You'll have to
elaborate on this folding and ctag business though...


--- Ahbaid Gaffoor <[EMAIL PROTECTED]> wrote:


vim - with folding and ctags

sweet.

Ahbaid

Jough Jeaux wrote:



Was wondering what everyone's favortie IDE is for
coding in PHP. I've got a big PHP project in the
works. I'll be doing alot with it and am looking


for


ways to boost my productivity.

--Jough


__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/




--- End Message ---
--- Begin Message --- Jough Jeaux wrote:
Was wondering what everyone's favortie IDE is for
coding in PHP.  I've got a big PHP project in the
works.  I'll be doing alot with it and am looking for
ways to boost my productivity.

--Jough


__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/


I use HTML-kit all the time. Has a built-in ftp client, lots of plugins available, in-program previews (via local webserver), and much more.

http://www.htmlkit.com

Erwin Kerk
Web Developer

--- End Message ---
--- Begin Message ---
How can i make an operation like adding variables in an array for example
$array[$a+$b];

Thanks
Harry

--- End Message ---
--- Begin Message --- Hi! I don't know anything about e-commerce. I want to build a e-commerce site with php-mysql. So i have turorial for this idea. Can you help me about it? i know php and mysql but i dont have any information about ssl, e-commerce, paying with credit card.

thank you very much!
you can send me online document as attachment. or you can send me an adress or etc.

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--- End Message ---
--- Begin Message ---
"Pehepe Php" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi! I don't know anything about e-commerce. I want to build a e-commerce
> site with php-mysql. So i have turorial for this idea. Can you help me
about
> it? i know php and mysql but i dont have any information about ssl,
> e-commerce, paying with credit card.
>
> thank you very much!
> you can send me online document as attachment. or you can send me an
adress
> or etc.
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail

Hi

You could have a look at osc2nuke:
http://www.osc2nuke.org/

Eric

--- End Message ---
--- Begin Message ---
ok, Just installed PHP with Xitami, with Apache 1.3 AND 2. I've used PHP
versions 4.33 and 4.3.4. I'm running Windows XP, mucking around with some
pages that came with my Web Programming book, most of the php pages work,
but anything involving sessions, forms and cookies etc just doesn't work.
Anyone any pages that they know work that I can try, so I can figure out
what the problem is? Should they work, even though the PHP code is actually
quite old? (the version that came with the book is 4.0.3) The stuff works ok
under 4.0.3, but I need the functionality of the latest version for some
stuff on my Uni course... Anyone able to help me, or point me in the right
direction?

--- End Message ---
--- Begin Message ---
Hi all!
I'm installing php4.3.3, apache 1.3.28 with
mysql3.22.32
I'm using this option --with-mysql=/usr/local/mysql

But when I compile the php code, I get this error:

ext/mysql/php_mysql.o: In function
`zif_mysql_client_encoding':
/root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118:
undefined reference to `mysql_character_set_name'
ext/mysql/php_mysql.o: In function
`zif_mysql_real_escape_string':
/root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1705:
undefined reference to `mysql_real_escape_string'
collect2: ld returned 1 exit status
 
To solve it..I try the option --disable-cli on
./configure, and all ok.
But now I have the same problem
(/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined
reference to `mysql_character_set_name')
when I try to compile the apache...

Please!!! Does anybody  know how to solve it?

Thanks in advance!!

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

--- End Message ---
--- Begin Message ---
Hello,
I'm trying to parse a XML doc, but the doc has some tags like:
<REG-ORIG>

so when I try to initialize variables:

class Documenti {
        var $FILE; //nomefile
        var $NUMERO; //numerodiserie
        var ${'REG-ORIG'}; // here is the broblem
    function Documenti($aa) {
        foreach ($aa as $k=>$v)
            $this->$k = $aa[$k];
    }

i have an error:
Parse error: parse error, unexpected '$', expecting T_VARIABLE...

I tryed changing the $ position:
var {$'REG-ORIG'}; // here is the broblem

does not change anything:
Parse error: parse error, unexpected '{', expecting T_VARIABLE...

thanks for any suggestion,
Alfredo (Italy)

--- End Message ---
--- Begin Message --- doesn't look like a xml parser problem. I haven't tried your code but i think the error is $this->$k

alfredo wrote:

Hello,
I'm trying to parse a XML doc, but the doc has some tags like:
<REG-ORIG>

so when I try to initialize variables:

class Documenti {
    var $FILE; //nomefile
    var $NUMERO; //numerodiserie
    var ${'REG-ORIG'}; // here is the broblem
    function Documenti($aa) {
        foreach ($aa as $k=>$v)
            $this->$k = $aa[$k];
    }

i have an error:
Parse error: parse error, unexpected '$', expecting T_VARIABLE...

I tryed changing the $ position:
var {$'REG-ORIG'}; // here is the broblem

does not change anything:
Parse error: parse error, unexpected '{', expecting T_VARIABLE...

thanks for any suggestion,
Alfredo (Italy)



--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

--- End Message ---
--- Begin Message ---
--- Johnny Koh <[EMAIL PROTECTED]> wrote:
> I tried downloading the manual @ php.net but it just don't seems to
> connect. It keeps loading for a very long time.
> 
> Is there any other place I can get or any kind soul that can send it
> to my email?

Try one of the mirrors. They might work for you:

Argentina
ar.php.net Datahost Argentina
ar2.php.net XMundo Network Solutions
Armenia Armenia
am.php.net Matenadaran Research Institute
Australia Australia
au.php.net Planet Mirror
au2.php.net Ilisys Web Hosting Ltd.
au3.php.net AusGamers
Austria Austria
at.php.net Goodie Domain Service
at2.php.net netmonic - your personal isp
Belgium Belgium
be.php.net Easynet BE
be2.php.net BELNET - Belgian Research Network
Bolivia Bolivia
bo.php.net MEGALINK
Bosnia and Herzegovina Bosnia and Herzegovina
ba.php.net SARNET, University Computer Center, Banja Luka
Brazil Brazil
br.php.net HostNet Internet
br2.php.net Digirati Internet
Bulgaria Bulgaria
bg.php.net Bulgaria Online
bg2.php.net Data.BG
Canada Canada
ca.php.net easyDNS
ca2.php.net Acta Divina & Peer1 Networks
ca3.php.net egateDOMAINS
Chile Chile
cl.php.net Caos Consultores
cl2.php.net TECNOERA
China China
cn.php.net China GNU/Linux Forum
cn2.php.net Network Information Center of Beijing Polytechnic University
Colombia Colombia
co.php.net Universidad del Cauca
Costa Rica Costa Rica
cr.php.net Corp. Hostarica S.A.
cr2.php.net Universidad Latina de Costa Rica
Croatia Croatia
hr.php.net Croatian Linux User Group
Czech Republic Czech Republic
cz.php.net InWay, a.s.
cz2.php.net Czech Technical University
Denmark Denmark
dk.php.net Børsen Online
dk2.php.net WebPartner A/S
Estonia Estonia
ee.php.net OK Interactive
ee2.php.net Northside Solutions
Finland Finland
fi.php.net Mediatraffic Oy
fi2.php.net Tietokonepalvelu Mikrolahti
France France
fr.php.net nexen.net
fr2.php.net Crihan
fr3.php.net WorldAKT.com
Germany Germany
de.php.net @GLOBE GmbH
de2.php.net nic4you.de
de3.php.net Schlund + Partner
Greece Greece
gr2.php.net ACE-Hellas S.A.
Hong Kong Hong Kong
hk.php.net inframatrix internet solutions
hk2.php.net daPyxis Network Limited
Hungary Hungary
hu.php.net PHPhost.hu
Iceland Iceland
is.php.net Linux, Iceland
is2.php.net RHnet
India India
in.php.net Directi Web Hosting
in2.php.net Directi Web Hosting
Indonesia Indonesia
id.php.net a3plusmedia.NET
Iran Iran
ir.php.net Morva System Co.
Ireland Ireland
ie.php.net Esat Net
ie2.php.net TIBUS
Israel Israel
il.php.net Fresh.co.il
il2.php.net NSA Internet & Security, Ltd.
Italy Italy
it.php.net Open Technology Consulting
it2.php.net Italia OnLine S.p.a.
Japan Japan
jp.php.net HappySize, Inc.
jp2.php.net snotch
Latvia Latvia
lv.php.net DEAC
Liechtenstein Liechtenstein
li.php.net Lie-Comtel
li2.php.net Digi-Technik & Partners
Lithuania Lithuania
lt.php.net Alternatyvus Valdymas
lt2.php.net Vilnius University, Faculty of Communications
Luxembourg Luxembourg
lu.php.net root eSolutions ISP
Malaysia Malaysia
my.php.net MyBSD Malaysia Project
Mexico Mexico
mx.php.net uServers Mexico
Netherlands Netherlands
nl.php.net WEBtic Internet Consultancy
nl2.php.net TrueServer
nl3.php.net Nederland.net
New Zealand New Zealand
nz.php.net EXPIO Communications
nz2.php.net InSPire Net Ltd
Norway Norway
no.php.net Overture Services Norway
no2.php.net Key2Network
Poland Poland
pl.php.net MainSeek.com
pl2.php.net eStrefa.pl
Portugal Portugal
pt.php.net Telepac
pt2.php.net PTM.COM
Republic of Korea Republic of Korea
kr.php.net HolyNet
kr2.php.net LSN
Romania Romania
ro.php.net LASTING System
ro2.php.net VipNET
Russian Federation Russian Federation
ru.php.net Direct Internet
ru2.php.net Cronyx Plus LLC
ru3.php.net tsuren.net
Singapore Singapore
sg.php.net ezNetworking Solutions Pte. Ltd.
Slovakia Slovakia
sk.php.net Bentel
sk2.php.net Mediate s.r.o.
Slovenia Slovenia
si.php.net INSiDE Racunalnistvo
si2.php.net Oxxus Hosting
South Africa South Africa
za.php.net CSIR Mikomtek
za2.php.net Rhodes University Computer Users Society
Spain Spain
es.php.net GRN Serveis Telematics
es2.php.net RedIRIS
Sweden Sweden
se.php.net Chalmers Lindholmen
se2.php.net Burken.NU
Switzerland Switzerland
ch.php.net Laboratoire de Bases de Données
ch2.php.net benscom.com Ltd.
Taiwan Taiwan
tw.php.net TIENTI
tw2.php.net National Chiao-Tung University
Thailand Thailand
th.php.net THAIWEB.network
Turkey Turkey
tr.php.net Bilkent Sunsite
tr2.php.net proGEN Internet ve Bilisim Teknolojileri
Ukraine Ukraine
ua.php.net PACOnet
ua2.php.net Max Khaikin
United Kingdom United Kingdom
uk.php.net Kewlio.net Limited
uk2.php.net Camel Network
Yugoslavia Yugoslavia
yu.php.net Astrahosting Inc

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/

--- End Message ---
--- Begin Message ---
Johnny --

...and then Johnny Koh said...
% 
% I tried downloading the manual @ php.net but it just don't seems to connect.
% It keeps loading for a very long time.

It will take a while, all right; even loading it locally as a single HTML
file it takes quite a bit to load 8M.


% 
% Is there any other place I can get or any kind soul that can send it to my
% email? [EMAIL PROTECTED]

It gzips down to a bit under 1.5M; if the mirrors don't work for you, let
me know and I'll send you a copy.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Hi all, quick question. Whenever I try putting any flags with the any
of the sort functions, I get this error:

Warning: Wrong parameter count for natsort() in
/var/www/secure/travelrequest/handler.php on line 950


My sort call looks like this:

natsort($array, "SORT_STRING");


Running PHP v. 4.2.2-17.2 w/ apache v. 2.0.40-21.5


Any ideas?

Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--- End Message ---
--- Begin Message --- Jake McHenry wrote:

Hi all, quick question. Whenever I try putting any flags with the any
of the sort functions, I get this error:

Warning: Wrong parameter count for natsort() in
/var/www/secure/travelrequest/handler.php on line 950

My sort call looks like this:

natsort($array, "SORT_STRING");

natsort() only takes one parameter. The sort flags are used with sort() and are constants, so they shoudln't have double quotes around them.

sort($array,SORT_STRING);

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com


--- End Message ---
--- Begin Message --- It is not a php issue, it is more a configuration issue for your mail server, most of them use the .forward file to manage email forwarding. You can use the file functions (http://uk.php.net/manual/en/ref.filesystem.php) to read and write this file.

It should be fairly simple.

Start with

<?php
echo file_get_contents("/home/yourname/.forward");
?>

then read and write this file (it should contain your forwards already), assuming they are using sendmail like email server

You may have read/write permission errors, depending on how the server was configured.

Mike

Matt Palermo wrote:
I have a hosted website which uses CPanel.  I can login to CPanel and create
as many email forwarders as I want.  Is there a way I can write a PHP script
to manage these email forwarders?  For example, somebody registers on my
site and they want to be added to the for a certain email address (as an
email forwarder).  How would I write a script that could access this email
forwarders file and insert a new address to it (or delete one if that is the
case)?  Does anyone know if this can be done.  I am trying to use these mail
forwarders as a moch mailing list, so when an email is sent to a specific
address, it will automatically be distributed to everyone on the forwarding
list.  Please help if you have any ideas or suggestions.

Thanks,

Matt
http://sweetphp.com

--- End Message ---
--- Begin Message --- hi, i am able to create images in php (png, jpeg) in IE. when i try to save the image it gets saved to the directed path. when i try to open the saved document i get an error message or else the file opens but with a whole lot of text gibberish (stuff life division by zero , etc) this code is for a optimization proj and has some math in it.Kindly help,
CLive.
--- End Message ---
--- Begin Message --- I finally discovered the problem. There was extra whitespace after the php closing tag ?> that was being interpreted as part of the header. Removing the whitespace fixed the problem.

Peter

Peter Walter wrote:
Mike,

I hope you mean session_start().

Yes, I did. Getting a bit dyslexic nowadays.

Well, you would, because PHP would use the value from the PHPSESSID= URL parameter.

... except that on the second call, the url (as displayed by the browser) does not contain the PHPSESSID parameter, yet I am still able to retrieve the session variables correctly ...

My immediate reaction to this is that session.use_cookies must be set to 0 (or Off) in your php.ini (or equivalent). Have you checked this? If it looks correct, what does a phpinfo() page show?

php.ini contains the following settings:
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

In phpinfo(), the "local value" matches the "master value" for all entries, and match the entries in php.ini.

I appreciate that this issue isn't a big deal - but I had hoped to understand php well enough to tell the difference between a "bug" and a "feature". If it would help, I could send you the url for the page? (password protected)

Peter


Ford, Mike [LSS] wrote:

On 11 December 2003 18:01, Peter Walter wrote:



Mike,

Thanks for the additional explanation, and I understand the
sequence of events as you described. However,  please bear
with me a bit - the results I am getting do not quite match
your explanation. Let me clarify what I am doing:

I have a page (index.php) which starts out by calling
start_session(),


I hope you mean session_start().



then emits some html code containing some
form variables for search criteria. After the form variables,
I have a "submit" button that refers to index.php. Following
that, I have php logic that extracts the search criteria (if
set) from $HTTP_POST_VARS, performs a MySQL query, then
creates a table of results (if any); one of the table entries
contains a <a href= link to determine which row the user selected.

The first time I load the page, I assume the session is
created by start_session(), and the cookie is sent to the
browser. When I click on the "submit" button, the page is
reloaded - I assume with the session active - as per your
explanation. According tho the documentation I have read, the
second time the page is loaded, start_session() will simply
reuse the existing session parameters. At this point, the
browser should already have the cookie - if it did not, I
would not be able to retrieve the session variables


Well, you would, because PHP would use the value from the PHPSESSID= URL parameter.



- but the
url links in the table are still rewritten. I do not understand why.


My immediate reaction to this is that session.use_cookies must be set to 0 (or Off) in your php.ini (or equivalent). Have you checked this? If it looks correct, what does a phpinfo() page show?

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211




--- End Message ---
--- Begin Message ---
Hey,
thanks, didnt know that.
But is it possible to also add the start or stop parameter?

Cheers,
-Ryan

> You could just as easily
>
> <?php shell_exec("/path/to/script/scriptname start"); ?>
>
> Assuming that:
>
> 1) the webserver has rights to execute the script
> 2) you *must* execute this from the webserver
> 3) it's not a script to start/stop the webserver (since you obviously
> wouldn't be able to start it this way)
> 4) your php script is properly secured.
>
> Otherwise, just SSH in.  It's more secure and just as easy.
>
> Bob
>
> ----- Original Message ----- 
> From: "Ryan A" <[EMAIL PROTECTED]>
> To: "Jay Blanchard" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, December 12, 2003 2:21 PM
> Subject: Re: [PHP] (0/T) executeing script below public
>
>
> > Hey,
> > Thanks for replying.
> >
> > The server is on Linux and is remotely hosted, my local machine is on
> win2k
> > pro.
> >
> > A client wants me to set this up, I have setup the whole thing but this
> > needs to be started....
> >
> > you keep mentioning "command line", what command line?
> > You mean I should SSH in?
> >
> > (As you can see, am a newbie in shell scripts and ssh etc - kindly
excuse)
> >
> > Kindly reply.
> >
> > Thanks,
> > -Ryan
> >
> >
> >
> >
> >
> >
> >
> > [snip]
> > #!/bin/sh
> >
> > <scriptname> start
> > (or)
> > <scriptname> stop
> > [/snip]
> >
> > It is a shell script. They are usually placed in /usr/local/bin/ and
> > chmod'd to execute. To run it you type this at the command line;
> >
> > scriptname start
> > (or)
> > scriptname stop
> >
> > This script accepts one argument, either 'stop' or 'start'
> > [/snip]
> >
> > I should have added that you can run them from other folders using the
> > './scriptname arg' from the command line. Depends on OS
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>

--- End Message ---

Reply via email to