What's wrong ? I am using RH7.3. I manually compile the php and install
it before. But later I install using the rpm.
Thx for reply !
Content-type: text/html
PHP Warning: imap: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=0
PHPcompiled with
Hello,
I have a problem with php sessions.
I have a php file like:
...
...
I have done diferent proofs and I have seen that the problem is that when I put
include don't work sessions and if I left session it works. When I put all together it
prints in the browser the code from
when running the ./configure for PHP did you use --with-mysql
Adam
On Fri, 16 Aug 2002, Ryan wrote:
> What's wrong ? I am using RH7.3. I manually compile the php and install
> it before. But later I install using the rpm.
>
> Thx for reply !
>
>
> Content-type: text/html
preg_match('!]+>(.*)!Uis',$str,$regs[1]);
$everything_between_divs = $regs[1];
when calling preg_match just pass $regs as param and not $regs[1]
Elias
<[EMAIL PROTECTED]> wrote in message
000101c244c9$08401d50$86a96518@jumpy">news:000101c244c9$08401d50$86a96518@jumpy...
> Hi, I hope you can hel
by simple ways, you can do that:
$query = urlencode("your query string")
$result_string = join('', file(http://www.google.com/search?q=$query));
Elias
"Henry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all
>
> I would like to be able to get the resul
How and where can I add an alias and associate PHP with that alias?
Elias
"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You can set up php to run from console if it doesn't already, and add an
> alias to your mail server ("stocks") which w
Yes, I do use --with-mysql
now i am using the rpm version of php.
Adam Williams wrote:
> when running the ./configure for PHP did you use --with-mysql
>
> Adam
>
> On Fri, 16 Aug 2002, Ryan wrote:
>
>
>>What's wrong ? I am using RH7.3. I manually compile the php and ins
one of the solutions is not using fopen() instead use another class that is
able to post to pages and retrieve them.
check phpclasses.org
"Dallas Thunder" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How do I customize the User-Agent when using fopen() or
Thanks Miles.
But i'm not satisfied with your answer. I instinctly created indexes on
every field that I'm using w/ conditions.
But I feel that my script can be rewritten more efficiently using JOINTs or
other things.
Any site with reading material regarding how to index and make complex
queries
when I place date("h:i a") in a page on my server, and view it in a
browser, I am returned: "02:51 pm". According to the server itself,
though (logged in through ssh), using "date", it is 3:51. gmdate("h:i
a") returns the same 2:51 time. They are both one hour off from the
server time.
Any id
Hello,
In an MySQL table, I insert some records. Before each insert (just
before),
I do a "Select max() ..." and I increment the result by one, to give a
number (unique), and I have an auto_incremente field too.
I'd like to know if there is a mechanism in PHP, if several person do
the same thin
On Friday 16 August 2002 18:05, lallous wrote:
> But i'm not satisfied with your answer.
This is not the appropriate list for your question in the first place.
> I instinctly created indexes on
> every field that I'm using w/ conditions.
> But I feel that my script can be rewritten more effici
On Friday 16 August 2002 17:37, Christian Ista wrote:
> Hello,
>
> In an MySQL table, I insert some records. Before each insert (just
> before),
> I do a "Select max() ..." and I increment the result by one, to give a
> number (unique), and I have an auto_incremente field too.
Not sure why you wo
I have a page with a checkbox, when i submit to the next page the
variable $whatever (the checkboxes name.) will be "On" if its checked,
and it will be undefined if its not checked.
Shouldn't it be a empty string? and not undefined?
/José
--
PHP General Mailing List (http://www.php.net/)
To
On Friday 16 August 2002 17:24, Kae Verens wrote:
> when I place date("h:i a") in a page on my server, and view it in a
> browser, I am returned: "02:51 pm". According to the server itself,
> though (logged in through ssh), using "date", it is 3:51. gmdate("h:i
> a") returns the same 2:51 time. Th
On Friday 16 August 2002 17:54, José Jeria wrote:
> I have a page with a checkbox, when i submit to the next page the
> variable $whatever (the checkboxes name.) will be "On" if its checked,
> and it will be undefined if its not checked.
>
> Shouldn't it be a empty string? and not undefined?
That
Hi,
I have write a domain control function in php, the php function will working fine.
I have create a simpel form with 2 textboxes and 1 button, i will put in this fields a
domainname and the extention like yahoo com
if i click on the button, then we want to validate the domainname and t
Hmmm, then the book "Beginning PHP" from Wrox is wrong...
/J
Jason Wong wrote:
> On Friday 16 August 2002 17:54, José Jeria wrote:
>
>>I have a page with a checkbox, when i submit to the next page the
>>variable $whatever (the checkboxes name.) will be "On" if its checked,
>>and it will be unde
Hi,
I have write a domain control function in php, the php function will working fine.
I have create a simpel form with 2 textboxes and 1 button, i will put in this fields a
domainname and the extention like yahoo com
if i click on the button, then we want to validate the domainname and th
why do you think the session isn't working? If there is a run time error in
'file' then an error would be reported and the output terminated. If you
have error reporting off then you would expect to get eactly what you see.
Sounds like a problem inside 'file'.
Tim Ward
St Ives Di
May be the session is diable in the php.ini
Félix garcía renedo wrote:
> Hello,
> I have a problem with php sessions.
> I have a php file like:
>
> session_start();
> session_register('pagina');
> ?>
>
>
> ...
>
>
> include('file');
> ?>
> ...
>
>
> I have done diferent proofs a
This script will output 'testa.gif'
now how can i make it produce 'test1.gif' ?
if i replace the: '\1a\2' with '\11\2' it will understand to replace with
occurence number 11 !
How can i escape the 2nd '1' so it is considered as a string an not another
number.
Elias
--
PHP General Mailing
probably this will be faster?
$fn = str_replace(".gif", "1.gif", $fn);
Lallous wrote:
> $fn = 'test.gif';
>
> echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
>
> ?>
>
> This script will output 'testa.gif'
>
> now how can i make it produce 'test1.gif' ?
>
> if i replace the: '\1a\2' with
and if you are gonna append '1' for all extension,
try this:
echo preg_replace('/(\..+?)/', '1$1', $fn);
Lallous wrote:
> $fn = 'test.gif';
>
> echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
>
> ?>
>
> This script will output 'testa.gif'
>
> now how can i make it produce 'test1.gif' ?
>
On Friday 16 August 2002 19:49, lallous wrote:
> $fn = 'test.gif';
>
> echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
>
> ?>
>
> This script will output 'testa.gif'
>
> now how can i make it produce 'test1.gif' ?
>
> if i replace the: '\1a\2' with '\11\2' it will understand to replace with
>
This may be a silly question, but I'm used to being able to find PHP
functions to do whatever I want, but I can't find one to do this!
If I have an array like this:
[0] -> 'apple';
[1] -> 'pear';
[2] -> 'orange';
[3] -> 'apricot';
I know I can use in_array() to check whether, say, 'orange' is
On Friday 16 August 2002 19:50, Tim Fountain wrote:
> This may be a silly question, but I'm used to being able to find PHP
> functions to do whatever I want, but I can't find one to do this!
>
> If I have an array like this:
>
> [0] -> 'apple';
> [1] -> 'pear';
> [2] -> 'orange';
> [3] -> 'apricot
> From: Tim Fountain [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 7:51 AM
> Subject: [PHP] Array query - finding the key for a value
>
> This may be a silly question, but I'm used to being able to find PHP
> functions to do whatever I want, but I can't find one to do this!
>
> If
Hello,
Could you tell me if it possible to reload the current page when I
select a value in a drop down ?
On a page, I have 2 drop down, the content on the first one come from
the database. The content of the second one too (from database) but
depend of the first drop down value.
An idea to do
On Friday 16 August 2002 19:53, Christian Ista wrote:
> Hello,
>
> Could you tell me if it possible to reload the current page when I
> select a value in a drop down ?
>
> On a page, I have 2 drop down, the content on the first one come from
> the database. The content of the second one too (from
http://www.zend.com/zend/tut/drop-down.php
--
Julio Nobrega
Me empurraram pra chegar lá mais rápido!
http://www.inerciasensorial.com.br
"Christian Ista" <[EMAIL PROTECTED]> wrote in message
000201c2451b$94fe4300$c000a8c0@p3portable">news:000201c2451b$94fe4300$c000a8c0@p3portable...
> Hello,
>
>
Hi there.
You would need to use JavaScript for this, specifically an onChange( ) event
for
the select field(s).
Your JavaScript should basically reload the page once an option has been
selected from the first
select field, passing through a variable containing the value of the option
which has ju
> > This is a javascript thing. Try comp.lang.javascript... the only
> > thing u really need to know is that you have to send ALL
> the data to
> > the page with javascript, then effectively, it's a static HTML page.
> >
> > Justin French
There is an ariticle on Zend out there:
http://zend
Hi;
Here is a brief description of my problem:
There is a file called index.php in some directory. The guy who wrote this
file didn't bother creating another file where the functions are defined.
More precisely, there is a big switch statement in the file. Depending on
the outcome of the switch
James,
Actually the interpreter will evaluate the '\1'. '1' . '\2' into one string
before passing it to preg_replace
So it will yield up as I originally wrote it, and it won't work.
Elias
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Friday
Oh well,
I could have solved it w/ too many other methods, but how can I escape the
\{occurence} as in my case?
Elias
"B.C. Lance" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> and if you are gonna append '1' for all extension,
>
> try this:
> echo preg_rep
a more OO approach might be to use the Snoopy PHP class
(http://snoopy.sourceforge.net)
This will allow you to do GET/POST method requests on
URLS with query variables, ie:
POST
$snoopy = new Snoopy;
$submit_vars["q"] = [ form variables ];
$submit_url = "http://www.
hi guys i was wondering if there was anyway to have a progress bar for
uploading images ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi people,
As I understand it, object are unserialized into their former Class, if
that Class is in memory. That's right, right?
Well, consider the following code:
include_once("../config.inc.php");
include_once($WORKDIR."obj/foto.obj.php");
if($type == 1)
{
can do this:
$array = array('apple', 'pear', 'orange', 'apricot');
$array = array_flip($array);
$keyword = 'orange';
echo "found '$orange' @ index:" . $array[$keyword];
Don't use this method though! It makes your program slow!
Elias
"Tim Fountain" <[EMAIL PROTECTED]> wrote in message
[EMAI
Can I make a function private in PHP, so that it can only be called from
within an object of that class???
Just discovering the wonders of OO PHP... :-)
==
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3
Nope
On Fri, 16 Aug 2002, Richard Black wrote:
> Can I make a function private in PHP, so that it can only be called from
> within an object of that class???
>
> Just discovering the wonders of OO PHP... :-)
>
> ==
> Richard Black
> Systems Programmer, Dat
Hi there.
Not at the moment, but I think this is a feature of the new Zend engine 2,
currently in development.
Cheers
Scott
- Original Message -
From: "Richard Black" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 4:24 PM
Subject: [PHP] OO code a
Not currently, but this will be added in the Zend2 engine. You can find out
about this on the Zend website.
- Original Message -
From: "Richard Black" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 9:24 AM
Subject: [PHP] OO code and private functio
I have two pages, page one links to page two via a form button. The
browser does not accept cookies.
On page two I create a session variable with:
$_SESSION["id"] = 1;
But if I hit the back button to go back to page one $_SESSION["id"] is
not set. If I hit the reload button on page one it is
We have a client that has a form that submits to a payment processor to handle the cc
processing.
The visitor gets what he wants and then comes to a verification page on our clients
site. He
wants to buy it so he clicks the submit button and hes gone, to the payment processors
site. We
want
not yet (Zend engine 2.0 I believe has this) Currently the convention is to
name private functions _* (variables the same) This denotes to other coders
that you intended this to be a private function.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
F
Please CC me as I'm on digest:
--
Are there any libraries for data validation available? If one reads
papers like these:
http://www.nextgenss.com/papers/advanced_sql_injection.pdf
http://www.nextgenss.com/papers/more_advanced_sql_injection.pdf
It beco
HI
make ser youre using session_start() before performing any action on
sessions, also make sure you´re registering properly the variables.
-Mensaje original-
De: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 16 de agosto de 2002 9:43
Para: [EMAIL PROTECTED]
I'm finding myself in a strange situation. I am trying to build a a web
site that will use sessions and work even if a user decides not to
accept cookies.
So far the site design is working fine by using the trans-sid
functionality of PHP. But I have this on case where things break down.
1- us
Daniel Masson wrote:
>
> make ser youre using session_start() before performing any action on
> sessions, also make sure you´re registering properly the variables.
Did you see my PS at the end of my question?
> PS I have session.auto_start ON and enabled trans-sid
I don't need seesion_start()
I'm not very proficient with e-mail configuration, so if someone finds
I'm saying something wrong, don't think twice before correcting it.
AFAIK, you can create an alias typically in /etc/aliases - or
/etc/sendmail/aliases, as I've heard for newer versions of sendmail. In
any case, the file ha
"Dan McCullough" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> We have a client that has a form that submits to a payment processor to
handle the cc processing.
> The visitor gets what he wants and then comes to a verification page on
our clients site. He
>
Bogdan Stancescu wrote:
> Add a line reading
> stocks: | /usr/bin/php /path/to/your/script.php
Sorry, it should be
stocks: "| /usr/bin/php /path/to/your/script.php"
Also, first make sure php works from command line and check its location.
Bogdan
--
PHP General Mailing List (http://www.php.ne
Now, this may be more of an e-mail question than a PHP
question. For that, I apologize.
I'm having trouble with some HTML-based mail with PHP.
It's not the regular thing where I can't get it to use
the tags instead of just printing them. That part's
fine; it comes out HTML-based.
My problem is t
You're best bet would be to make an animated gif that looks like a progres
bar (or twirling icon or whatever).
Then when the users hits submit, "turn it on"... in the same way you do
image rollovers, etc...
Then it will spin until the form is submitted...
On Fri, 16 Aug 2002, electroteque wrote
Hi
I wanted to learn some new stuff and experiment with the PHP Java extension,
what are the possibilities, what's cool about it, what are you guys using it
for and where can i find some tutorials for it ? Had a look at php.net but
can't find much info suitable for a newbie to this particular ex
not entirely sure what you mean, but perhaps this is what you're after???
$sql = "SELECT * FROM tablename WHERE username='{$_SESSION['userid']}'";
Justin French
on 17/08/02 2:08 AM, Christian Ista ([EMAIL PROTECTED]) wrote:
> Hello,
>
> Is it possible to use a session variable in a query (my
On Wed, Aug 14, 2002 at 08:23:18AM +, Remon Redika wrote:
>
>
>
>
>
> $Namak = $namasa;
> $Namak = $Namak.$namadu;
> $Namak = $Namak.$namati;
Is that REALLY what you want to do? There are no spaces between the
names. Try:
$Namak = "$namsa $namadu $namati";
But, t
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jean-Christian Imbeault) wrote:
> How can I get around the problem of not having the SID in the URL of the
> first page to my site the user comes to? It kind of a chicken-or-the-egg
> problem ...
I kind of hate it when sites do this, but you c
Bet this would be perfect for combining Flash and PHP.
> -Original Message-
> From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 11:57 AM
> To: electroteque
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] Re: progress bar for uploading files
>
>
> You're best bet w
Sascha:
On Wed, Aug 14, 2002 at 04:06:39PM +0200, Sascha Braun wrote:
>
> Are there some ways of using a micropayment system together with PHP?
What do you mean by "micropayment?" Paying for small fees? How small are
you talking about?
> Maybe something where Customers can see the Amount o
Hello,
Is it possible to use a session variable in a query (mysql_query)
without passé by an temp variable ?
Bye
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I had a rather weird thought, but it is Friday after all :^]
How about setting a small IFRAME in the upload diaog box? Then you could do
a couple of things;
a.) Place a small animated GIF in the IFRAME that moves left to right or
from side to side until the upload completes.
2.) Use the GD libr
On Friday 16 August 2002 22:12, lallous wrote:
> Actually the interpreter will evaluate the '\1'. '1' . '\2' into one string
> before passing it to preg_replace
> So it will yield up as I originally wrote it, and it won't work.
Hmm, you're right. The interpreter is smarter than I thought :-/
--
Hey all, I need a little help with moving a file on the server after an
upload.
Our company site is hosted, so I don't have full access to the
configuration files, but I can do a PHP_info dump if you need more
clarification. Using 4.0.1pl2.
What I'm doing is uploading a file from a form, and
On 16 Aug 2002 at 23:40, electroteque wrote:
> hi guys i was wondering if there was anyway to have a progress bar for
> uploading images ?
TMTOWDI, but here is a way I did something similar. I was spidering remote sites and
to get user's data and store in a database and the user could not conti
Good idea but remember some people turn off javascript and cookies :)
Make your site as accessible as you can, using Jerry's suggestion is a good
idea and then accept some people will be bent on not being able to use your
site by disabling as much functionality in their browsers as they can or
th
By any chance, is page one the "entrance" page to your application?
I.e. is there a session id in either the query string of the page URL or
was there one passed to it via a POST?
Without cookies enabled, there is no way to allow users to use the back
button to go back to the entrance page while
Yeah, I'm scared...
Please excuse me but may I say that it seems like you've sent some wrong
info to the wrong mailing list?
I use PHP NOT ASP, I use MySQL or PostgreSQL or Oracle but NOT M$ SQL
Server. And IIS? Of course, some people use it (perhaps) because of some
unavoidable circumstances
On a unix box, you can supply the arguments to the sendmail command in
php.ini file, when you specify the sendmail path.
"Daren Cotter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> To recap, my problem is:
>
> I need some mailings sent immediately (confirmat
On Thursday 15 August 2002 23:50, David Buerer wrote:
> Because to my knowledge the limitation of a TEXT field is 64K. I need to
> store entire documents in the database which far exceed the 64K limitation.
> Given that criteria, the only option is to use blob fields which have an
> upper limit of
Upgraded to Apache2, and now most of my php scripts won't work. No error msg
att all, just that nothing happens.
Guess I missed some standard security setting, got any clues to this newbie?
Thanks
Björn Hilliges, Sweden.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
the problem is that i dont have access to php.ini :/
on a shared webhotel :(
regards
patrick
"Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Friday 16 August 2002 11:40, Pafo wrote:
> > nm, now it works,, forgot the silly ()
>
> Always set
i got my nice looking class like this:
RelicName : $this->RelicType : $this->RelicRealm :
$this->RelicOwner";
}
function CheckForPrint() {
if ($this->RelicName == "" || $this->RelicType == "" || $this->RelicRealm
== "" || $this->RelicOwner == "") {
return false;
} else {
return
It will be a while before Apache 2 is properly supported. Switch back to
Apache 1.3.x for now. We are working on it and PHP 4.3 should be
significantly better with Apache 2.
-Rasmus
On Fri, 16 Aug 2002, Björn Hilliges wrote:
> Upgraded to Apache2, and now most of my php scripts won't work. No
>Upgraded to Apache2, and now most of my php scripts won't work. No error msg
>att all, just that nothing happens.
>
>Guess I missed some standard security setting, got any clues to this newbie?
What does phpinfo() say?
What does "httpd -l" say?
--
PHP General Mailing List (http://www.php.
test
=
"Theres no such thing as a problem unless the servers are on fire!"
__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
PHP General Mailing List (
Hi all. For a universal form script I'm writing I want to store a 'Y' in a
table field if a checkbox is checked and an 'N' if it's not. The problem is
that when the form is posted if the checkbox is not checked the checkbox
variable is not passed. E.g.
If the checkbox is checked, I get $_P
hm...
this should work, notice the double quotes
echo preg_replace('/(.+?)(\..+?)/e', '"\1"."1"."\2"', $fn);
Lallous wrote:
> Oh well,
>
> I could have solved it w/ too many other methods, but how can I escape the
> \{occurence} as in my case?
>
--
PHP General Mailing List (http://www.php.
On Fri, 2002-08-16 at 19:24, David Yee wrote:
> Hi all. For a universal form script I'm writing I want to store a 'Y' in a
> table field if a checkbox is checked and an 'N' if it's not. The problem is
> that when the form is posted if the checkbox is not checked the checkbox
> variable is not pa
Does anyone know how to build the first_module example shown at Zend
(http://www.zend.com/apidoc/) ? I'd like to start coding extensions
(preferably not directly into the PHP binary because of my hosting
situation) but I just don't understand the explanation of compiling
them.
Any one know how?
I didn't see that, what a waste of paper
Randy
- Original Message -
From: "Edwin @" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 1:14 PM
Subject: Re: [PHP] SQL Injection/Data Balidation
> Yeah, I'm scared...
>
> Please excuse me b
I wanted to pass along the details of a contest that I thought you might
find interesting.
AlltheWeb is the public search engine of Fast Search & Transfer and
currently it is one of the largest search engines in the industry with over
2.1 billion pages in the web index. Recently, AlltheWeb.com a
Actually, I DID read the articles before I replied.
If you read it again, the basic problem is not about any "extended SQLServer
functionality"--it's about how ASP works AND how the database server was
configured AND how Window$ works.
Sorry, but the attacks mentioned CANNOT be done on any of
This wouldn't work for uploading files however since the long part of the
process is the act of uploading the file and until that completes your
"save.php" (or whatever) isn't called.
So in regards to file uploading it has to be done with Javascript. What
you do below is great for scripts that j
Oops! Sorry! I meant to say "apostrophe" and not "single quotes"...
And sorry 'bout this additional post...
Regards,
- E
>Actually, I DID read the articles before I replied.
>
>If you read it again, the basic problem is not about any "extended
>SQLServer functionality"--it's about how ASP wor
Hi folks,
I'm learning shell scripting via linux, and have written a script that creates the
core files necessary for a users website from a master set of files.
Works from the shell just fine (bash makethesite.sh username pathtoputfiles
pathtogetfiles)
Trying to execute this via php, and i
I have found a solution to my bulk email problem. I'm
posting my solution simply because I spent nearly a
year finding it, and I KNOW there's many other people
in my same situation.
First, a recap of my problem:
I need to send personalized emails to my member list
on a daily basis. I use PHP to
Kelly Meeks wrote:
>
> Hi folks,
>
> I'm learning shell scripting via linux, and have written a script that creates the
>core files necessary for a users website from a master set of files.
>
> Works from the shell just fine (bash makethesite.sh username pathtoputfiles
>pathtogetfiles)
>
> T
try something like:
$bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles
pathtogetfiles');
if that doesn't work can you use the system() function instead?
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Robert,
Thanks so much for the prompt reply.
Actually, I'm not trying to execute a php script, I'm trying to execute a
shell (bash) script.
This works at the command line:
bash makethesite.sh param1 param2 param3
This doesn't work via php
$bashresult=shell_exec('bash makethesite.sh param1 p
Kelly Meeks wrote:
>
> Hi Robert,
>
> Thanks so much for the prompt reply.
>
> Actually, I'm not trying to execute a php script, I'm trying to execute a
> shell (bash) script.
>
> This works at the command line:
> bash makethesite.sh param1 param2 param3
>
> This doesn't work via php
> $bashr
I have a bunch of files which need to be kept secure. I need to allow a user
access to them them based on a criteria which I can programmatically
determine.
My question, is how can I allow the user to download or view only one file
on my computer without allowthem to just enter the URL into their
David Buerer wrote:
>
> I have a bunch of files which need to be kept secure. I need to allow a user
> access to them them based on a criteria which I can programmatically
> determine.
>
> My question, is how can I allow the user to download or view only one file
> on my computer without allowth
Robert Cummings wrote:
>
> David Buerer wrote:
> >
> > I have a bunch of files which need to be kept secure. I need to allow a user
> > access to them them based on a criteria which I can programmatically
> > determine.
> >
> > My question, is how can I allow the user to download or view only one
Hi there !!!
I had the same problem once ...
This will save you !!
http://www.zend.com/zend/trick/tricks-august-2001.php
I have a bunch of files which need to be kept secure. I need to allow a
user access to them them based on a criteria which I can
programmatically determine.
My question, i
Thankyou Robert, THat is a great and easy way to do it.
What if I need to initiate a download to the user?
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 2:06 PM
To: David Buerer
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] secure files ac
David Buerer wrote:
>
> Thankyou Robert, THat is a great and easy way to do it.
>
> What if I need to initiate a download to the user?
If you set the mime type properly the browser will
automatically make it a download versus displaying it.
Cheers,
Rob.
--
.-.
| Robert Cumming
On Wed, Aug 14, 2002 at 10:04:46AM -0700, Gui Guy wrote:
>
> ...: SYSERR(nobody): Can't create transcript file ./xfg7E9Jlr03988:
> Permission denied
> : SYSERR(nobody): Cannot create ./dfg7E9Jlr03988: Permission denied
>
> Does it mean that php is trying to send mail from user nobody?
Good
1 - 100 of 143 matches
Mail list logo