[PHP] Run exe file: Yes it is possible.

2003-10-21 Thread Gabriel Peugnet
It depends on the server configuration.
Tipicaly, the cgi-bin folder is used tu run scripts AND exe files.
You have to put the exe file in cgi-bin and chek if this folder have
permission tu run it. If not:  give it.
There are some sites that use exe instead of scripts to show pages. It gives
more security but dificulty on manteining the program.

Regards,
Gabriel.


Deependra B. Tandukar [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Dear all,

 Is there anyway that I can put .exe file on the web, and allow visitors
 only to run it, not download it.

 Regards,
 DT

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



[PHP] Links for PHP.

2003-10-16 Thread Gabriel Peugnet
Some body asked for links related to PHP. It's a good idea.
Here are some. If some one has more feel free to tell us.

PHP Hypertext Preprocessor
http://www.php.net/

Build Your Own Database Driven Website Using PHP  MySQL
http://www.sitepoint.com/books/phpmysql1/

FAQTs - Knowledge Base - faqts  Computers  Programming  Languages  PHP
http://www.faqts.com/knowledge_base/index.phtml/fid/51/

HotScripts.com  PHP
http://www.hotscripts.com/PHP/

MySQL Documentation
http://www.turbolift.com/mysql/

MySQL The World's Most Popular Open Source Database
http://www.mysql.com/

PHP-MySQL Tutorial
http://hotwired.lycos.com/webmonkey/99/21/index2a.html

PHP.org
http://www.phpbuilder.com/

phpguru.org
http://www.phpguru.org/

SoftwareFolder.com PHP Scripts
http://php.softwarefolder.com/

The PHP Forums  Home
http://forums.devnetwork.net/

The PHP Resource Index
http://php.resourceindex.com/

Zend Technologies - PHP tools for development, protection and scalability of
PHP applications
http://www.zend.com/

Gabriel.

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



[PHP] Re: php site

2003-10-16 Thread Gabriel Peugnet
Answering, I sent a message  Links for PHP.

Kenny Lai [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 hey, does anyone have any good links they use for their php references?

 i'd also like to know how most people approach coding php from an OOP
 standpoint

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



[PHP] Re: Array to string?

2003-10-15 Thread Gabriel Peugnet
When I needed it I could'n find it so I made my own.

function arrayToStr( $arr ){
$str = ;
while( true ){
$linea = current($arr);
$str = $str . $linea;

if( next($arr) == FALSE ){ break; }
$str = str . \n;// a newline separates each element.
}

return $str;
}

Gabriel.


Douglas Douglas [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hello everybody.

 Is there any built-in function to convert an array to
 string?

 Thanks.

 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com

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



[PHP] Makeing automatic tags for email and www.

2003-10-15 Thread Gabriel Peugnet
Does some body knows if there is a function that adds tags to a string when
it is an email or a web address?

I want to convert
[EMAIL PROTECTED]
into
(a href='mailto:[EMAIL PROTECTED]') [EMAIL PROTECTED] (/a)

(I sustitued tags with parenthesis)

It's a little tedious makeing the function.

Gabriel.

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



[PHP] Re: Makeing automatic tags for email and www.

2003-10-15 Thread Gabriel Peugnet
Thanks Eugene.

I'm afraid I didn't explain my self as I should.

What I want is this to be automaticaly generated in a text.
For example, in:

Some text some text some text some text [EMAIL PROTECTED] some text some text
some text and www.mywebpage.com some text some text some text
[EMAIL PROTECTED] some text some text some text .

I have to stract the pieces of string of mail and www to convert in links
and this is the tedious part.

Would be nice if were some smart function that recognizes it and make the
links, like Outlook Express (what I'm useing now) or other applications,
that automaticaly makes it.


Gabriel Peugnet [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Does some body knows if there is a function that adds tags to a string
when
 it is an email or a web address?

 I want to convert
 [EMAIL PROTECTED]
 into
 (a href='mailto:[EMAIL PROTECTED]') [EMAIL PROTECTED] (/a)

 (I sustitued tags with parenthesis)

 It's a little tedious makeing the function.

 Gabriel.

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



[PHP] Re: Include all functions and performance

2003-10-15 Thread Gabriel Peugnet
PHP will load the entire file and consume memory. It will also check the
sintax of the entire file. If your file grows to much it would affect the
speed of showing your pages and if it is very big, you could find the limit
of memory of PHP (8Mb by default).

The Zend engine makes an on the fly compilation before executing the
functions (see Zend engine in the manual) so it consumes time.

My recomendation should be to have a set of a few files with the functions
grouped by category or by frecuency of use.

Another inconvenient is that if you make a change in one function and by
mistake have a syntax error, all the scripts that use that included file
will crash until you fix it.

I think it's not a nice solution :(

Sorry,
Gabriel.


Terence [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Dear List,

 I have a library of functions which I was thinking of including all from
one
 file, in a kind of
 heirarchy. That way I can just include the one file in each php page and
 have all the functions
 available to me. (a kind of lazy approach I know)

 What I was wondering, if using the apache server, will this kind of
approach
 affect the performance
 of my pages, since obviously all functions won't be used for every page
 (perhaps just a couple).

 I know from Java that only the functions that are used in the code are
 included when compiling, but with
 php there's no compilation (i think).

 Good, bad or ugly?

 Thanks
 Terence

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



[PHP] Re: Passing variables between pages

2003-10-14 Thread Gabriel Peugnet
Like John said:

You can use:

In the second page:
$user = $_POST['username'];// sent by the first page
...
echo form ...
input type='hidden' name='username' value='$user'
...
/form;

So, when you submit the form, in the third page you will be able to get the
username.
$user = $_POST['username'];

Yo can do this in N number of pages. If you always pass and obtain the
variable via POST or GET no matter how much pages yo use. In the 20th page
you'll get the variable.



Rashini Jayasinghe [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]

Hi,

I want to pass a variable between three pages. I tried to get a username
from the first page through a form. Use that username in a select statement
in the second page to query a table.Everything is fine up to that point. now
I want to pass the same username to the third page where I have to use it to
select a table name by that username and it doesn't work. I tried
$_POST['username'] and the value is not passed to the third page. Is there a
way of doing this?
Please help.

Thank You.

Rashini

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



[PHP] Re: Pulling variables from a URL

2003-10-14 Thread Gabriel Peugnet
Every body have already gave you the answers.
Just one more thing:

the method you are useing is GET because you are passing variables in the
URL so use of $_POST doesn't work.

the only line you need is
$username = $_GET['username'];

after this you can do any thing with $username.

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



[PHP] Who knows all the Header attributes.

2003-10-14 Thread Gabriel Peugnet
Could some one tell me where can I find the documentation for the Hedear()
function?

The manual does not provide it but just some examples.

I know Header( Location: http... ), Header( Expires ... ).

But want to know about:
Content...
Content-Disposition
etc.

Thanks.
Gabriel.

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



Re: [PHP] Who knows all the Header attributes.

2003-10-14 Thread Gabriel Peugnet
Mike, the site you refered me has the information I was looking for.

Thank you very much.
Gabriel.


Mike Migurski [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Could some one tell me where can I find the documentation for the
 Hedear() function?
 
 The manual does not provide it but just some examples.

 Check the HTTP spec for a definitive listing:
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14

 -
 michal migurski- contact info and pgp key:
 sf/cahttp://mike.teczno.com/contact.html

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



[PHP] Thanks Chris.

2003-10-14 Thread Gabriel Peugnet
I see you are an authority in these matters.
I've seen the page you told me to.

Thank you so much.
Gabriel.


Chris Shiflett [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 --- Gabriel Peugnet [EMAIL PROTECTED] wrote:
  Could some one tell me where can I find the documentation for the
  Hedear() function?
 
  The manual does not provide it but just some examples.
 
  I know Header( Location: http... ), Header( Expires ... ).
 
  But want to know about:
  Content...
  Content-Disposition
  etc.

 Those are HTTP headers. Truly, you can send any header you want, but if
you
 want to learn about all of the valid ones, it requires an understanding of
 HTTP.

 shameless_plug

 The HTTP Developer's Handbook was written specifically for Web developers
and
 includes a complete reference to HTTP as well as many related topics such
as
 state and session management, SSL, etc. All of the examples are given in
PHP.

 You can read some sample chapters and get a bit more information from:

 http://httphandbook.org/

 /shameless_plug

 RFC 2616 contains about 80% of the specification. However, it is not very
 friendly to read, plus the 20% it doesn't include can be important:
cookies,
 authentication, etc.

 Hope that helps.

 Chris

 =
 My Blog
  http://shiflett.org/
 HTTP Developer's Handbook
  http://httphandbook.org/
 RAMP Training Courses
  http://www.nyphp.org/ramp

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