Don't know if this will help, but I worked on one implementation that
involved writing a daemon (we used perl, but php would work as well) which
runs as a user privileged script (started from cron), and waits for a
connection from my web app, and verifies that the request is coming from the
proper
Hello All,
Its enough if i have the apache privileges. Can i
login to apache user and to remote computer apache
user with public key authentication and run some
command there.
thank you
On Tue, 2003-11-11 at 01:34, tirumal b wrote:
Hello All
I have written the following command in PHP
On Mon, Nov 10, 2003 at 11:05:02PM -0800, tirumal b wrote:
:
: Its enough if i have the apache privileges. Can i
: login to apache user and to remote computer apache
: user with public key authentication and run some
: command there.
Usually, the user that Apache runs under does not have a real
Hi,
I have three machine 1, 2, 3. all online have unique IP. one of them (no. 3) running
web server which configured with PHP,
now my problem is
I want to show share directory on Web page to my users. when they enter IP of machine
1 or 2...
anyone to know...plz help me..
jame
Hello,
It's not really a PHP question, sorry.
How reset a MySQL auto_incrment field ?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christian Ista wrote:
How reset a MySQL auto_incrment field ?
ALTER TABLE table_name AUTO_INCREMENT = value
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Nov 11, 2003 at 10:34:17AM +0100, Christian Ista wrote:
:
: It's not really a PHP question, sorry.
:
: How reset a MySQL auto_incrment field ?
There are several suggestions in the User Comments of MySQL's online
documentation. You should check them out.
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
?php
$fp = fsockopen (www.example.com, 80, $errno, $errstr,
Hi all,
Can anybody tell me how can I convert the HTML to PDF on the fly. I
have a HTML form which should be converted into PDF after filling and
submitting it. Please give me your valuable suggestions. I have been
using HTMLDOC-1.8.23.
executing the below code giving error.This code is
QT wrote:
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
Weird. Use HTTP/1.1 then. And add Connection: close
K. Praveen Kumar wrote:
Hi all,
Can anybody tell me how can I convert the HTML to PDF on the fly. I
have a HTML form which should be converted into PDF after filling and
submitting it. Please give me your valuable suggestions. I have been
using HTMLDOC-1.8.23.
http://www.fpdf.org
Binay wrote:
Hi all !
I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00.
STFA this question comes up one every 2 days.
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
This is the error I am getting while executing the script.
File does not begin with '%PDF-'.
--
Thanks Regards
Praveen Kumar
SoftPro Systems Ltd
On Tue, 2003-11-11 at 16:29, Burhan Khalid wrote:
K. Praveen Kumar wrote:
Hi all,
Can anybody tell me how can I convert the HTML to PDF on
Robb Kerr wrote:
I'm using Dreamweaver's Update Record form wizard to create a record
update page. Most of the fields are text, one is file and I want one of
them to be a menu. The menu field should be populated with the fields
of another table.
Here's the problem... If I leave all of the fields
Chris Shiflett wrote:
In some cases, the developer may want certain
HTML elements interpreted rather than escaped
in this way. Perhaps you could mention that
something like str_replace() can be used to
convert specific HTML entities back to their
original form. This method should
Chris Shiflett wrote:
--- Eugene Lee [EMAIL PROTECTED] wrote:
Warning: nl2br() is not safe because it emits br / tags which do
not always work on all browsers (especially browsers not explicitly
advertised to be XHTML-compliant).
Can you name a single browser that cannot properly render a br /
Dave Carrera wrote:
Hi List,
Is there such a tool that will generate a form and relevant code when given
the mysql db-table-fields to update, select, insert etc ?
I ask as hand coding forms and the relevant php code is becoming very time
consuming and I need to speed up this operation.
Any URL's
Save the file and look at its content, you might have php errors in it.
K. Praveen Kumar wrote:
This is the error I am getting while executing the script.
File does not begin with '%PDF-'.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bas wrote:
It's avaiable on:
http://members.home.nl/famde.jong/portalBT-0.0.1.zip
Get your own list. php.general is not your personal announcement list.
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
Documentation is like sex: when it is good,
it
[snip]
Ok, this ended up working well. I'm still wondering why in my example
function two() works, without needing to provide the resource identifier
to mysql_query(), how can mysql_query() pick up the resource identifier
automatically while mysql_list_fields does not?
[/snip]
From
what os?
D. Jame wrote:
Hi,
I have three machine 1, 2, 3. all online have unique IP. one of them (no. 3) running web server which configured with PHP,
now my problem is
I want to show share directory on Web page to my users. when they enter IP of machine 1 or 2...
anyone to
Dear all,
I am not able to attach file using CDONTs component.
Could any one trace out what the problem is ??
The code I use is given below and I run on IIS on Windows 2000
@$CDONTS = new COM(CDONTS.NewMail);
@$CDONTS-From = [EMAIL PROTECTED];
@$CDONTS-To = [EMAIL PROTECTED];
I am trying to use PHP to delete temporary internet files in IE6. I would
also like to access other Internet Options functions. Any assistance
would be appreciated.
Thanks.
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am having problems trying to get PHP to return a Java .jar file.
Basically, the jar is reported as corrupted by Opera, or any browser and
Java 1.3. I have tracked this down to a strange number at the start of the
message body:
If I access the jar file directly (no PHP), I get (viewed by
Joe Mack wrote:
I am trying to use PHP to delete temporary internet files in IE6. I would
also like to access other Internet Options functions. Any assistance
would be appreciated.
PHP is server side, it cannot mess with browser this way. As on another
list.
--
PHP General Mailing List
PHPLover wrote:
Dear all,
I am not able to attach file using CDONTs component.
Could any one trace out what the problem is ??
The code I use is given below and I run on IIS on Windows 2000
@$CDONTS = new COM(CDONTS.NewMail);
@$CDONTS-From = [EMAIL PROTECTED];
@$CDONTS-To = [EMAIL PROTECTED];
Hi all i have the following code which isnt working correctly and i cant work out why.
Any help would be greatly appreciated as its sending me crazy!
$query = select refno from campaign where appdate between 'nov 07 2003' and 'nov 08
2003' ;
$result=mssql_query($query,$numero);
--- QT [EMAIL PROTECTED] wrote:
I am using following method for GET but I am getting this error from
server;
HTTP/1.1 505 HTTP Version Not Supported
This means that the version of HTTP that you are using is not supported by
the server you are sending your request to.
fputs ($fp, GET /
--- Lawrence Kennon [EMAIL PROTECTED] wrote:
For a BBS I would like to let users post links to various resources.
They 'post' a message to the BBS via a form and that is stored in a
MySQL db, then the content of their 'post' is available to other users
on the BBS. Currently I strip out all
Please ignore - now posted to bug newsgroup
Dom S [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I am having problems trying to get PHP to return a Java .jar file.
Basically, the jar is reported as corrupted by Opera, or any browser and
Java 1.3. I have tracked this down to
On Mon, 2003-11-10 at 20:21, Eugene Lee wrote:
On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote:
:
: --- Eugene Lee [EMAIL PROTECTED] wrote:
:
: Warning: nl2br() is not safe because it emits br / tags which do
: not always work on all browsers (especially browsers not
I've got some overflow work that requires some modifications to the
functionality of OSC. Would prefer to work with someone who's already
VERY VERY familiar with OSC, don't want to pay for learning time. Please
contact me @ [EMAIL PROTECTED]dotcom (remove 'dot' obviously) if
interested with 'OSC
Chris W. Parker wrote:
10. Use htmlentities() on data that will be put through a SQL query to
prevent XSS attacks. http://php.net/htmlentities
How is it going to interact with MySQL FULLTEXT
search SQL queries, where the characters and
are in use as modifiers?
--
Seks, seksi,
--- Adam i Agnieszka Gasiorowski FNORD [EMAIL PROTECTED] wrote:
Chris W. Parker wrote:
10. Use htmlentities() on data that will be put through a SQL query to
prevent XSS attacks. http://php.net/htmlentities
How is it going to interact with MySQL FULLTEXT
search SQL queries, where
I have a page where the user clicks a link to download a file, but the
file is out side of the root DIR.
passing certain variables in the link, (type, file_name) I call the
correct file...
However, it's stopped working?
My code below shows how I select the correct mime info to pass to the
Hello List!
I have tried to get this command working with php for about 2Weeks now, and
i would like you to try to get this thing working.
This shell command:
/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null|
grep ID_LENGTH | cut -d = -f 2
gives me the result 16 back, the
Have you tried escaping the pipes and quotes? Try this:
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2);
Mario Ohnewald wrote:
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null|
Hi,
I am having problems while executing this simple
php script:
?
$fp = fsockopen (www.example.com, 80, $errno, $errstr, 30);
if (!$fp)
{
echo $errstr ($errno)br\n;
}
else
{
fputs ($fp, GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n);
while
I'm having trouble getting LDAP to work with PHP. ldap_connect results in:
Fatal error: Call to undefined function: ldap_connect() in
/home/davedash/public_html/ldap.php on line 3
and when I compiled I enabled --enable-ldap.
Am I missing something else here? I've got openldap installed as
Have you tried escaping the pipes and quotes? Try this:
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2);
nope, still get nothing back.
Mario Ohnewald wrote:
$var=shell_exec(/usr/local/bin/mplayer -identify
[EMAIL PROTECTED] wrote:
I have a page where the user clicks a link to download a file, but the
file is out side of the root DIR.
passing certain variables in the link, (type, file_name) I call the
correct file...
However, it's stopped working?
My code below shows how I select the correct mime
My site need to create some images on-the-fly(with user data) for every user
but I have some problem with the creating of the jpeg-image. I put these
images in my MySQL database for later use. This have to do somthing with
write protection because this is not a problem when I'm working on
Egil Berntsen wrote:
My site need to create some images on-the-fly(with user data) for every user
but I have some problem with the creating of the jpeg-image. I put these
images in my MySQL database for later use. This have to do somthing with
write protection because this is not a problem when
Look's correct... you could consider adding
Header(Content-transfer-encoding: binary);
But I highly doubt that would fix things. It would help much more if you
pasted the output by the server...
The link you pasted us is not sending any of the headers you set. Maybe you
already expired this
[snip]
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2);
[/snip]
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2);
Try just escaping the
Lawrence Kennon wrote:
For a BBS I would like to let users post links to
various resources. They 'post' a message to the BBS
via a form and that is stored in a MySQL db, then the
content of their 'post' is available to other users on
the BBS. Currently I strip out all PHP/HTML with the
Hi,
just a quick question:
I'm writing a script, where arguments get added to a dynamicaly created URL.
The only problem is that if there are no arguments in the URL already I
get the following:
http://localhost/dir_to_my_script/test.php?arg1=1arg2=2
notice the ? bit.
I'm just curious, since
--- Erik Osterman [EMAIL PROTECTED] wrote:
Look's correct... you could consider adding
Header(Content-transfer-encoding: binary);
Because Content-transfer-encoding is not a valid HTTP header, this will
have no effect. Content-Encoding and Transfer-Encoding are valid headers,
but binary is
Hi,
Trying to get php 4.3.4 to configure on a Fedora 1 box, and the
configure script keeps hanging on checking whether pwrite works...
I've tried it with and without mm support for sessions, but to no avail
(it's checking for pwrite right after is does the session check). Can
anyone lend a
--- Duncan [EMAIL PROTECTED] wrote:
The only problem is that if there are no arguments in the URL already I
get the following:
http://localhost/dir_to_my_script/test.php?arg1=1arg2=2
notice the ? bit.
Rather than trying to see whether this might work on most browser, you
should try to make
Didn't know that it's RFC 1521 specific header and not valid in HTTP. =)
Thanks,
Erik Osterman
http://osterman.com/
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 9:21 AM
To: Erik Osterman; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Lawrence Kennon wrote:
For a BBS I would like to let users post links to
various resources. They 'post' a message to the BBS
via a form and that is stored in a MySQL db, then the
content of their 'post' is available to other users on
the BBS. Currently I strip out all PHP/HTML with the
Hi,
I have a Javascript that I like to use with PHP/MYSQL, But I don't know
how to mix the two...
SCRIPT LANGUAGE = JavaScript
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == Netscape bVer = 3) ||
(bName == Microsoft Internet Explorer bVer = 4)) br
John Nichel wrote:
Hi,
Trying to get php 4.3.4 to configure on a Fedora 1 box, and the
configure script keeps hanging on checking whether pwrite works...
I've tried it with and without mm support for sessions, but to no avail
(it's checking for pwrite right after is does the session check).
Brian V Bonini wrote:
So just change it
$string = nl2br($content-page_content);
$string = eregi_replace(br /, br, $string);
Why not directly
str_replace(array(\r\n,\r,\n), 'br', $content-page_content);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
From all that I've gathered, the greater Philadelphia, PA, area is
woefully lacking in a PHP Users Group. Last I checked, we were still one
of the ten largest cities in the country, so to quote Chris Rock, That
ain't right!
I have already done some legwork, but before I dive too deeply into
On Tue, 2003-11-11 at 14:51, Marek Kilimajer wrote:
Brian V Bonini wrote:
So just change it
$string = nl2br($content-page_content);
$string = eregi_replace(br /, br, $string);
Why not directly
str_replace(array(\r\n,\r,\n), 'br', $content-page_content);
You say tomato I
--- Lee Stewart [EMAIL PROTECTED] wrote:
It's version 4.0.3
Lee
In v4.3.2, it throws a Parse error: parse error, unexpected '=' in
/path/to/file/test.php on line 23.
Chris Shiflett wrote:
--- Lee Stewart [EMAIL PROTECTED] wrote:
Here's a *working* section of code... Note the
Hey all -
I'm currently working on a project which requires domain name
information. Has anybody used, or can anybody suggest php tools to get
whois information regarding any domain name? I'm trying to check out all
options before having to register as a registrar for get access to a
paid
I have a Javascript that I like to use with PHP/MYSQL, But I
don't know
how to mix the two...
SCRIPT LANGUAGE = JavaScript
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == Netscape bVer = 3) ||
(bName == Microsoft Internet Explorer bVer
And talking about user groups, is anybody interested in creating a
Miami/Fort Lauderdale/Palm Beaches PHP user group?
Contact me, off the list please.
Cesar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Payne wrote:
Hi,
I have a Javascript that I like to use with PHP/MYSQL, But I don't know
how to mix the two...
Here is an example.
?php
/* do php stuff here, like set a value to $x */
$x = 3;
?
script
funtion x() { var foo = ?php echo $x; ?; alert(foo); }
/script
--
Burhan Khalid
On Tue, Nov 11, 2003 at 01:46:33PM -0800, Mark wrote:
:
: --- Lee Stewart [EMAIL PROTECTED] wrote:
:
: Here's a *working* section of code... Note the
:location = browse.php;
: on line 23
:
: In v4.3.2, it throws a Parse error: parse error, unexpected '=' in
:
I believe network solutions and all other sources of this kind of
information have been tightening access to more than the IP address,
because, it seems, some unscrupulous individuals have been using the
information to spam domain owners. Since it appears that you are not a
domain registrar, or
Hi there,
Here's my situation:
I'm making a message board and I've decided the best way to go about the
structure is to have 3 tables, two of them will be Posts and Replys.
Now, in order for this ti work, each post has to have a UniqueID - same with
the replys. Looking at another program, I can
Dimitri Marshall wrote:
Hi there,
Here's my situation:
I'm making a message board and I've decided the best way to go about the
structure is to have 3 tables, two of them will be Posts and Replys.
Now, in order for this ti work, each post has to have a UniqueID - same with
the replys. Looking at
auto_increment is not in the SQL standard, and not everyone uses MySQL. To
be cross-compatible between databases use a Sequence:
http://pear.php.net/manual/en/package.database.db.intro-sequences.php
provides a brief introduction, the PEAR::DB class allows you to use
sequences easily.
Neither
Hi All,
Sorry if this has been asked a 1000 times and if its easy to find in the
php manual but i cant seam to solve this.
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
Many thanks, thought id ask someone is bound to
Dimitri Marshall wrote:
Hi there,
Here's my situation:
I'm making a message board and I've decided the best way to go about the
structure is to have 3 tables, two of them will be Posts and Replys.
Now, in order for this ti work, each post has to have a UniqueID - same with
the replys. Looking at
Marek Kilimajer wrote:
Dimitri Marshall wrote:
I'm making a message board and I've decided the best way to go about the
structure is to have 3 tables, two of them will be Posts and Replys.
Now, in order for this ti work, each post has to have a UniqueID -
same with
the replys. Looking at another
--- Erin [EMAIL PROTECTED] wrote:
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
That's not a timestamp, first of all. It looks to me like you just need to
use substr() to parse out the elements however you want. You
Not sure how others would tackle this, but I would use something like
$readabledate = date(dS F Y @ H:i:s,
strtotime(substr($timestamp,0,4).-
.substr($timestamp,4,2).-
.substr($timestamp,6,2).
There is a PEAR Project that does exactly what you want:
http://pear.php.net/package/Net_Whois
Al
Rolf Brusletto [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hey all -
I'm currently working on a project which requires domain name
information. Has anybody used, or can anybody
Hi,
I have a dir of files saved in the following format: -MM-DD.mp4. I
know how to get the file names into an array, but I don't know how to
sort the array so that the files appear in date order. My guess was to
use strtotime() to get the date into a timestamp, then sort on the
surely sort() would do the trick?
Martin
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 November 2003 12:13 PM
To: php
Subject: [PHP] sorting files by date
Hi,
I have a dir of files saved in the following format:
-MM-DD.mp4. I
Erin wrote:
Hi All,
Sorry if this has been asked a 1000 times and if its easy to find in the
php manual but i cant seam to solve this.
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
IFF the timestamp is coming from MySQL
Justin --
...and then Justin French said...
%
% Hi,
Hi!
%
% I have a dir of files saved in the following format: -MM-DD.mp4. I
OK. So what are you filming? :-)
% know how to get the file names into an array, but I don't know how to
% sort the array so that the files appear in date
Hi, all --
[Yes, this is intended to be a new thread.]
...and then Cesar Cordovez said...
%
% And talking about user groups, is anybody interested in creating a
% Miami/Fort Lauderdale/Palm Beaches PHP user group?
Or US-GA-Atlanta :-)
%
% Contact me, off the list please.
Same here.
Hi again --
...and then David T-G said...
%
% [Yes, this is intended to be a new thread.]
GRRR... It would help if I remembered to change the Subject: line, too.
Anyway, I'd like to see more PHP in Atlanta.
HAND
:-D
--
David T-G * There is too much animal courage in
dear all
i will execute background process like
$program
is there posible in php to process that statement? and return to php
immediately;
---
rgds
[xm]
http://ilkomerz36.blogspot.com
http://geocities.com/amadarum
--
PHP General Mailing List
Does anyone here have any solid experience with nusoap? Their list has
low volume and I am finding it difficult to find any useable examples or
descriptions of real life uses and how to configure the server/client.
In particular I'm currently trying to figure out the correct syntax to
produce
I have recently up graded to 4.3.4 and now my links to pear have quite
working. I have tried replace pear with go-pear and it is not working.
What am I doing wrong?
Old
ini_set('include_path', 'C:/php/pear/');
require_once 'PEAR.php';
require_once 'DB.php';
TIA
Gary
--
PHP General Mailing List
I am following the tutorial at
http://www.freewebmasterhelp.com/tutorials/phpmysql/
The source code is on the website on the left hand side
http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip
My software:
PHP version 4.3.4 on Windows 2000
MYSQL version 4.0.16 on Windows 2000
hello All,
Can i use sudo to assign certain privileges for the
apache account as the webserver is running on that
account. Will it be possible.
Thank you
Tirumal
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
Sorry guys, I have tried all the suggestions so far with no luck.
Regards,
Mark
try to include field name:
$query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web)
VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web');
mysql_query($query);
Mark wrote:
Sorry guys, I have tried all the suggestions so far with no luck.
Regards,
Mark
try to include field name:
$query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web)
VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web');
mysql_query($query);
On Tue, Nov 11, 2003 at 07:44:58PM -0800, Mark wrote:
I am following the tutorial at
http://www.freewebmasterhelp.com/tutorials/phpmysql/
The source code is on the website on the left hand side
http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip
My software:
PHP
87 matches
Mail list logo