[PHP] paste part of mp3 to over an mp3

2005-04-23 Thread QT
Dear Sirs,

Do you know any classes to paste some part of mp3 to over another mp3?

Best Regards

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



Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
thank you very much I will try

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
> > I found an exe file, can I run that ms-dos exe file on linux machine
with
> > php?
> >
> > I didn't try anything like this before
>
> First, check if it's really for ms-dos. Command line does not mean
> ms-dos, it can be a WIN32 command line binary.
>
> If it's really ms-dos executable, use dosemu. If it's WIN32 binary, try
> wine.

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



Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
I found an exe file, can I run that ms-dos exe file on linux machine with
php?

I didn't try anything like this before

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
> > thank you very much
> >
> > it works with mp3 good. But when I try with amr, it doenst work. I think
> > first amr files put some time limit and player stop at time limit. Now I
am
> > looking to find how can I convert mp3 to amr. Because I need to have amr
> > file at the end
>
> The mp3 file is technicaly broken, but fortunately for you mp3 files are
> self-synchronizing streams
>
> There is no php mp3 to amr converter, but search for something you can
> execute from php. google for "mp3 to amr" and "wav to amr"

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



Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
thank you very much

it works with mp3 good. But when I try with amr, it doenst work. I think
first amr files put some time limit and player stop at time limit. Now I am
looking to find how can I convert mp3 to amr. Because I need to have amr
file at the end

best regards
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
any idea how can I join two mp3 file with php
[/snip]

if(!function_exists('file_put_contents')) {
  function file_put_contents($filename, $data, $file_append = false) {
   $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
   if(!$fp) {
 trigger_error('file_put_contents cannot write in file.',
E_USER_ERROR);
 return;
   }
   fputs($fp, $data);
   fclose($fp);
  }
}

$bar = file_get_contents("2.mp3");
file_put_contents("1.mp3", $bar, true);

But I don't think that this will work the way that you would expect it
to.

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



[PHP] mp3 convert to amr

2005-04-19 Thread QT
dear sirs,

how can I convert mp3 to amr with php? any document source?

best regards

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



Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
hi,

is it easy like this, I tried and works good. Shouldn't I need to handle
something inside mp3? just easy to put each file together in the another
file?

Best Regards


"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
any idea how can I join two mp3 file with php
[/snip]

if(!function_exists('file_put_contents')) {
  function file_put_contents($filename, $data, $file_append = false) {
   $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
   if(!$fp) {
 trigger_error('file_put_contents cannot write in file.',
E_USER_ERROR);
 return;
   }
   fputs($fp, $data);
   fclose($fp);
  }
}

$bar = file_get_contents("2.mp3");
file_put_contents("1.mp3", $bar, true);

But I don't think that this will work the way that you would expect it
to.

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



[PHP] can I join two mp3 files with php

2005-04-19 Thread QT
dear sir,

any idea how can I join two mp3 file with php

best regards

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



[PHP] CURLOPT_RETURNTRANSFER

2005-02-17 Thread QT
dear Sirs,

I am running a script which is on the remote server. I do not want to wait
output of that script, when I run my script. Because some time, other script
takes a long time to complete job. I just want to run other script.

I used following curl option but still my script grap other script outputs.

curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 0);

What I should to do?



any idea

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



Re: [PHP] Re: which is best php editor?

2005-01-20 Thread QT
hi,

I am using editplus 2 as well. But don't you want to see functions in the
another window or some quick coompletion, when you write codes
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > What's the purpose of your coding?
> > Applications? Just some sort of dynamic code here n there? or Huge OOP
> > application with a team of programmers?
> >
> > I started with PHPEdit, Moved to Magna and then tried Dreaweaver to
> > communicate with designers. And then came Zend 2.5 n then Got shocked
> > with Zend 3.5 and now i'm on the Zend 4.0 Beta.  In all the cases I'd
> > recommand Zend if you wish to buy rather than using a free one.
> >
> > But it all depends on u & the amount of work you want to get done with
> > ur editor or IDE.
> >
> > HTH
> >
> > M.Saleh.E.G
> > 97150-4779817
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> Coding since about 4 years, never got a better editor than EditPlus 2. And
> sometime ago I was decided to get a very good Dev Env, no one did it, i
> was back to EditPlus in a week.

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



Re: [PHP] which is best php editor?

2005-01-16 Thread QT
hi Ville,

I just download jedit to my windows 2000. Wth my experience, jar contents
are working slow on windows. Same jedit works much slower than editplus on
my computer.

Are you using jedit with windows? can I increase performance?

Best regards

"Ville Mattila" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
> > Any suggestion for good php editor.
>
> My favourite PHP editor is jEdit, one of the best applications ever
> created. =) http://www.jedit.org/
>
> Ville
>

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



[PHP] which is best php editor?

2005-01-16 Thread QT
dear Sirs,

I try to use a couple of php editor, but I am not satisfied with them.

Any suggestion for good php editor.

best regards

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



Re: [PHP] whats happen fsockopen function?

2005-01-04 Thread QT
hi,

I clean all & signs, but still no result. This code was working perfect last
two years. I don't know what happen?




