I believe there is a window.print() JavaScript code, that lets you
print a document. I've never used it, so I'm not sure.
Print Document
//or something like that...
good luck !!
__John Monfort_
_+---+_
P E P I E D
It appears that the integer type being used by these functions is not able
to store the entire 32 bits (4 bytes). It can only handle up to 31 bits -
my guess is the type is signed when it should be unsigned.
In any case,I'm running PHP 4.0.5 on Linux 2.4.3 on an x86 machine. I
would appreciate
On 19 May 2001 22:13:05 -0700, Weston Houghton <[EMAIL PROTECTED]> wrote:
> I cannot for the life of me get browscap.ini to work.
>
> Also the browserhawk version of the browscap.ini is sadly out of date.
> Anyone have any leads for me on getting this to work? I consistently get an
> empty array
apples & oranges. :)
but mod_php without cache (e.g., zend cache) still suffers
from an overhead of recompiling scripts in every request
(serious overhead if the site is complex).
--
sh
On 19/07/2001 11:03, Christopher Leigh wrote:
>i'm wondering if mod_php4 is faster than mod_perl.
>
>thank yo
So...
I cannot for the life of me get browscap.ini to work.
Also the browserhawk version of the browscap.ini is sadly out of date.
Anyone have any leads for me on getting this to work? I consistently get an
empty array returned.
Thanks,
Wes
--
PHP General Mailing List (http://www.php.net/)
I've been out of the loop for so long.
I make a normal form, but the action is something..
I don't want it to send from the uers email, but use the server. Some
people don't have an email client configured. Can yah help?
Thanks,
Owen
--
PHP General Mailing List (http://www.php.net/)
To u
i'm wondering if mod_php4 is faster than mod_perl.
thank you,
christopher
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I reccommend looking around sourceforge.net for current PHP BB projects, and
if you find something like you want you can join that project, or you can
just create your own project and thus allow people to join in the creation,
should they so choose.
Plutarck
"nicholas" <[EMAIL PROTECTED]> wrote
Hello Brandon,
On 17-May-01 16:23:12, you wrote:
>I am making a suite of online tools. Right Now I am connecting to a MS SQL
>2000 database. Is there any class out there that will let you send a query
>to more than just one type of databases? Like someone could run it off a
>MSSQL server and
I was wondering, when you set your browser's proxy setting to localhost, how
do you access that information through a program?
In PHP would you open a specific stream, or would you open a socket on
127.0.0.1 with the same port as the one you specified in your browser?
Basically when you make you
Just found this site recently, and after a little playing I found out that
it uses the .php3 extension as it's main feature. I believe it uses PHP for
just about everything it does, which is a great example of how PHP can do
just about anything web technology allows ;)
Here it is (excellant for p
On Sun, May 20, 2001 at 02:11:04AM +0200, Richard wrote :
> You need to be more specific than that.
>
> You cannot demand the browser to start printing, [...]
Not true if JavaScript is enabled (and most browsers do).
window.print();
prints the document (but in fact, it will popup a printing
d
""Dean Martin"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My code to list only the rows that were checked is this..
>
> for ($j=1 ; $j=5; $j++)
> This code is creating an endless loop and times out the server with memory
> overruns.
>
> What am I missing?
phpinfo() allways has a list of variables. but of course every variable is
allways in $GLOBALS too.
--
Chris Lee
[EMAIL PROTECTED]
"Alex Black" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> can't find a function for getting a complete list
Check out http://webgadgets.com/phpost/
That's a good way to get started on handling emails with PHP.
I'd need to know more about what you want to do to tell you if PHP is the
way to do it.
If you want to run a mail server which takes incoming emails and directly
writes them to a database, PHP
You need to be more specific than that.
You cannot demand the browser to start printing, only thing is to write the
contents of the report to a webpage and then the visitor/user can print it
out if she/he likes.
It depends on how you have stored the reports.
- Richard
""Mihailo Dzigurski"" <[E
You are looking for the function nl2br()
Information here: http://www.newbienetwork.net/article.php?sid=70
And here: http://www.php.net/manual/en/function.nl2br.php
See echo statement below for example implementation.
Jason Lotito
www.NewbieNetwork.net
> -Original Message-
> From: Loui
Wrong examples written in my past post.
$GLOBALS["userPassword"] = "whatever";
global $userPassword;
and then write/read from it?
- Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
So this will do then:
$GLOBALS["userPassword"] = "whatever";
And when I need to use it, I use
echo userPassword;
and such alike?
What if I would like to change it? Can I simply use
'userPassword="whatever"';
?
Thanks,
Richard
--
PHP General Mailing List (http://www.php.net/)
To
Hi All:
I need to print out several paragraphs of information stored in a MySql
field to a web page. To do this I am using:
$db = mysql_connect("localhost", "dbase", "password");
mysql_select_db("dbase",$db);
$sql = "SELECT update FROM members WHERE username = 'Don'";
$query = mysql_query($sql)
php-general Digest 19 May 2001 23:59:03 - Issue 696
Topics (messages 53515 through 53569):
Unix problem
53515 by: Urb LeJeune
53530 by: B. van Ouwerkerk
53534 by: Urb LeJeune
more on problem
53516 by: Urb LeJeune
Re: Netscape 6, What a piece of s$#@ , anyon
In article <9e6s21$2rk$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Richard") wrote:
> So i should start the header (or wherever in the header) with :
>
> $GLOBALS["userPassword"] = "whatever";
>
> function cp() {
> global $userPassword;
>
> // $userPassword is 'whatever' /
Jakob,
You mean tidy?
I use it to post-process a 'Today's News" page that is created, by script,
from a set of other pages.
It works very well.
Miles Thompson
At 03:54 PM 5/19/01 +0200, Jakob Kruse wrote:
>Brandon, might I suggest that you start using the HTML Validator at
>www.w3.org if you
So i should start the header (or wherever in the header) with :
$GLOBALS["userPassword"] = "whatever";
function cp() {
global $userPassword;
// $userPassword is 'whatever' //
}
Did I get it or am I just too tired?
- Richard
"Michael Stearne" <[EMAIL PROTECTED]> w
function un_htmlentities($str) {
$trans = get_html_translation_table (HTML_ENTITIES);
$trans = array_flip ($trans);
$str = strtr ($str, $trans);
return ($str);
}
> -Original Message-
> Fr
> > How can i reverse the htmlspecialchars() functions?
> > I can't seem to find a function for that.
>
> There is no function to do that.
Can't you use the translation array, reverse it, and apply it?
It's mentioned in the manual somewhere...
Would be heavy hack, but IMO it should work...
Jero
There are a few scripts listed at
http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Email_Utili
ties/ that might do what you want.
David Price
-Original Message-
From: Mark Wouters [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subje
Try the define function. That will define a constant that you will always have
access to (within functions, through various included files,etc.) Or you can
write values to the $GLOBALS array of global variables.
$GLOBALS["userPassword"]="u8943fd";
Will define a variable that is accessible as $
hi all,
can't find a function for getting a complete list of defined constants.
this exists for classes, I think it must for constants even if it is
undocumented.
I'm writing a bit of debug code, and I'd rather not build a bunch of
implicit knowledge about my set of constants into the code - I'd
Greetings.
I have about two include files which are included in every php page that
I have, and I wish to store global variables, such as passwords, usernames
and other details information.
After going through the PHP manual, all I could find was UNSET/SET
global variables, but I don't kn
Nobody knows if it's possible to send attachements with mail()??
Thanks,
--
Mark Wouters
eXpanded Media
Web Designer
Parijsstraat 74, B-3000 Leuven - Louvain
Tel: +32 (16) 31.10.12
Fax: +32 (16) 31.10.19
E-mail: [EMAIL PROTECTED]
URL: http://www.expandedmedia.be
--
PHP General Mailing List (
Hi Rasmus,
> > How can i reverse the htmlspecialchars() functions?
> > I can't seem to find a function for that.
>
> There is no function to do that.
Maybe it would be a nice feature to add in PHP?
For the moment i'll just have to make my own version then :)
Thanks,
Jeroen
--
PHP General Ma
> How can i reverse the htmlspecialchars() functions?
> I can't seem to find a function for that.
There is no function to do that.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Hi There,
How can i reverse the htmlspecialchars() functions?
I can't seem to find a function for that.
Thanks,
Jeroen Geusebroek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Hello,
I have written some accounting application using PHP, and now I need to
create some reports. Those reports need to be printed from web browser.
What can I do?
Thanks
Mihailo.
_
Do You Yahoo!?
Get your free @yahoo.com address at
Hello,
I am fairly new to PHP and so far I love it. One question I have is how to
call include files outside of their directory without hard coding the real
path to the file itself. Is there map path or a similar function in PHP?
Also when i use readfile() or fpassthru() when I echo the result
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Richard Kurth) wrote:
> Way does this not work it sends to the recipient but it will not
> send to the bcc this is right out of the manual.
> $recipient .= "[EMAIL PROTECTED]";
> $subject = "Hello";
> $message .= "The is the message\n";
> $m
Way does this not work it sends to the recipient but it will not
send to the bcc this is right out of the manual.
$recipient .= "[EMAIL PROTECTED]";
$subject = "Hello";
$message .= "The is the message\n";
$message .= "--\r\n"; //Signature delimiter
$message .= "http://northwesthost.com";;
$hea
Hey,
take a look at:
http://www.php.net/manual/en/function.chr.php :)
Kees
> -Original Message-
> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 19, 2001 9:47 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] converting int to char
>
>
> how do I convert and intege
Definately, thanks!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: "Kurth Bemis" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent:
how do I convert and integer value to its ASCII correspondent?
in C I would go something like:
int i = 90;
char c;
c = i + '0'; // now c would be 'Z'
in PHP I'm simply clueless since there's no (char) type...
. Christian Dechery (lemming)
. http://www.tanamesa.com.
Clayton - I'm working on a similar time tracking tool myself...then it
exports the data in CSV format. I'm looking at having it complete next
week. I'll notify you when it done if your intrested.
~kurth
On Sat, 19 May 2001, Clayton Dukes wrote:
> I did actually look there first. Nothing list
I did actually look there first. Nothing listed
Thanks anyways :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: "Navid Yar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, M
Clayton, you might want to try hotscripts.com. They have a load of scripts
you can choose from, and it's all categorized as well. Good luck
Navid Yar
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 2:22 PM
To: [EMAIL PROTECTED]
Subj
I hate using global variables this way in functions, but it can be done.
$val)
global $pos;
// reset of your code.
}
?>
there are good reasons for global variables, but use them wisely, globals
are offten missused and create illegible code. most variables should be
p
Does anyone know where I can find some type of
Expense Report/Tracking system written in PHP?
I'm tired of tracking all my stuff in Excel and
sending it in so I thought I'd take a crack at making an online tracking system
for multiple employees that could possibly export to Excel if needed.
Hi!
I want to have a mailapp on my server (win32) wich writes all incoming mails
to a MySQL db.
Is this possible?
-
Fredrik A. Takle
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
can't say for sure, but a good guess is some problems with undefined vars.
try using fforeach insted, its alot simpler.
$j_val)
foreach($check[$j_pos] as $i_pos => $i_val)
$message .= "{$pre[$j_pos][$i_pos]} {$post[$j_pos][$i_pos]}
{$name[$j_pos][$i_pos]} {$city[$j_pos][$i_po
Anyone do anything in this arena yet? I searched the archives for 2001
but have yet to go farther back. I know I can use the COM ability to get
info from Domino but I'm looking for any success stories with Lotus Domino.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hmmm anyone looking to join me in making a bb called BestBoard? email me at
[EMAIL PROTECTED] not thru the list! (note if these are not supposed to go on
this list 1 flame
will be suffiecent thanks!)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
accually php allready has this command and you are so close to it :)
--
Chris Lee
[EMAIL PROTECTED]
""Ken Jansons"" <[EMAIL PROTECTED]> wrote in message
001d01c0e08c$54601480$[EMAIL PROTECTED]">news:001d01c0e08c$54601480$[EMAIL PROTECTED]...
Hello,
Is it possible to have the contents of
its great to see vpopmail support in 4.0.5. but i can't find any
documentation on functions. what are the functions and their parameters.
does anybody know?
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
how about grabbing the first result out of the 'while'??? something like:
list($var1) = mysql_fetch_row($result);
while( list($email) = mysql_fetch_row($result) )
$var2[] = $email;
hope this helps...
At 11:04 19/5/2001 -0700, Richard Kurth wrote:
> I am trying to pull all the e-mail
I am trying to pull all the e-mail address out of a database to be
able to do a mass send.
This gets me all the e-mail address and puts a , between them which is what
I want.
$sql = "SELECT CONCAT(email) AS str_email FROM customers";
$result = mysql_query($sql);
Hello,
Is it possible to have the contents of a shell_exec command go into an array?
I have the following in my PHP script:
Which calls a shell script "dirlist.sh", which returns results similar to the
following:
www
www/docs
www/test
Is it possible to have each line put into an array? so t
Hi,
I've another question.. is it possible to send attachements with mail()
??
Thanks,
--
Mark Wouters
eXpanded Media
Web Designer
Parijsstraat 74, B-3000 Leuven - Louvain
Tel: +32 (16) 31.10.12
Fax: +32 (16) 31.10.19
E-mail: [EMAIL PROTECTED]
URL: http://www.expandedmedia.be
--
PHP General
>>while ($Directory=readdir($DirHandle)) {
>>
>> $IsFile = is_file($Directory);
>> $IsDir = is_dir($Directory);
>> echo " is file=$IsFile - is dir=$IsDir\n";
>>
>> Works fine on Windows box, on a Unix box (RedHat) both
>>is_file() and is_dir() return null no matter what the contents o
[EMAIL PROTECTED] ("elias") writes:
> "Arcady Genkin" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I could not find this in the docs, but maybe I've been looking in the
> > wrong place. Could someone give me an authorative answer or point me
> > to it s
btw, have people tried apc 1.0.9 with php-4.0.5? apc runs fine
for some of my scripts (though performance improvement is not
great at all, or am i doing something wrong). but for some of
my more complex scripts, it crashes the httpd binary with
segfaults.
btw, can you just take the compiled cache
> -Original Message-
> From: Steven Haryanto [mailto:[EMAIL PROTECTED]]
>
>
> I have a requirement like this:
>
> - the php script should be runnable by httpd user only.
> - the php script will include other files.
> - the php script should run as the user.
> - the user must not be able
>while ($Directory=readdir($DirHandle)) {
>
> $IsFile = is_file($Directory);
> $IsDir = is_dir($Directory);
> echo " is file=$IsFile - is dir=$IsDir\n";
>
> Works fine on Windows box, on a Unix box (RedHat) both
>is_file() and is_dir() return null no matter what the contents of
>$Direc
The only idea i have is not perfect, but would stop people without time on
their hands from getting your code. (But it could be time consuming for you
(but free))
1) make the source code a string
2) encrypt it, (but try use bizzare, unheard of functions so that it takes
longer to work out how to
> I got a jpg-picture on my disk. Is there any way to find out the color
> of a pixel (let's say, I want to know, which color the pixel 1,12 on
> image img.jpg is.)
>
> Ideas ?
http://php.net/imagecolorat
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
I have a multidimensional array being created by a form. Most fields are
pre-populated with a few that people can add to the list. There is a box
beside each row that they can check whether that item is in or not.
My code to list only the rows that were checked is this..
for ($j=1 ; $j=5; $j++
If i use these functions in my script, what will be the system resource
usage? I know, thread will be open while the script is running but, i
believe that they will not use extra system resource, won't they?
For example, i want to send 10 emails every 30 seconds. Assume that there
are 1,000,000 e
Hi!
I am writing a chat program with php and mysql using semaphores,
shared memory and sessions.
Chatters A and B will both be using a common file where semaphores are
acquired in a while loop.
To my grief, the chatting was found to hang at around 50 mins mostly,
though other instances of 9 or 20
Hello !
I got a jpg-picture on my disk. Is there any way to find out the color
of a pixel (let's say, I want to know, which color the pixel 1,12 on
image img.jpg is.)
Ideas ?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
>Below the code i use. Everything works, the $mailto variable is buils up
>from a database and contains more then one email adresses. Now my
>question: how can i make the receivers of my message NOT to see the
>email addresses of all the receivers, so then can't reply to all?
Send the m
Actually, We _are_ considering of buying Zend Encoder, but in the
middle of thinking for alternatives... :-)
However, sometimes vendors do not want user to have access to
the _binary also_ (and then run it somewhere else), so that needs
some extra protection other than the Encoder too.
Regards,
Below the code i use. Everything works, the $mailto variable is buils up
from a database and contains more then one email adresses. Now my
question: how can i make the receivers of my message NOT to see the
email addresses of all the receivers, so then can't reply to all?
The simpliest thing to
2) user cannot trick other root processes to read
script.php for her.
Is there a better alternative?
Depending on your budget yes there is. Zend has a PHP encoding utility
which performs two functions, first off since it needs to run through their
optimizer your PHP scripts will tend to run f
Hi,
Below the code i use. Everything works, the $mailto variable is buils up
from a database and contains more then one email adresses. Now my
question: how can i make the receivers of my message NOT to see the
email addresses of all the receivers, so then can't reply to all?
$mail ="$mailto";
$
I have a requirement like this:
- the php script should be runnable by httpd user only.
- the php script will include other files.
- the php script should run as the user.
- the user must not be able to access the source code
of the scripts.
What I can think of so far:
Put the script in a di
Brandon, might I suggest that you start using the HTML Validator at
www.w3.org if you intend to write HTML that is viewable in Netscape 6.x. As
pointed out by many others, Netscape 6 is a browser which does things
according to W3C specs (mostly... a lot better than most other browsers
anyway) and
As a follow up on my last post, the following works
on my Windows system but not on my Unix system:
$Type = filetype($Directory);
On Unix it always returns a null value.
Urb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
I'm using the follow snippet while traversing a directory.
while ($Directory=readdir($DirHandle)) {
$IsFile = is_file($Directory);
$IsDir = is_dir($Directory);
echo " is file=$IsFile - is dir=$IsDir\n";
Works fine on Windows box, on a Unix box (RedHat) both
is_file() and i
php-general Digest 19 May 2001 11:52:01 - Issue 695
Topics (messages 53497 through 53514):
Re: PHP and XHTML
53497 by: dempsejn.georgetown.edu
53498 by: Brian Clark
Network Connectivity help please
53499 by: Brian
53502 by: Mohamed LRHAZI
53503 by: B
http://php.weblogs.com/adodb
Database wrapper library 1.10. Now supports cached recordsets.
Example below:
include('adodb.inc.php');
include('tohtml.inc.php');
$ADODB_CACHE_DIR = '/usr/local/adodbcache';
$conn = &ADONewConnection('oracle');/* Oracle 8, use 'oci8' */
$conn->PConnect('','scott','
Hi everybody,
Is it possible (and if it is, how) to globalize all the variables, that
come from some form, automatically?
For example:
function do_something(){
global $form;
if($form != "func"){
/* globalize all the variables that come from a form
called $form .
On Saturday 19 May 2001 01:27, elias wrote:
> hello,
>
> i have my file which reads like:
> dir3/dir3-3/
> dir2/
> dir1/
> s
[...]
> as you noticed that in each element of the array "$a" a space is
> appended for an unknown reason!
Wild guess: You're on a Unixy server and the file is in DOS for
Hello,
I'm desperate here...
I hope this question hasn't been asked a million times before (I sure
did not find an answer in the archives)
I'm developing a site that runs perfectly on a surver with the PHP
module in apache.
The problem is that the site will be hosted on a server with PHP as
CGI
never tried it though...but through my experience i would say:
The Environment values that are set within a script can be seen only within
child scripts (ie when script1.php spwans scrip2.php)
-elias
"Arcady Genkin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
>and i login as root
login where? you *nix machine?
Else make sure that you connect to the MySql server as a user with enough
privilige (read, write, update, delete...)
-elias
""E K L"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Anybody can he
83 matches
Mail list logo