php-general Digest 21 Jun 2004 14:03:41 - Issue 2834
Topics (messages 188721 through 188741):
Re: Printing invoices
188721 by: Justin French
188724 by: Lester Caine
188735 by: bskolb
Re: plz help!compiled php but iam still getting old version ???
188722 by:
If you are using IIS with PHP as an ISAPI-module, it is possible to find out
the NT-User through $_SERVER['AUTH_USER'].
Apparently it is not so easy on Apache.
Does anyone know a solution?
Gabor
Gerben [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
This var means something
Bskolb wrote:
Could someone direct me to a printing solution from a static document that
would render variable data elements to be sent to a printer queue? I was
thing perhaps of an RTF for the static page, but can't seem to locate any
way of inserting the variable data, then spit out each
Eventually the apache module mod_ntlm (http://modntlm.sourceforge.net/)
could help... don't know if it really works but it looks very
interesting.
cheers
Marcel
If you are using IIS with PHP as an ISAPI-module, it is possible to find out
the NT-User through $_SERVER['AUTH_USER'].
Apparently
Hello!
Okay, I saw pages doing this and I want exactly the same:
- On a page the user can login. Before, no cookie is set.
- On the next page, the cookie is set. It shows either the user data (is
the login was correct and cookies where enabled) or a page which tells
that cookies are disabled.
Hello!
I saw this on some pages and want to do the same:
- On one page the user can login. Before that no cookie is set!
- On the next page they set the cookie and show either the user data or
a warning that the user has disabled cookies and should enable them.
I wasn't able to set and text a
Hi All
(B
(Bwill anybody explain me what is email autoresponder?.
(Band how to create in php?
(B
(BRegards
(BSyed
Think about it.
Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie
Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie
If you can't work it out, and have actually done some
If you don't know what it is, why do you want to make one?
There's a lot more to this than simple PHP, I suggest you start on
google.com
Syed Ghouse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi All
will anybody explain me what is email autoresponder?.
and how to create in php?
Hello!
I don't want to alyways set a cookie when a user enters my page. I want
to set it when the users logs on, not earlier.
The way is:
- Login-Page: The user enters the page where he can enter his
name/password in a form and then submits this form. Before this, no
cookie should be set.
-
Hi all
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
if so, can I just use something like
flock( file(/path/file.ext) );
Kind Regards
Brent Clark
MSN: [EMAIL PROTECTED]
eMail: [EMAIL PROTECTED]
Cell: +27 82 701
hello , yes there is a phpBlender application.Please look at
http://phpblender.com
All the Best
Bogomil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The Spisanie.com Magazine together with its enlisted partners is the
organizers of the Balkan PHP programming/developing competition. The
first stage had already been started and will reach completion on the
15th of July 2004 with the following task:
Development of an encryption algorithm for
Thanks, I had something similar in mind. The reason I was hoping to use RTF
is so the customer can easily create new documents and be able to fill in
the variable data themselves.
Example. First Name: $fname
So they would actually type the PHP variable and I could easily read in the
RTF file
Hi Aidan,
Think about it.
Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie
Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie
thanks for your reply, I think you
On 21 June 2004 12:11, Martin Schneider wrote:
thanks for your reply, I think you missunderstood, please read more
carefully. I know how to set and read a cookie, but as I
wrote I wasn't
able to set and text a cookie ON THE SAME PAGE.
The manual says: http://php.net/setcookie
Once the
Brent Clark wrote --- napísal::
Hi all
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
if so, can I just use something like
flock( file(/path/file.ext) );
No, you need file locking only for writing.
--
PHP General
Can read you now().
Hi all just wanna check if you can read me
Thx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you're just going to read only, no.
Hi all
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
if so, can I just use something like
flock( file(/path/file.ext) );
Kind Regards
Brent Clark
--
PHP General Mailing List
Martin Schneider wrote:
I saw this on some pages and want to do the same:
- On one page the user can login. Before that no cookie is set!
- On the next page they set the cookie and show either the user data
or a warning that the user has disabled cookies and should enable
them.
I wasn't
Hello,
One of my PHP programs called dailybatch.php3 includes a file in its parent
directory. The link is
include ../db_mysql.inc
dailybatch.php3 is invoked from the crontab command or run from the command
line in the root /www folder, gives an error indicating that
../db_mysql.inc
Below is the chunk of code i am using. In the verify_faculty_info.php
file i call the search function. The search function is coded in the
function.php file which is included in the accesscontrol.php.
I thought that it would carry over to the verify_Faculty_info.php file.
Was I mistaken?
On Mon, 21 Jun 2004 10:31:42 -0500 (CDT), Aaron Axelsen
[EMAIL PROTECTED] wrote:
Below is the chunk of code i am using. In the verify_faculty_info.php
file i call the search function. The search function is coded in the
function.php file which is included in the accesscontrol.php.
I
On Mon, 21 Jun 2004 14:05:05 +, Sharat Hegde
[EMAIL PROTECTED] wrote:
Hello,
One of my PHP programs called dailybatch.php3 includes a file in its parent
directory. The link is
include ../db_mysql.inc
dailybatch.php3 is invoked from the crontab command or run from the
Morning,
I am hoping that some expert here can shed some light on how I can find out
why
some PHP code is causing very high load on a Linux server I have.
The code is a Trillium Chat/forums board written in PHP. There are times of
very high load that it causes that are un-usually high. Like
Aaron,
I copied your code to a test file called test.php and created the following
pages as dummy includes:
verify_faculty_info.php, functions.php and accesscontrol.php
in functions.php, I created a dummy search function:
function search(){
return Found!BR;
}
in verify_faculty_info.php,
Wanted to see if anyone had any input on this. I have a recordset that
is returned to me in my script. What I then would like to do is go
through each row of the recordset and use the substr_count function to
count the number of times a string appears in each row. Then I'd like
to sort
Curt Zirzow mailto:[EMAIL PROTECTED]
on Friday, June 18, 2004 10:38 PM said:
s/should/will
s/s\/should\/will/s\/should\/will\//
:P
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings!
I am working on a web site in which there is a need to store the orders.
Part of the order is some personal info which should not be stored in
plain text (SS number). Basically what I have is a submission order
form which I want to encrypt the input and store it on the server in a
Gabe wrote:
Wanted to see if anyone had any input on this. I have a recordset that
is returned to me in my script. What I then would like to do is go
through each row of the recordset and use the substr_count function to
count the number of times a string appears in each row. Then I'd like
On Mon, Jun 21, 2004 at 12:09:50PM -0400, Gabe wrote:
Wanted to see if anyone had any input on this. I have a recordset that
is returned to me in my script. What I then would like to do is go
through each row of the recordset and use the substr_count function to
count the number of times
Gabe,
Wanted to see if anyone had any input on this. I have a recordset
that is returned to me in my script. What I then would like to do is
go through each row of the recordset and use the substr_count function
to count the number of times a string appears in each row. Then I'd
like to
Hi John,
Quoting John Fano [EMAIL PROTECTED]:
BEGIN DECRYPT CODE*
$filename = $_GET[q];
$getdata = file($fname);
What is in $fname? Shouldn't it be $filename?
HTH
R'twick
This message was sent using
I have this script whereby I use the php function file().
Just a quick question, do I need to implement file locking.
If you want to ensure that the file is not changed by other scripts while
you're reading from it, yes. Note that this is advisory only - writer
scripts will only respect the
Boy, I feel retarded. That was it. Thank you. I used $filename in the
encrypt stage and when I copied and pasted into the decrypt file I used
a snippet from Dreamweaver that I had for reading a file into an array,
which had $fname in it. Sometimes it takes a second set of eyes.
Thanks
On Mon, 21 Jun 2004 13:01:33 -0400, John Fano
[EMAIL PROTECTED] wrote:
Boy, I feel retarded. That was it. Thank you. I used $filename in the
encrypt stage and when I copied and pasted into the decrypt file I used
a snippet from Dreamweaver that I had for reading a file into an array,
Good idea storing it in an array.
Sort the unique row ID and the count in the array and use asort().
Wanted to see if anyone had any input on this. I have a recordset that
is returned to me in my script. What I then would like to do is go
through each row of the recordset and use the
How do you recompile your PHP installation with --with-mysql option??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nguyen, Long P (Mission Systems) wrote:
How do you recompile your PHP installation with --with-mysql option??
In the PHP source tree
$ ./configure --with-mysql[=dir] --with-other-options
$ make
$ make install
I'm sure this will bring a few questions. ;)
--
John C. Nichel
KegWorks.com
Ravi wrote:
HI,
existing configuration :
PHP Version 4.3.4 ( default rpm with fedora fc2 install)
Server version: Apache/2.0.49 (default with fedora fc2 install)
Server built: May 6 2004 07:15:13
NOw i want to install 4.3.3 , so i compiled and install ( with no errors )
if i type php -v at
Hi folks. I'm running into a problem translating single quotes that I'm
hoping someone can help with.
In my CMS, content is encoded using htmlentities() before it is stored
in the database. During publishing the encoded content from the db is
decoded before being written to the file.
However,
On my site I use these two blocks of code to open protected files. I
can open the files fine, and so can plenty of others. The problem is
that at least one person complained that they couldn't open the file.
This is what they had to say:
It opened Adobe, then an
Adobe Reader window opened
I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
Checking PHP configuration settings
PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not installed]
recompile your PHP installation with
I want to create an email application in PHP for my client so they can
produce email text with different fonts and styles just using a browser.
Are there any classes that would provide the means to do the editing?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
not a class but I use this..
http://www.interactivetools.com/products/htmlarea/documentation.html
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 3:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Online HTML editor
I want to create an email
in my apache server i have a bunch of virtualhost sections like:
virtualhost *
servername bob.domain.com
documentroot /var/httpd/users/bob
php_value include_path .:/var/httpd/users/bob
/virtualhost
virtualhost *
servername sally.domain.com
documentroot /var/httpd/users/sally
php_value include_path
try this inside the
Directory /path/to/documentroot
php_admin_flag engine on
php_admin_value include_path
/directory
maybe apache 2 wants something else...
On Mon, 21 Jun 2004 12:18:47 -0700, Jon Drukman [EMAIL PROTECTED] wrote:
in my apache server i have a bunch of virtualhost
Hi All,
I've run into a jam.. I have the follow PHP script:
?
header(Content-type: image/tiff);
$_GET['id'] = str_replace( ., , $_GET['id'] );
$_GET['id'] = str_replace( /, , $_GET['id'] );
$blah = /usr/local/apache/chm-images/ .
[snip]
session_start();
if ( !$_SESSION['user_id'] )
{
exit();
}
[/snip]
Are you sure you are getting past the if ( !$_SESSION['user_id'] )
condition?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Yeah, positive, I should probably clarify more. session_start(); is
what causes it not to display, and gives me the error. The error is that
the site cannot download the file.
-Dan Joseph
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Monday,
[snip]
Yeah, positive, I should probably clarify more. session_start(); is
what causes it not to display, and gives me the error. The error is
that
the site cannot download the file.
[/snip]
I dont know much about the plugins to view the tiff's, but maybe some
of the http headers that
Hi,
The only problem with turning them off is I need the page to be
secured. My only option is session tracking.
-Dan Joseph
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 4:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Do you want...
if ( !isset($_SESSION['user_id']) )
[snip]
session_start();
if ( !$_SESSION['user_id'] )
{
exit();
}
[/snip]
Are you sure you are getting past the if ( !$_SESSION['user_id'] )
condition?
--
PHP General Mailing List
Hi,
that probably would work better, however, the if control isn't
what's fouling it up. I can omit that and leave session_start() in there,
and its fouled up. Session_start() is the culprit.
-Dan Joseph
-Original Message-
From: Daniel Clark [mailto:[EMAIL PROTECTED]
Do you have a temp directory setup for your session variables?
Hi,
that probably would work better, however, the if control isn't
what's fouling it up. I can omit that and leave session_start() in there,
and its fouled up. Session_start() is the culprit.
-Dan Joseph
-Original
Thanks for all the help guys! All of your suggestions got me going in
the right direction. I'm using ADOdb, so some of the code below may
look a little different than suggested.
//stores the RS in an array and creates a sortable array for relevancy
while ( !$objRS_Results-EOF )
{
[snip]
The only problem with turning them off is I need the page to be
secured. My only option is session tracking.
[/snip]
session management does not require that these headers be sent to the
browser to work. Try turning off the cache-control headers.
The cookie and the headers are
Have you tried to specify the the handler of the connection, when you first
made the connection yo had somethig like:
$handler=mysql_connect(...);
...
...
...
mysql_close($handler);
Erik Gjertsen [EMAIL PROTECTED] ha scritto nel messaggio
news:[EMAIL PROTECTED]
I have problem with mysql_close
I
you should tell WHAT problem you have.
does it throw an error?
doesn't it work as expected ... ?
whats the matter?
thomas
On Sun, 20 Jun 2004 13:47:03 -0700 [EMAIL PROTECTED] (Erik Gjertsen) wrote:
I have problem with mysql_close
I dont understand why.
Are ther someone that have any
Hey Matt,
That was the trick, thanks.. I passed that function... what is
it... session limit cache something or another. Worked like a charm!
Thanks much!
-Dan Joseph
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 5:02 PM
To:
Hi Ravi,
I did hear about a PHP compiler a while back But I am not sure whether that
project is still around ?
I think it was on sf.net ...
Regards,
Amit
www.digitalamit.com
Ravi wrote:
HI,
is there any windows application , by using we can produce standalone php
..exe files ?
--- knowledge
--- Amit Arora [EMAIL PROTECTED] wrote:
I did hear about a PHP compiler a while back But I am not sure
whether that project is still around ?
This may be what you're thinking of:
http://pecl.php.net/package/bcompiler
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security -
* Thus wrote Pablo Gosse:
if ($mode == 1) {
$html = htmlentities($html, ENT_QUOTES);
} else {
$trans_tbl = get_html_translation_table(HTML_ENTITIES,
ENT_QUOTES);
$trans_tbl = array_flip($trans_tbl);
$html =
* Thus wrote Scott Taylor:
It opened Adobe, then an
Adobe Reader window opened that stated There was an error opening this
document. This file cannot be found.
So that must mean that the streamfile($file) function (see below) did not
return false, otherwise the message would have been
Why did you set the dir to /usr/local/sql???
Did you have mysql there??? It's not the normal installation dir of mysql...
Long P Nguyen wrote:
I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
Checking PHP configuration settings
PHP version... success [4.2.2]
* Thus wrote Nguyen, Long P (Mission Systems):
I recompiled PHP with --with-mysql=/usr/local/sql and still got the following errors:
Checking PHP configuration settings
PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not
* Thus wrote water_foul:
i get the following error
Parse error: parse error, unexpected T_STRING in
C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on
line 21
I get parse error on line 4.. but then again I'm smarter than php's
parser.
I'm trying to sort alphabetically a large text string filled with first and
last names separated by ,That would seem to be a simple task, but
sort($txt) does not seem to work even when $txt is an array.
The code :
?php
$OK= Joe Blow, Sam Hill, Henry Forget, etc, etc;
$_SESSION['txt'] =
* Thus wrote water_foul:
i figured it out ty
What did you figure out? People searching the archives would like
to know :)
...
On Sat, 19 Jun 2004 15:51:00 -0600, water_foul
[EMAIL PROTECTED] wrote:
whats wrong with this script
setcookie('link' . $loopnum .
On Mon, 21 Jun 2004 23:19:58 -0400, Andre Dubuc [EMAIL PROTECTED] wrote:
I'm trying to sort alphabetically a large text string filled with first and
last names separated by ,That would seem to be a simple task, but
sort($txt) does not seem to work even when $txt is an array.
The code :
* Thus wrote Jeff:
Hey all
Total PHP newbie here. I posted a day ago about php working
'intermittently'. I was told to check my apache logs which was a good hint
cause php is seg faulting. I've broken it down to my connection script to my
database and I ran it in gdb to see if it would
* Thus wrote Martin Schneider:
But I have seen pages on which it seems they set und check if the cookie
has been set ON THE SAME PAGE. So I want to know how they do that
(perhaps with a 302-header or something like that?).
I think you answered you're own question :)
if(!
* Thus wrote Andre Dubuc:
I'm trying to sort alphabetically a large text string filled with first and
last names separated by ,That would seem to be a simple task, but
sort($txt) does not seem to work even when $txt is an array.
The code :
?php
$OK= Joe Blow, Sam Hill, Henry
* Thus wrote Erik Gjertsen:
I have problem with mysql_close
I dont understand why.
Are ther someone that have any proposal?
...
$query = SELECT usrid FROM users WHERE username;
$result = @mysql_query ($query); //Run the query
...
}
mysql_close();
stab dark=true
perhaps
74 matches
Mail list logo