"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
> > Dear Sirs,
> >
> > my fsockopen function is not working, for last 1 day. And I get
following
> > error on log.
> >
> > Any idea why?
> >
> > PHP Warning:  Call-time pass-by-reference has been deprecated - argument
> > passed
>
> Get rid of the & signs in your code inside the fsockopen( & )
>
> --
> Like Music?
> http://l-i-e.com/artists.htm

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



[PHP] whats happen fsockopen function?

2005-01-04 Thread QT
Dear Sirs,

my fsockopen function is not working, for last 1 day. And I get following
error on log.

Any idea why?

PHP Warning:  Call-time pass-by-reference has been deprecated - argument
passed
by value;  If you would like to pass it by reference, modify the declaration
of
fsockopen().  If you would like to enable call-time pass-by-reference, you
can
set allow_call_time_pass_reference to true in your INI file.  However,
future
versions may not support this any longer.

Best Regards

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



[PHP] Re: can I compile php source

2004-12-22 Thread QT
hi,

can you suggest any good compiler?

thank you

"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Qt wrote:
> > hi,
> >
> > is there any way to compile php source to make binary file for
protecting
> > source code?
> >
> > best regards
>
> Yes.

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



[PHP] Any bright solution for my problem?

2004-12-22 Thread QT
Dear Sirs,

I have a database with thousands records. And every minutes I am selecting
50 rows from that database and send some data to another web url according
sellected 50 rows.

Whenever, my script finish job in one minute, I have no problem. Because
after each transaction, I am uptading one of the rows field as a "uesd".

BUT! if my script can not finish sending data to another url due to low
speed connection or such a problem. On the next minute, same script runs
automaticlay and sellecting another 50 rows which are not marked by "used".

In this case, some times these two running acripts are sellecting same rows
due to, old one haven't marked as a "used" for sellected rows.

Is there any way, to put flag or something like that, when sellecting rows
with php and mysql?

Best Regards

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



[PHP] Re: can I compile php source

2004-12-22 Thread QT
thanks all

"Qt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi,
>
> is there any way to compile php source to make binary file for protecting
> source code?
>
> best regards

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



[PHP] can I compile php source

2004-12-20 Thread QT
hi,

is there any way to compile php source to make binary file for protecting
source code?

best regards

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



[PHP] header problem for mobile browser

2004-10-19 Thread QT
Hi,

I want to make a php file for download a jad file. I am using following
script to let browser understand that jad file is coming and download it.

But I have very interesting problem. If user open browser and write correct
addres following script let the download file.

But if the user open browser and write wrong addres and get some error.
After write correct address, still getting same error.

I think following script can not reset the previos header and browser still
using previous header and bring back an error.

What should I do, for this problem, any idea

$SRC_FILE = $file;
 $download_size = filesize($SRC_FILE);
 $filename = basename($SRC_FILE);
 header("Content-Type: text/vnd.sun.j2me.app-descriptor");
 header("Content-Disposition: attachment; filename=$filename");
 header("Accept-Ranges: bytes");
 header("Content-Length: $download_size");
 @readfile($SRC_FILE);

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



[PHP] transfer coding

2004-09-21 Thread QT
Dear Sirs,

I gave a post problem and can't solve last a couple of weeks. Todays I come
some point but need to ask some thing.

I have a destination server and configured to receive some datas. Owner of
the server gives the same name of the different data. His idea is that let
the internet explorer encode same name data and send to his server with
following code;


  Data 1:
  


  Data 2:
  


  Data 3:
  


As you see, three field has the same name as "data"

When I use this html with internet explorer, I have no problem to post data.
But when I use following post method, I can not send data. I think I need to
do something more for message transfer coding such as use some charecter
between same data to let destination server understand. I try to find some
solution from HTTP Messages - RFC2616 but no result.

Any idea?

$str = "data=$data1|$data2|$data3";

$p = "POST /httppp/servlet/ppp HTTP/1.0\r\n";
  $p.= "Host: 152.31.228.206\r\n";
  $p.= "Content-type: application/x-www-form-urlencoded\r\n";
  //$p .= "\r\n"; //erorr
  $p.= "Content-length: $len\r\n";
  $p.= "\r\n";
  $p.= "$str\r\n";
 // $p.= "\r\n";
$server = "152.31.228.206";
$connection_timeout = 10;
$fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);

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



[PHP] Re: how to post data to java servlet

2004-09-19 Thread QT
hi,

And I just realize that if we use text/plain instead of
application/x-www-form-urlencoded; gives error. When I use
application/x-www-form-urlencoded no problem to send single data

