I had my script working beautifully on my box but when transferring to dev
server no such luck
Because we have an older version of php on the webservers, I had to get my
admin to change the php.ini on the
session.use_trans_id = 1
so that the SID wouldnt show in the URL. But I'm not sure if
.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: Mignon Hunter [EMAIL PROTECTED]
Date: Wed, 23 Mar 2005 11:20:24 -0600
To: php-general@lists.php.net
I had my admin change the
session.use_trans_sid = 1
to =0
no more sess ID in the URL - woo hoo
I guess this has to be 0 or in later versions 4.3.0
session.use_only_cookies = 1
*
Hello
I have tested this app on my machine but it doesnt do this - but
Got it - never mind
instead of
$new_array = array($line_split[0] = $line_split[1] );
it's
$new_array = array($line_split[0] , $line_split[1] );
But I'm still not sure how it works so well...
Ok I got this to work but I'm not sure how -- and am having trouble
Ok I got this to work but I'm not sure how -- and am having trouble
re-producing the data:
My script I have so far is:
$lines = file('test2.csv');
foreach ($lines as $line) {
$line_split = explode(,, $line);
if(!(empty($line_split[0]) ) ){
//echo I'm not empty;
Hello
I'm trying to manipulate a text(.csv) file using php. I've read the file and
can print each line,
but I need to write where column A is missing
ColumnAColumnB
RABC company
ABC company
ABC company
ABC company
O
Hello
I'm trying to manipulate a text(.csv) file using php. I've read the file and
can print each line,
but I need to write where column A is missing
ColumnAColumnB
RABC company
ABC company
ABC company
ABC company
O
Hello
I'm trying to manipulate a text(.csv) file using php. I've read the file and
can print each line,
but I need to write where column A is missing
ColumnAColumnB
RABC company
ABC company
ABC company
ABC company
O
Hi
This will be real simple for you guys. When I print_r my session vars
part of what get is:
[_SESSION] = Array
(
[cart] = shoppingcart Object
(
[contents] = Array
(
[37] = Array
Thanks Mike and Michael Smith.
It works !
On Thu, 2003-08-14 at 05:57, Ford, Mike [LSS] wrote:
On 13 August 2003 23:00, Mignon Hunter wrote:
Hi
This will be real simple for you guys. When I print_r my session
vars part of what get is:
[_SESSION] = Array
Ps
i'm a girl
On Thu, 2003-08-14 at 08:53, Mignon Hunter wrote:
Thanks Mike and Michael Smith.
It works !
On Thu, 2003-08-14 at 05:57, Ford, Mike [LSS] wrote:
On 13 August 2003 23:00, Mignon Hunter wrote:
Hi
This will be real simple for you guys. When I print_r my
Here's one to scratch your head.
I wrote a function to call an external program from my shopping cart
app:
get_new_tax($state, $zip, $new_city, $amt);
This function does a calculation and returns the results.
In the main function function tep_get_tax_rate(){
the code returns $tax_multiplier.
Hello all,
I am trying to execute a command on another server from my web
application.
I need to execute the command via ssh for security reasons. I have a
private key/passphrase installed for ssh so that I can run ssh without a
password.
The command:
ssh -i vertex [EMAIL PROTECTED] TX
, Jeff Harris wrote:
On Jul 9, 2003, Mignon Hunter claimed that:
|Hello all,
|
|I am trying to execute a command on another server from my web
|application.
|
|I need to execute the command via ssh for security reasons. I have a
|private key/passphrase installed for ssh so that I can run ssh
hello all,
I am trying to use either of the functions above to execute a compiled c
program on linux. The command line works with ./a.out (a.out being the
filename). Both my test.php and the exe are in the same directory.
I've tried combinations of all the following. Thx Mignon
?
echo $ret_var;
echo $var_array[0];
*/
//
passthru(/var/www/htdocs/vertex_test/a.out, $res);
echo $res;
?
--
Mignon Hunter
Web Master and Developer
Toshiba International
713.466.0277 x 3461
--
PHP General Mailing List (http://www.php.net
On my dev server the php.ini is set to log all errors and notices.
Isnt there a way to over ride this on a per script basis to output to
stdout (or my browser) ?
Thx
--
Mignon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, manual Error Handling and Logging Functions
On Friday 20 June 2003 02:11, Mignon Hunter wrote:
On my dev server the php.ini is set to log all errors and notices.
Isnt there a way to over ride this on a per script basis to output to
stdout (or my browser) ?
--
PHP General Mailing List
);
*
In that case what you want is shell_exec():
$output = shell_exec('/path/to/a.out'); // note the whole command line has
// to be enclosed in '' or .
echo $output;
On Thu, 2003-06-19 at 12:56, Mignon Hunter wrote:
Jason,
I'm only subscribed
/to/a.out');
--
--
Alberto Ferrer
[EMAIL PROTECTED]
http://www.barrahome.org
On Thu, 2003-06-19 at 13:55, Mignon Hunter wrote:
Still no out put here's my script test.php:
$output = shell_exec(/var/www/htdocs/vertex_test/a.out);
echo
hello,
I thought I posted this yesterday but accidentally posted to php-db.
Anyway, can any make a suggestion on how to connect to a c function from
a php app?
I have to connect to a sales tax calculation software. The function
is being written for me but I have to figure how to call it -
21 matches
Mail list logo