"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> > $str = "DATA=abc&DATA=123&DATA=xxx"
> I believe you should encode the string with
http://www.php.net/rawurlencode
> but make sure u don't encode the & and = signs.
> >
> >   $len = strlen($str);
> >
> > $p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
> >   $p.= "Host: 123.31.228.206\r\n";
> >   $p.= "Content-type: application/x-www-form-urlencoded\r\n";
> I think you the Content-Type here is wrong, since you don't encode your
> string to match the content type. Perhaps text/plain might do it.
> >   $p.= "Content-length: $len\n\n";
> here there should be another line
>  $p .= "\r\n";
> here the \n\n should be \r\n
> >   $p.= "$str\n";
> here \n should be \r\n
> >   $p.= "\r\n";
> the above line should not exist
> > $server = "123.31.228.206";
> > $connection_timeout = 10;
> > $fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);
> >
> >   fputs ($fp,$p);
> > $recdata = "";
> > while (!feof($fp))
> >  {
> >   $recdata .= fgets ($fp,128);
> >  }
> >   fclose ($fp);
> >
> What is the response from the server ?
>
> Hope this helps,
> Catalin

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



[PHP] Re: how to post data to java servlet

2004-09-19 Thread QT
Hi,

When I send only one data such as

$str = "DATA=abc";

it is working fine. So that I think, I do not need to use rawurlencode.

I made folowing change according your post; again same, when I post only one
data field, it works fine. But when use three of them, server comes with
error. I think server only receive third one.

Some body told me send data in the message body. Any idea how can we do it?

Best Regads

 $len = strlen($str);

$p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
  $p.= "Host: 217.31.228.206\r\n";
  $p.= "Content-type: text/plain\r\n";
  $p .= "\r\n";
  $p.= "Content-length: $len\r\n";
  $p.= "\r\n";
  $p.= "$str\r\n";
 // $p.= "\r\n";

"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> > $str = "DATA=abc&DATA=123&DATA=xxx"
> I believe you should encode the string with
http://www.php.net/rawurlencode
> but make sure u don't encode the & and = signs.
> >
> >   $len = strlen($str);
> >
> > $p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
> >   $p.= "Host: 123.31.228.206\r\n";
> >   $p.= "Content-type: application/x-www-form-urlencoded\r\n";
> I think you the Content-Type here is wrong, since you don't encode your
> string to match the content type. Perhaps text/plain might do it.
> >   $p.= "Content-length: $len\n\n";
> here there should be another line
>  $p .= "\r\n";
> here the \n\n should be \r\n
> >   $p.= "$str\n";
> here \n should be \r\n
> >   $p.= "\r\n";
> the above line should not exist
> > $server = "123.31.228.206";
> > $connection_timeout = 10;
> > $fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);
> >
> >   fputs ($fp,$p);
> > $recdata = "";
> > while (!feof($fp))
> >  {
> >   $recdata .= fgets ($fp,128);
> >  }
> >   fclose ($fp);
> >
> What is the response from the server ?
>
> Hope this helps,
> Catalin

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



[PHP] how to post data to java servlet

2004-09-19 Thread QT
Dear Sirs,

I need to post 3 string data to destination adres. But I see first time, the
name of the variables are same such as DATA. I ask the destination ovner is
there any error. Should be the form fields name such as DATA1, DATA2 and
DATA3.

According him, his form is working fine and fields are concenated fields.

Then I try to post with following string; but I haven't succed to transfer
my string data to other side. What should I do?


$str = "DATA=abc&DATA=123&DATA=xxx"

  $len = strlen($str);

$p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
  $p.= "Host: 123.31.228.206\r\n";
  $p.= "Content-type: application/x-www-form-urlencoded\r\n";
  $p.= "Content-length: $len\n\n";
  $p.= "$str\n";
  $p.= "\r\n";
$server = "123.31.228.206";
$connection_timeout = 10;
$fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);

  fputs ($fp,$p);
$recdata = "";
while (!feof($fp))
 {
  $recdata .= fgets ($fp,128);
 }
  fclose ($fp);


One of the friend, said I should send data on body of message. But I do not
understand what his mean with body of the message.

Best Regards

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



Re: [PHP] very interesting post problem

2004-09-18 Thread QT
Thank you,

But I don't understand what you mean with body of the post message. Would
you explain more or to give an example.

Best Regards

"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
>
> >Dear Sirs,
> >
> >I need to post 3 string data to destination adres. But I see first time,
the
> >name of the variables are same such as DATA. I ask the destination ovner
is
> >there any error. Should be the form fields name such as DATA1, DATA2 and
> >DATA3.
> >
> >
> You appear to be posting to a servlet and according to my understanding
> the following will be collapsed.
>
> >
> >$str = "DATA=abc&DATA=123&DATA=xxx"
> >
> >
> Ie only DATA=xxx will be visible to the servlet
>
> >  $len = strlen($str);
> >
> >$p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
> >
> >
> But you are using post. If you add the DATA items to the body of the
> post message they will be individually accessible by the servlet.
>
>
> --
> 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 128 KB | with progress bar.

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



[PHP] very interesting post problem

2004-09-17 Thread QT
Dear Sirs,

I need to post 3 string data to destination adres. But I see first time, the
name of the variables are same such as DATA. I ask the destination ovner is
there any error. Should be the form fields name such as DATA1, DATA2 and
DATA3.

According him, his form is working fine and fields are concenated fields.

Then I try to post with following string; but I haven't succed to transfer
my string data to other side. What should I do?


$str = "DATA=abc&DATA=123&DATA=xxx"

  $len = strlen($str);

$p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
  $p.= "Host: 123.31.228.206\r\n";
  $p.= "Content-type: application/x-www-form-urlencoded\r\n";
  $p.= "Content-length: $len\n\n";
  $p.= "$str\n";
  $p.= "\r\n";
$server = "123.31.228.206";
$connection_timeout = 10;
$fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);

  fputs ($fp,$p);
$recdata = "";
while (!feof($fp))
 {
  $recdata .= fgets ($fp,128);
 }
  fclose ($fp);

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



[PHP] Re: post file from one server to other

2004-08-24 Thread QT
thank you but I do not need display, I need to post other server. And other
server is waiting as a binary file.

"Ustimenko Alexander" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> see php.net/base64_encode user comments
>
> in POST protocol all content must send in, as i memorize,
> application/x-www-urlencoded form . then try combination like
>
>

> ==
>
> guy at bhaktiandvedanta dot com (01-Oct-2002 11:00)
> You can use base64_encode to transfer image file into string text and then
> display them. I used this to store my images in a database and display
them
> form there. First I open the files using fread, encoded the result, and
> stored that result in the database. Useful for creating random images.
> image.php:
>  header(" Content-Type: image/jpeg");
> header(" Content-Disposition: inline");
> $sql = "SELECT data FROM image where name='".$img."'";
> $result = mysql_query($sql);
> $row = mysql_fetch_row($result);
> $image = $row[0];
> echo base64_decode($image);
> ?>
> And in the html file you put:
> 
> Guy Laor
>
>

> ==
>
>
> "Qt" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
> news:[EMAIL PROTECTED]
> > dear Sirs,
> >
> > I have a database with binary file. I want to post that file from my
> server
> > to another one with posting method. I have no problem to post any text
> data
> > but I can not post binary data such as picture.jpe.
> >
> > Where can I find some solution about this
> >
> > Best Regards

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



[PHP] Re: post file from one server to other

2004-08-24 Thread QT
I checked the curl but I have same problem; I have to say file type to other
server with some method. I couldn't find that method:


"Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Qt <[EMAIL PROTECTED]>:
> > I have a database with binary file. I want to post that file from my
server
> > to another one with posting method. I have no problem to post any text
data
> > but I can not post binary data such as picture.jpe.
> >
> > Where can I find some solution about this
>
> Look into PHP's cURL functions; these should allow you to post a binary
> file.
>
> --
> Matthew Weier O'Phinney   | WEBSITES:
> Webmaster and IT Specialist   | http://www.garden.org
> National Gardening Association| http://www.kidsgardening.com
> 802-863-5251 x156 | http://nationalgardenmonth.org
> mailto:[EMAIL PROTECTED] | http://vermontbotanical.org

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



[PHP] post file from one server to other

2004-08-24 Thread QT
dear Sirs,

I have a database with binary file. I want to post that file from my server
to another one with posting method. I have no problem to post any text data
but I can not post binary data such as picture.jpe.

Where can I find some solution about this

Best Regards

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



[PHP] Re: I don't want to use include

2004-06-23 Thread QT
Dear sirs,

Actually I am using virtual server and I think I have no write to use
crontab/ But this methods become to me interesting. I will try to learn more
about how to use crontab and where can I find that in my virtual server?

If I use include in my script, I need to wait result of included script and
it takes some time because included script should connect one of the my
other server and write some data there for backup reason. Actually this
backup reason is not so important to slow my main script. Thats why I don't
want to result of the backup writing.

"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Qt wrote:
>
> > Dear Sirs,
> >
> > When I use include, my script is waiting included script results. But I
just
> > want to run another local script without wait result.
> >
> > Which command I should to use?
> >
> >
> > Best Regards
>
> Are you hoping to set up a task as part of a batch for later processing?
>   There are several ways you could do this.  You can set up crontab /
> scheduled tasks to run a script every so often.  Then just make sure the
> script has a datafile / directory that can run all of the tasks at the
> scheduled time.
>
> If this isn't what you're trying to do, leave a message here and give us
> a better idea of why you want to run the script without waiting and what
> you intend to do with the result of the "included" script.
>
> Jason

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



[PHP] I don't want to use include

2004-06-22 Thread QT
Dear Sirs,

When I use include, my script is waiting included script results. But I just
want to run another local script without wait result.

Which command I should to use?


Best Regards

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



[PHP] small and big letter in WHERE statement

2004-06-14 Thread QT
Dear Sirs,

When I use where statement, I see that there is no meaning small and big
letter. Without looking small caps or big, result comes back. But I want to
match only small letters. How can I do that?

Best REgards

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



Re: [PHP] what is the best idea to make mirror for mysql database

2004-03-22 Thread QT
do you know best mysql newsgroup address?

"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> QT wrote:
> > Dear Sirs,
> >
> > I have a web site which is keeping user data in mysql. I am afraiding
that
> > to collapse of existing server without my control.
> >
> > I want to use another server to keep in standby and I want to set new
server
> > DNS as a third and forth server.
> >
> > As far as I know if primary and secondary server will not work, internic
> > divert to third and forth server.
> >
> > But I need to keep new server mysql database refreshed. Where can I find
> > best idea to make such a mirror with my existing server and new server?
>
> This is a PHP list. You need to ask on a MySQL list.

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



[PHP] what is the best idea to make mirror for mysql database

2004-03-22 Thread QT
Dear Sirs,

I have a web site which is keeping user data in mysql. I am afraiding that
to collapse of existing server without my control.

I want to use another server to keep in standby and I want to set new server
DNS as a third and forth server.

As far as I know if primary and secondary server will not work, internic
divert to third and forth server.

But I need to keep new server mysql database refreshed. Where can I find
best idea to make such a mirror with my existing server and new server?

Best Regards

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



[PHP] gd installation problem

2004-03-13 Thread QT
dear Sirs,

I did what says in
http://www.php.net/manual/en/install.windows.php#Installation of Windows
extensions

but still I can not run php_gd2.dll extensions on win2000

where can I find more solutions about this

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



[PHP] image header problem

2004-03-09 Thread qt
Dear Sirs,

When I am using following codes, I am gettinh "Cannot modify header
information - headers already sent by " error. What should I do?

header ("Content-type: image/png");
$im = @imagecreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestring ($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng ($im);

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



Re: [PHP] Certificate failure for (IMAP)

2003-11-23 Thread QT
Dear Jason,

I try your advise which is imap open sample like follows and I get;

Warning: imap_open(): Couldn't open stream {mail.smsavantaj.com:110/pop3



$mbox = imap_open ("{mail.test.com:110}", "[EMAIL PROTECTED]", "1234");

echo "Mailboxes\n";
$folders = imap_listmailbox ($mbox, "{mail.smsavantaj.com:110}", "*");

if ($folders == false) {
echo "Call failed\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."\n";
}
}

echo "Headers in INBOX\n";
$headers = imap_headers ($mbox);

if ($headers == false) {
echo "Call failed\n";
} else {
while (list ($key,$val) = each ($headers)) {
echo $val."\n";
}
}

imap_close($mbox);


"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday 23 November 2003 18:49, QT wrote:
>
> > I try to connect to email inbox via IMAP but I am getting folowing
error:
> >
> > Certificate failure for  xx self signed certificate:
> > /C=--/ST=SomeState/L=SomeCity
>
> What code are you using? And have you studied the examples for
imap_open()?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> 17. ...and if we just swap these two disc controllers like _this_...
>
> --Top 100 things you don't want the sysadmin to say
> */

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



Re: [PHP] Certificate failure for (IMAP)

2003-11-23 Thread QT
Dear Jason,

I am using following code;

require "classes.php";

$u = $_GET['u'];
$p = $_GET['p'];
$uex = explode("@", $u);
$u = $uex[0];
$domain = $uex[1];

require "vars.php";

$MainSettings = new GlobalInit();
$TransIDEnabled = $MainSettings->INIGet('session.use_trans_sid');

session_start();
if ((!isset($_SESSION['sess_u'])) && (!isset($_SESSION['sess_p']))) {
 $newlogin = 1;
 $_SESSION['sess_u'] = $u;
 $_SESSION['sess_p'] = $p;
 $newsession['sess_u'] = $u;
 $newsession['sess_p'] = $p;

}
else {
 $newsession = $_SESSION;
}

$IMAPConnection = new WM_IMAPConnection(
 $newsession,
 $servertype,
 $IMAPPort,
 $defaultIMAP,
 $WAPimapserver
 );

$OutputWML = new SetWML();

echo ("
\n");

$OutputWML->SetHead();

echo ("\n");

$OutputWML->SetCard();

$mailbox = $IMAPConnection->WM_IMAPConnect();

if (!$mailbox) {
 $servererrors = implode("\n", $IMAPConnection->_mailboxerror);
 if (strstr($servererrors, "invalid remote specification")) {
  $servererrors .= "It's possible that this server does not
support this protocol";
 }

 echo ("\n");
 echo ("Error: Sorry your login failed.  Your server reported:
$servererrors\n");
 echo ("\n");
 exit;
}

$numberofmessages = $IMAPConnection->WM_IMAPNumMessages2();

echo ("W-mail lite\n");
echo ("SessAppend($TransIDEnabled, 1);
echo ("\">INBOX " . $numberofmessages->Nmsgs . " (" .
$numberofmessages->Recent . " new)\n");
echo ("SessAppend($TransIDEnabled, 0);
echo ("\">Exit\n");

$IMAPConnection->WM_IMAPClose();

echo ("\n");


"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday 23 November 2003 18:49, QT wrote:
>
> > I try to connect to email inbox via IMAP but I am getting folowing
error:
> >
> > Certificate failure for  xx self signed certificate:
> > /C=--/ST=SomeState/L=SomeCity
>
> What code are you using? And have you studied the examples for
imap_open()?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> 17. ...and if we just swap these two disc controllers like _this_...
>
> --Top 100 things you don't want the sysadmin to say
> */

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



[PHP] Certificate failure for (IMAP)

2003-11-22 Thread QT
Dear Sirs,

I try to connect to email inbox via IMAP but I am getting folowing error:

Certificate failure for  xx self signed certificate:
/C=--/ST=SomeState/L=SomeCity

Any idea what is it mean?

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



[PHP] Re: get some part of text

2003-11-14 Thread QT
dear Kim,

Thanks for your clever soltion but;

If string will have another errorCode before 'job_resp errorCode="
It will use first one value.

What can we do better than this one?


"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You could ofcourse to the "easyway out" splitting, hehe.
>
> example :
> $yourstring = 'job_resp errorCode="4194337" description="Originator you"';
> $temp = explode('errorCode="',$yourstring);
> $temp2=explode('"',$temp[0]);
> echo $temp2[0];
>
> Voila!
>
> Should always work, aslong as there there are always " around the text.
>
> --
> Kim Steinhaug
> ---
> There are 10 types of people when it comes to binary numbers:
> those who understand them, and those who don't.
> ---
>
>
> "Qt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > dear Sirs,
> >
> > I have this string;
> >
> > job_resp errorCode="4194337" description="Originator you"
> >
> > I need to take only errorCode value from this string. I am thinking and
> > thinking and can not find how to to. I can split with "=" but allways
> > erroCode place is changing in the string.
> >
> > Any idea
> >
> > Best Regards

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



[PHP] Re: get some part of text

2003-11-14 Thread QT
I can not understand very well,

shoul I write something like that

$NewError = /errorCode=\"([~\"]+)\"/;


"Rob Adams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try a regular expression.
>
> /errorCode=\"([~\"]+)\"/
>
> I'm not good at that kind of syntax, but something very similar to that
> should work.
>
>   -- Rob
>
>
>
> "Qt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > dear Sirs,
> >
> > I have this string;
> >
> > job_resp errorCode="4194337" description="Originator you"
> >
> > I need to take only errorCode value from this string. I am thinking and
> > thinking and can not find how to to. I can split with "=" but allways
> > erroCode place is changing in the string.
> >
> > Any idea
> >
> > Best Regards

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



[PHP] get some part of text

2003-11-14 Thread QT
dear Sirs,

I have this string;

job_resp errorCode="4194337" description="Originator you"

I need to take only errorCode value from this string. I am thinking and
thinking and can not find how to to. I can split with "=" but allways
erroCode place is changing in the string.

Any idea

Best Regards

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



[PHP] Re: get method http 1.1 eror

2003-11-12 Thread QT
Thanks all very usefull


"Qt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear Sirs,
>
> I am using following method for GET but I am getting this error from
server;
>
> HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date:
Tue,
> 11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close
>
>  $fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30);
> if (!$fp) {
> echo "$errstr ($errno)\n";
> } else {
> fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
> while (!feof($fp)) {
> echo fgets ($fp,128);
> }
> fclose ($fp);
> }
> ?>What should I do? I can't find any solutionBest Regards
>

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



[PHP] get method http 1.1 eror

2003-11-11 Thread QT
Dear Sirs,

I am using following method for GET but I am getting this error from server;

HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue,
11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close

\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
?>What should I do? I can't find any solutionBest Regards

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



[PHP] Re: post xml file

2003-03-03 Thread qt
Dear Sirs,

I try to post xml file with following script;

Until today I was using following script for http post. But now I shoul post
https. When I changing HTTP to HTTPS, I am getting this error

Bad Request
HTTP/1.1 400 Bad Request Date: Mon, 03 Mar 2003 21:07:18 GMT Server:
Apache/1.3.27 (Unix) Connection: close Content-Type: text/html;
charset=iso-8859-1

Any idea, am I doing right to use following method to post xml file. And why
I can not post https?

---

$str = "xml markuped text.";

  $len = strlen($str);

$p = "POST /servlet/com.oksijen.bulkmessaging.xml.SmsToMany
HTTP/1.1\r\n";
  $p.= "Host: 212.65.135.163 \r\n";
  $p.= "Content-type: application/x-www-form-urlencoded\r\n";
  $p.= "Content-length: $len\n\n";
  $p.= "$str\n";
  $p.= "\r\n";
$server = "212.65.135.163";
$connection_timeout = 10;
$fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);

  fputs ($fp,$p);
$recdata = "";
while (!feof($fp))
 {
  $recdata .= fgets ($fp,128);
print "$recdata";
 }
  fclose ($fp);

$sonuc = trim(substr($recdata,-19));

$pos = 0;
$pos = strpos($recdata, "Message Failed");



"Qt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear Sirs,
>
> I am trying to post a xml file to following http. But I can not. where can
I
> find some source to read.
>
> https://xxx.xxx.xxx.xx/servlet/com.oks.buing.xml.detdrd
>
> Any help welcome
>
>



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



[PHP] post xml file

2003-03-03 Thread qt
Dear Sirs,

I am trying to post a xml file to following http. But I can not. where can I
find some source to read.

https://xxx.xxx.xxx.xx/servlet/com.oks.buing.xml.detdrd

Any help welcome



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



[PHP] xml file posting

2003-03-03 Thread qt
Dear Sirs,

I am trying to post xml file to http address but I mixed up all. Any source
to read this item.

I can not realize that shoul I write the file on the server before or I can
send without writing.

Best Regards



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



Re: [PHP] post xml

2003-03-03 Thread qt
Dear Sirs,

I am trying to post xml file to http address but no result. I saw your
script at the below but I can not understand How can send file? Can you help

Best Regards


"Mincu Alexandru" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> yes you can connect to the server from your PHP script and send a post
> request .. here is a function that would help:
>
> --- PHP --
>
> function http_post($server, $port, $url, $vars) {
> // example:
> //  http_post(
> //  "www.fat.com",
> //  80,
> //  "/weightloss.pl",
> //  array("name" => "obese bob", "age" => "20")
> //  );
>
> $urlencoded = "";
> while (list($key,$value) = each($vars))
> $urlencoded.= urlencode($key) . "=" . urlencode($value) . "&";
> $urlencoded = substr($urlencoded,0,-1);
> $content_length = strlen($urlencoded);
> $headers = "POST $url HTTP/1.1
> Accept:  text/plain, text/html, text/xml, image/gif, image/jpeg,
> image/png, image/bmp
> Accept-Charset: UTF-8
> Accept-Language: en
> Content-Length: $content_length
> Cache-Control: no-cache
> Content-Type: application/x-www-form-urlencoded
> Host:  $server
> User-Agent: Panasonic-GAD67/1.0 UP.Browser/5.0.3.5 (GUI)
> Connection: Keep-Alive
>
> ";
> $fp = fsockopen($server, $port, $errno, $errstr);
> if (!$fp) {
> return false;
> }
> fputs($fp, $headers);
> fputs($fp, $urlencoded);
>
> $ret = "";
> while (!feof($fp))
> $ret.= fgets($fp, 1024);
> fclose($fp);
> return $ret;
> }
>
> --- /PHP ---
>
> You can change the headers if you like ...
>
> Hope it helps.
> --
> Mincu Alexandru intelinet.ro
> Tel:+4 0745 369719 +4 021 3140021
> www.intelinet.ro [EMAIL PROTECTED]
>
>



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



[PHP] email pipe

2003-03-01 Thread qt
Dear Sirs,

I wa using

my @InBody = ;

To get data from email after piping. I am not sure that what I should use to
have same result with php?

I just want to have email' s data into my php script to handle.

Best Regards



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



[PHP] forward to a html file

2003-02-22 Thread qt
Dear Sirs,

I need forward a html file in my php.

If I use include, it comes a part of .php result. In the navigation window
shows that myscript.php

But I want to show that destination.html.

I can not find good procedure in the manual, can you help; how can I do?

Best Regards



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



Re: [PHP] Re: date calculation

2003-02-16 Thread qt
No I am not using msql


"Olinux" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If you're using a database, it may be able to take
> care of this for you. If you're using mysql:
>
> 6.3.4 Date and Time Functions
>
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Dat
e_and_time_functions
>
> olinux
>
>
> --- Fred Merritt <[EMAIL PROTECTED]> wrote:
> > Qt,
> > The easiest way is to convert your dates into a
> > serial day number(i.e.
> > the number of days that have elapsed between your
> > date, and some
> > arbitrary date in the dim and distant past - I think
> > PHP uses 25th
> > November, -4714).  There are some calendar functions
> > in php that will do
> > this for you.  Once you have your dates as a numeric
> > offset, you can
> > subtract them to get a the number of days between
> > the dates, or you can
> > add or subtract a number of days to get a new
> > offset.  Once you have the
> > new offset, there are reverse calendar functions in
> > php, to convert your
> > new offset back to a calendar date.
> >
> > Check out the functions GregorianToJD(), and
> > JDToGregorian(), in the
> > Calendar functions of the PHP manual.  If you do not
> > have access to the
> > calendar functions in your version of php, there are
> > also a couple of
> > examples how to do one of the conversions written in
> > PHP, in the user
> > contributed notes of the manual.  There are also
> > many published articles
> > describing algorithms on how to do this.  I can
> > remember implementing
> > these functions in 1977(Not in PHP of course), from
> > an article published
> > in the journal of the ACM, in 1963.
> >
> > Hope this helps. . . Fred
> >
> > Qt wrote:
> > > Dear Sirs,
> > >
> > > How can I add or subtract two date easily. Is
> > therea any lib or function
> > > about this. I can not find any easy way in the
> > manual
> > >
> > > Best Regards
> > >
>
> __
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com



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




Re: [PHP] date calculation

2003-02-16 Thread qt
Dear Stephen,

Good clue!!

Is it working allways without problem such as 29 feb?

And one more hel how can I write "1 2 2003" instead of  "1 february 2003"

I wrote but directly but doesn' t work

thanks

"Stephen Willcock" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try:
>
> $today = strtotime ("1 february 2003");
> $enddate = strtotime ("2 february 2003");
> $diff = $enddate - $today;
>
> Should give you a clue!
>
> SW
>
>
> "Qt" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Dear Kevin,
> >
> > I used timestamp allready as following;
> >
> > $today = strtotime ("1 february 2003");
> > $enddate = strtotime ("1 march 2003");
> >
> > $diff = $enddate - $today;
> >
> > But result comes as
> >
> > 2419200
> >
> > How can I convert that numbers to days
> >
> > Best Regards
> >
> >
> >
> > "Kevin Waterson" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > This one time, at band camp,
> > > "qt" <[EMAIL PROTECTED]> wrote:
> > >
> > > > Dear Sirs,
> > > >
> > > > How can I add or subtract two date easily. Is therea any lib or
> function
> > > > about this. I can not find any easy way in the manual
> > >
> > > if the dates are timestamps, simply
> > >
> > > $new = $timestamp2 - $timestamp1;
> > >
> > > cheers
> > > Kevin
> > >
> > > --
> > >  __
> > > (_ \
> > >  _) )           
> > > |  /  / _  ) / _  | / ___) / _  )
> > > | |  ( (/ / ( ( | |( (___ ( (/ /
> > > |_|   \) \_||_| \) \)
> > > Kevin Waterson
> > > Port Macquarie, Australia
> >
> >
>
>



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




Re: [PHP] date calculation

2003-02-16 Thread qt
Dear Kevin,

I used timestamp allready as following;

$today = strtotime ("1 february 2003");
$enddate = strtotime ("1 march 2003");

$diff = $enddate - $today;

But result comes as

2419200

How can I convert that numbers to days

Best Regards



"Kevin Waterson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This one time, at band camp,
> "qt" <[EMAIL PROTECTED]> wrote:
>
> > Dear Sirs,
> >
> > How can I add or subtract two date easily. Is therea any lib or function
> > about this. I can not find any easy way in the manual
>
> if the dates are timestamps, simply
>
> $new = $timestamp2 - $timestamp1;
>
> cheers
> Kevin
>
> --
>  __
> (_ \
>  _) )           
> |  /  / _  ) / _  | / ___) / _  )
> | |  ( (/ / ( ( | |( (___ ( (/ /
> |_|   \) \_||_| \) \)
> Kevin Waterson
> Port Macquarie, Australia



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




[PHP] date calculation

2003-02-16 Thread qt
Dear Sirs,

How can I add or subtract two date easily. Is therea any lib or function
about this. I can not find any easy way in the manual

Best Regards



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




Re: [PHP] permissions to work with fopen

2003-02-16 Thread qt
Tahnk you,

but I don't want to let web user see the log file


"Nicholas Wieland" <[EMAIL PROTECTED]> wrote in message
20030216011528.GA1411@localhost">news:20030216011528.GA1411@localhost...
> On 2003.02.15 20:11 qt wrote:
> > I am planning to make a log file with fopen command.
> >
> > I am succesfully read and write the file with fopen. But as I see
> > fopen is requiring a file with read and write permission for public.
>
> Not for public, for your webserver user, www-data or another similar
> name.
>
> > I was using same method with perl in cgi-bin directory; but I was
> > giving read and write permission for only owner.
> >
> > If I give write and read permission for only owner; fopen command can
> > not read the file.
> >
> > Do you have any idea, how can I make log file with protecting from
> > public?
>
> Give pemissions to your web server user.
>
> Cheers
> Nicholas



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




[PHP] permissions to work with fopen

2003-02-15 Thread qt
Dear Sirs,

I am planning to make a log file with fopen command.

I am succesfully read and write the file with fopen. But as I see fopen is
requiring a file with read and write permission for public.

I was using same method with perl in cgi-bin directory; but I was giving
read and write permission for only owner.

If I give write and read permission for only owner; fopen command can not
read the file.

Do you have any idea, how can I make log file with protecting from public?

Best Regards



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




Re: [PHP] any change to see php source?

2003-02-02 Thread qt
Thank you chris,

Help full

Do you have any link for installation manual


"Chris Hayes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 21:36 1-2-2003, you wrote:
> > > I am studying on php. And the book say, when the server see php
> > extension it
> > > is running php file and giving results to the visiting browser.
> > >
> > > But as I see related directories are normal directory, doesn' t like
> > cgi-bin
> > > directories.
> > >
> > > Is there any change to see php file source such as file open function
or
> > > something else? I am not going to somebody else file. Just I want to
be
> > sure
> > > how secure the php?
> >
> >It's all in CVS, read the source:
>
> I think he does not mean the PHP program source, but his scripts' source.
>
> Normally people cannot see the script source, as long as you use .php as
> file extension. In some PHP/server setups people can see the source when
> they type filename.phps, see the installation instruction file in the php
> package for details.
>
>



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




[PHP] any change to see php source?

2003-02-01 Thread qt
Dear Sirs,

I am studying on php. And the book say, when the server see php extension it
is running php file and giving results to the visiting browser.

But as I see related directories are normal directory, doesn' t like cgi-bin
directories.

Is there any change to see php file source such as file open function or
something else? I am not going to somebody else file. Just I want to be sure
how secure the php?

Any experience?

Best Regards



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




[PHP] how can I start running a perl cgi from php

2003-01-31 Thread qt
Dear Sirs,

I want to run a perl script with a command in my php script. I think
include() is not suitable to run perl script. When I use include(), it
brings source of the perl script.

Would you help me which command is very usefull for that purpose.

Best Regards




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