ok, im working on a simple and fast templating system for the website im
recreating at the moment. im trying to make it so as the template file
can be opened into a variable before it is passed to the parsing section
so as i dont have to open the file 100 times etc. im not using
fasttemplates
Hello DaViper,
Where do I get those 2 files from? The PHP I am running is 4.0.0
- Original Message -
From: DaViper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 3:07 PM
Subject: Re: [PHP] Ping
Code to show ping results on a webpage included in the 2
I'm trying to build php-3.0.18 as a shared module of Apache
with support for openldap-2.0.7. It compiles, makes and
installs without problems, but once I try to start apache
it gives the following error:
Cannot load /usr/local/apache/libexec/libphp3.so into server:
I have just been playing around with include and include_once with one of
my classes, basicly there are a lot of functions inside this class so we
have put the contance of the function into its own file (so that different
people can work on it) and are useing the include function to call it.
Monsieur,
Premirement et avant tout je vous souhaite une bonne anne.
Je suis un dbutant en PHP, et je veux l'installer comme un
module dans le serveur web Apache mais j'ai rencontr des
problmes. Je tiens vous signaler que je travaille sur la
plate forme WINDOWS NT 4.0 SERVER.
Pouvez vous s'il
Hi Jason!
On Wed, 10 Jan 2001, Jason Beebe wrote:
Hey,
I'm looking for little information from those who have coded their own shopping cart
apps. what would you say the best way to setup a cart would be? more specificly, the
method for adding items to the cart.
eww, lost wrapping ...
thies Wed Jan 10 05:08:14 2001 EDT
Modified files:
/php4/ext/standard exec.c
Log:
exec'd processes now get cleaned up even if the browser connections was
aborted.
fixes: #8143
Index: php4/ext/standard/exec.c
diff -u php4/ext/standard/exec.c:1.44
I have an application that stores large text fields in MS SQL SVR and when
they are entered on-line everything works fine. The problem begins when I
try to retrieve them from the database and populate a field on the php3
on-line form. The query will only return the first 4096 byte of the
The editors that I usually use are Textpad and Jedit. I usually use Textpad
as it's my favorite editor. Jedit is very similar to Textpad which is why
it's my second favorite editor. The bonus of using Jedit is that it's
written entirely in Java so it also runs in Linux (quite well too). You can
Toby Miller wrote:
As far as Linux goes, Jedit is the only editor I've been able to find that
compares against something like Textpad or UltraEdit.
It should be stated here that vi (vim, gvim) and emacs (xemacs) belong to a
different class of editor.
If you know how to handle them (which may
while( list( , $value ) = each( $my_array) )
or
foreach( $my_array as $value )
At 16:16 10.1. 2001, Moritz Petersen wrote the following:
--
Hi,
is there a shorter way to do:
while (list($key, $value) = each($my_array))
{
Has anyone mentioned Bluefish? I was using code crusader till I tried it
yesterday. It blows away both jcc, emacs, xemacs, and gvim.
---Matt
On Wed, 10 Jan 2001, Toby Miller wrote:
The editors that I usually use are Textpad and Jedit. I usually use Textpad
as it's my favorite editor. Jedit
Moritz Petersen wrote:
is there a shorter way to do:
while (list($key, $value) = each($my_array))
{
echo $value...
}
I just need the value!
PHP3:
while (list(, $value) = each($my_array))
{
echo $value...
}
PHP4:
foreach ($my_array as $value)
{
echo $value...
}
In your Apache httpd.conf, do you have the line
KeepAlive On
- this is the Apache directive to turn on persistent connections. You will
also want to play with the MaxKeepAliveRequests directive, if you set it to
0 then it will allow an unlimited number of connections.
There may be more to it
Looks like we still have the famous MSFT definition of cross-platform:
Windows, Windows 9x, Windows NT (and now Windows 2000).
So, is this the clinching argument for CORBA, rather than COM?
And I doubt the vaunted COM+ solves the problem.
Miles
At 09:42 AM 01/10/2001 -0600, Paulson, Joseph V.
Hi
not the () after the function name
function ShowMessage() {
echo "Show message...\n";
}
How can I call the function now?
echo ShowMessage();
:: Emil
---
Emil Rasmussen
http://www.noget.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
I use sessions combinded with utc
function mtime()
{
$mtime = microtime();
$mtime = ereg_replace('\.', '', $mtime);
$mtime = explode(' ', $mtime);
$mtime = $mtime[1] . $mtime[0];
return($mtime);
}
will ALLWAYS return a unique number, store this number in a session, each
user
Anymody knows any way of making diagnostics of PHP code to make
optimizations???
In mod_perl exists a bunch of utilitys modules to make this things like
Devel::DProf
I usually put PHP in the maximun Warning level and write them to a log file,
or using the debugger and see the output in other
Hello sam1600,
Wednesday, January 10, 2001, 7:44:44 PM, you wrote:
$d-somevar = true;
and the next call to $d-b() will print nothing.
But you won't be able to assign a value to $somevar, if it is not
declared in the class.
sic This does not appear to be true. With error reporting set to
smime.p7m
Hi!
ShowMessage();
regards
Marcelo Gulin
Augusto Cesar Castoldi escribi:
How do I use a function?
I did:
function ShowMessage {
echo "Show message...\n";
}
How can I call the function now?
thanks,
Augusto Cesar Castoldi
--
PHP General Mailing List
Cynic,
I've never used version control -- other than saving as draft1, draft2,
draft3 -- and there have been days I've wanted draft2.5. Is this something
integral to the editor, or would a tool like CVS work?
Versioning would be *good*.
Miles
At 07:26 PM 01/10/2001 +0100, Cynic wrote:
Now only if a php-tidy existed ...
Agreed. I've often thought about hacking 'indent' to recognice PHP
syntax, but I never get around to it. Does anyone know if someone has
done this already?
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
I mailed the author of UltraEdit, and he responded within 10
minutes, so I'm forwarding the reply. It turns out you _can_
actually make use of a version control system from within UE:
There is a link on our Products page to Component Software's
RCS version control software -
This reminded me of an issue I've kind of been contemplating
for a couple of weeks now... I got sick of having to
connect, query, check for errors, etc. every time I wanted
to query a mysql database, so I wrote a function to do all
of it for me... something like:
function query_db($queryString,
Hey, I keep getting the same error messages when trying to fire up sessions in this
code i wrote. i've written some test scripts to test sessions on my machine, and they
are working, so the problem must lie within my code. Here' what I'm getting, anyone
know how to resolve this?
Warning:
On Wed, Jan 10, 2001 at 02:31:48PM +0100, Markus H. Maussner wrote:
hi..
is there a solution how i can get all iptc fields out of an immage ?
i tried the 'iptcparse' command wich works quiet well.. just that anny
commas are taken out..
like from the original field
'red,dog,cat' i just
You don't need to select all the data to get the number of rows. Try
this:
select count(*) as total from products where $product_query;
Then use total instead of num_rows.
Be sure the elements in your where clause are properly indexed.
[EMAIL PROTECTED] wrote:
Could someone suggest some
Make sure that the ? that starts the php script is the VERY first line of
the file, and that there are NO spaces before it anywhere.
I had the same problem, I was used to html and even PHP being rather syntax
flexible.
As soon as I removed the spaces and extra line at the beginning of the file,
actually.. still give me the same error after i fixed that. new code as
follows along with the error:
if (!session_is_registered('cart')) {
$cart = array();
session_register('cart');
}
else {
session_start();
}
?
Warning: Cannot send session cookie - headers already sent by (output
started at
there's an implementation of PHP for IIS.
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP simulator
Is there a PHP simulator for NT? One that can be used for testing and
development?
Todd
I just installed Apache, PHP, and MySQL onto my personal NT (ok Win2K)
machine for testing and development. It was really simple...took less than
an hour total to get working.
John Guynn
This email brought to you by RFCs 821 and 1225.
-Original Message-
From: Todd Cary [mailto:[EMAIL
When I use random rand(1, 10) I always get 2?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--
PHP General Mailing List
?
srand((double)microtime()*100);
$id = rand(1,100);
echo ("$id");
?
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 10, 2000 5:14 PM
To: PHP User Group
Subject: [PHP] How can I get a random number
How can I get a random
If you find something other than client side validation, let me know please.
I had to resort to VBScript and I hate it!
- Original Message -
From: "jeremy brand" [EMAIL PROTECTED]
To: "DanO" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 4:42 PM
Subject: RE:
I posted this to the phpMyAdmin support forum and emailed Tobias
Ratschiller, but have heard no response. I am posting to this forum to try
and resolve this problem.
I had phpMyAdmin running successfully on my server. I then upgraded to PHP
4.0.4, and phpMyAdmin appears to have broken. The error
I don't think so, I have bunch of include files, which have more than 5000 lines
and is running very fine.
Abe wrote:
Hey Guys,
I am developing an application in PHP. I make use of an include file that
contains regularly used functions. As I am working I am taking more and
more of the
Put a web cam on it and we've got a winner! :)
Cal
-Original Message-
From: Monte Ohrt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 4:21 PM
To: [EMAIL PROTECTED]; Brandon Orther
Subject: Re: [PHP] How can I get a random number
You can blow some ping pong balls around
Why just simulate it when you can run the real thing! Just download Apache
for Windows and install as service. Then install PHP for Windows and with
a little
configuration you are set. I have been using this setup a while now as a
"staging/testing" area before I upload my files to my website
On Wednesday 10 January 2001 20:58, [EMAIL PROTECTED] wrote:
I have PHP perform SELECT queries on the table, and I need to display
the results in a format of: "viewing $top to ($top+$depth) of $numrows
found"
I haven't found a way to determine $numrows without performing a second
SELECT in
- Original Message -
From: "Neil Zanella" [EMAIL PROTECTED]
To: "Hsieh, Wen-Yang" [EMAIL PROTECTED]
Cc: "PHP General Mailing List" [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 1:11 PM
Subject: Re: [PHP] PHP newbie question
On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote:
"" is
[EMAIL PROTECTED] wrote:
I have a SuSE 7.0 Linux install with apache and mod_php4. I can
do .php files all day long, but I have a shopping cart thingie that
is written for php3, and none of the files will parse. I have tested
my machine with a phpinfo() php3 file, and no go on that either.
Toby -
Did I completely miss the point?
Yes and No. I have my Win 2K system in my office on which I do PHP
development. However, sometimes I am on the road with a "simple"
Notebook computer (450 MHz and 6 GHz drive). It would be nice to "play
around" with PHP and see if it will run.
Todd
John -
That sounds feasible. I have always associated Apache with Unix/Linux;
not Windows
The install of PHP 4.0.4 on my Win 2K was an absolute breeze running IIS
5. What is Apache like in the Windows envirnoment?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General
Clarification: A quotation mark got left out after ['host'] = 'localhost in
my original email. It is in the config.inc.php file and makes no difference
in the error messages. The fix is below.
Erica
""Erica Douglass"" [EMAIL PROTECTED] wrote in message
93indu$enk$[EMAIL
Come on... mixing PHP and HTML in the same file isn't bad
style... in fact it can make things easier to read, if you
do it right.
This is one of PHP's biggest features... otherwise we'd just
have another Perl...
...my .02...
--Toby
- Original Message -
From: "Alexander Wagner" [EMAIL
hi,
I know it's slightly off topic but i hope you;ll forgive me.
i'm testing interbase because someone on this list mentioned it would be a
good offline database.
Interbase ('firebird') wants to connect to the local server (i'm running
WAMP - Windows, Apache, MySQL, PHP), and interbase needs
We may as we set it up in space
to minimalize gravity and friction
-can't be adding any predictable forces ;)
Jerry Lake
-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:19 PM
To: Cal Evans
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] How
Hello Randy,
(R == "Randy") [EMAIL PROTECTED] writes:
R How I think it SHOULD work is like DOS - First it looks at where
R you say it is. If not there, it looks in the current directory.
Let's not forget Unix. ;-)
R If not there, it looks in the directories in the path. I'm sure PHP
R
Brian Clark ...
Hello Alexander,
(AW == "Alexander Wagner") [EMAIL PROTECTED] writes:
Mmmmfff... ultraedit's wordlist file still lacks the color of
allaire's homesite - it does detect which parts of the .php file
are HTML and what parts of the file are PHP code, and colours
php-general Digest 10 Jan 2001 23:46:51 - Issue 447
Topics (messages 33648 through 33844):
Re: Shopping Cart Schema - Sessions
33648 by: Teodor Cimpoesu
33652 by: Paul K Egell-Johnsen
33682 by: JB
33694 by: JB
33696 by: Teodor Cimpoesu
Re: Show
I'll go ahead and get that investment
money rolling, as soon as I see my
return from mindpixel...haha!
I hear that MIR can be had for about
the cost of a decent case of vodka though
Jerry Lake
-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10,
Hello Patrick,
(PD == "Patrick Dunford") [EMAIL PROTECTED] writes:
PD I have this funny thing when running PHP 4 on Apache on Win95. If
PD the script
snip
PD AddType application/x-tar .tgz
PD AddType application/x-httpd-php3 .php3
PD AddType application/x-httpd-php3-source .phps
Hello!
I am having a problem when people copy and paste text inside a TEXTAREA in a form that
contains double quotes ' " ' .
The first file is a simple form. The second one is a php script that treats the data
from the user and stores in a MySQL table. Onyone has any ideas? I need to use
i'm confused by the method the go about this.
i want to have a location: home / company / about on a page like
server.com/company/aboutus.php
i'm thinking that i can use an array containing the page name and then
search the array and return the page title. now - how do i do this with an
uh,
while I agree that including your html is definitely the way to go, you
_must_ mix php with html to a certain extent, assuming you're actually doing
anything interesting like talking to a database.
if you're _only_ including files (i.e. using php as a replacement for SSI) I
guess that would
I'll give it a whirl ...
$array_of_page_titles = array(
'aboutus.php' = 'All about our company',
'index.php' = 'Welcome to www.server.com!',
'foo.php' = 'I\'m a worthless script!'
);
Then ...
TITLE? echo $array_of_page_titles[$file]; ?/TITLE
hey robert,
have a look at binarycloud, with form builder, we take form input, check it,
and return errors with the same form, input there and everything.
if you want, you can have it do fancy stuff like carry over elements on
multi page forms (a person forgets fo fill out one elemtn on a page,
In article [EMAIL PROTECTED],
"Brandon Orther" [EMAIL PROTECTED] wrote:
You will want to apply a cast to the variables to force the addition
to be dealing with numbers.
So, if $var1 = "2" and $var2 = "3",
then
$var3 = (int) $var1 + (int) $var2;
print($var3);
will show 5
see:
$file should be the name of the file - there is a PHP
variable for this but
I'm drawing a blank right now.
How about __FILE__ ? ;)
Note: it's a constant, so make sure you don't try to use a $
before it
--Toby
- Original Message -
From: "Joe Stump" [EMAIL PROTECTED]
To: "Kurth Bemis"
hi Guillermo,
as part of the binarycloud error handling infrastructure, we capture all
errors on a page (that and sql queries + apache environment) and provide a
module that you can (optionally) have print all of that stuff in your pages
in an easy-to-read table. it has helped us quite a bit,
hi Brandon,
we use php's session handing functions to set cookies, they are obviously
hashed, etc before the values are sent.
as part of the authentication system, we check to see that the user's client
matches the last access with that session id, if not, we request a sign in.
if you're not
Sure - I did this with qmail. In your .qmail file or any file that passes the
incoming mail to /dev/stdin you need to pipe it to a php script. It will look
like this:
?
$fp = fopen('/dev/stdin','r');
while(!feof($fp))
{
$line = trim(fgets($fp,4096));
if(ereg("^From:",$line))
{
Have you tried looking at addslashes() ??? Or am I not understanding the problem
here. Just remember to deliminate the "'s and ''s before entering them into the
db.
--Joe
On Wed, Jan 10, 2001 at 08:19:24PM -0500, Romulo Roberto Pereira wrote:
Hello!
I am having a problem when people copy
write a lib that can call scp :)
-alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
From: [EMAIL PROTECTED] ("Nando2")
I want to add a user of my Netscape Messaging server(ldap)
with php,who can give me a example of such using,including
userid,password,email and so on!
Thanks a lot!
my email address: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
(BC == "Brian Clark") [EMAIL PROTECTED] writes:
BC Likewise, if you get into the habit of doing ? ? or ? ? in
BC tandem, your worries will soon disappear.
P.S. a decent editor that has *good* syntax highlighting (Ie.
different schemes for HTML, JavaScript and PHP highlighting in the
same
I know this is kinda silly. but, if I have the following, will the file
only be included when the case is matched or does require always bring in
the file regarless?
case blah:
require('include.php');
do something
break;
Hello Shane,
(SR == "Shane Reid") [EMAIL PROTECTED] writes:
SR I reconfigured php with ./configure
SR --with-mysql=/usr/local/etc/mysql
SR --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no
SR longer start. I removed the path from the mysql to get the
SR webserver back up but my
I know this is kinda silly. but, if I have the following, will the file
only be included when the case is matched or does require always bring in
the file regarless?
case blah:
require('include.php');
do something
break;
Pretty sure it depends on whether your file system is
Hello Jon,
(JR == "Jon Rosenberg") [EMAIL PROTECTED] writes:
JR I know this is kinda silly. but, if I have the following, will the
JR file only be included when the case is matched or does require
JR always bring in the file regarless?
That is *supposed* to be the way it works. That is
Hi, I'm involved in a conundrum that is a little difficult to explain
with plain English. Perhaps some PHP code will help you understand
what I am attempting:
#Option 1: code I wish worked
$s = include("phpcode.php");
#Option 2: also code I wish worked
$s = sprintf("%s",
Hi, I'm involved in a conundrum that is a little difficult to explain
with plain English. Perhaps some PHP code will help you understand
what I am attempting:
#Option 1: code I wish worked
$s = include("phpcode.php");
#Option 2: also code I wish worked
$s = sprintf("%s",
Hey guys this one might be simple for ya..
how do you get a exponent of a verable.. example...
?
$Value = 4;
$Exponent = 2;
$Equals = 1E$Exponent + $Value;
PRINT ("Equals");
?
shoudl be simple.. i have tried all kinds of things.. please help
Ian LeBlanc
2tonecafe.com Admin
727-517-3866
You
Hello Ian,
(IL == "Ian LeBlanc") [EMAIL PROTECTED] writes:
IL Hey guys this one might be simple for ya..
IL how do you get a exponent of a verable.. example...
?php
$value = 4;
$exponent = 2;
$equals = pow($value, $exponent);
print($equals);
?
exp(num,pow) i do believe. of course this is off the top of my head
Gfunk
My name was Brian McGee,
I stayed up listening to Queen,
When I was seventeen.
http://www.gfunk007.com/
- Original Message -
From: "Ian LeBlanc" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Yeek! Not quite what I meant. I don't think that web servers have any
business being on windows boxes. I was wondering if there were a way to
upload using something like scp from a windows (or other) browser to a
unix server.
bard wrote:
the people who make putty (my favorite ssh client
'require' ALWAYS includes the file; 'include' is what you want here.
not since v4.0.2(?) came out ...
I heard from Zeev that require() and include() behave now just about the
same.
Read our posting regarding this topic of 1-2 month ago..
Cheers,
Maxim Maletsky
The tradeoff is that include is
here we go, from Zeev:
As of PHP 4.0.3, the implementation of require() no longer behaves that
way, and processes the file 'just in time'. That means that in the 1st
example, the file will be processed a hundred times, and in the 2nd
example, it won't be processed at all. That's the way
At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote:
here we go, from Zeev:
As of PHP 4.0.3, the implementation of require() no longer behaves that
way, and processes the file 'just in time'. That means that in the 1st
example, the file will be processed a hundred times, and in the 2nd
rasmus Wed Jan 10 22:06:03 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
More people for the documentation team
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.27 CVSROOT/avail:1.28
--- CVSROOT/avail:1.27 Tue Jan 9 15:46:44 2001
Look into output buffering (ob_* functions). You wouldn't
want to do that with your whole script; but there is an
example (if not in the manual it's on zend I believe) so you
can assign the results (what would've been outputted to the
browser without the buffering) to a variable.
--Toby
-
$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php");
This should be what you're after. In PHP4 there _may_ be some way
to use the inbuilt buffering for that purpouse, but I doubt it.
Perhaps this could be added to the language? It would be a good
counterpart to eval()...
If the system() doesn't return something, try using the backticks (left of
the 1
key) like so:
$s = `/path/to/php /path/to/yourfile.php`;
Gfunk
My name was Brian McGee,
I stayed up listening to Queen,
When I was seventeen.
http://www.gfunk007.com/
- Original Message
On Wed, 10 Jan 2001, Kristofer Widholm wrote:
Basically, I'm wondering if there is a way to redirect print and echo
output from PHP to a variable instead of directly to a browser or
file stream. What I'm trying to do is create code that can generate
an HTML page to a variable that I can
Cool, didn't think you could do that. Well never mind me then ;-)
Gfunk
My name was Brian McGee,
I stayed up listening to Queen,
When I was seventeen.
http://www.gfunk007.com/
- Original Message -
From: "Matt McClanahan" [EMAIL PROTECTED]
To: "Kristofer Widholm"
Try this:
function my_eval($code) {
ob_start();
eval($code);
$retval = ob_get_contents();
ob_end_clean();
return $retval;
}
$str = my_eval("echo 2+2;");
echo $str;
-Rasmus
On Thu, 11 Jan 2001, Kristofer Widholm wrote:
Here's what you wrote, 01-01-11:
$s = sprintf("%s",
You might want to look at http://www.zend.com/codex.php?id=113single=1
Maciek
-Original Message-
From: Huang Wenhai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 3:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to add a user of LDAP?
I want to add a user of my
Here's what you wrote, 01-01-10:
Try this:
function my_eval($code) {
ob_start();
eval($code);
$retval = ob_get_contents();
ob_end_clean();
return $retval;
}
$str = my_eval("echo 2+2;");
echo $str;
Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al,
Thank you for your replies.
"C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf");
This string contains a newline... You need \\ on each of those, or just use
/ and I think it will make everybody happy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
There are settings in php.ini for that, I think...
- Original Message -
From: Michal Thomka [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 4:24 AM
Subject: [PHP] Session cookie expiration
I am working on an aplication which uses sessions, and I would
I don't think it looks for specific HTML tags to strip.
Anything that looks like xxx or /xxx is going to get yanked.
In other words, it strips *EVERY* HTML tag, no matter how obscure.
- Original Message -
From: "Jon Rosenberg" [EMAIL PROTECTED]
Newsgroups: php.general
Sent:
I think you want to do more like this:
session_start();
if (!session_is_registered('cart')){
session_register('cart');
$cart = array();
}
- Original Message -
From: "JB" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Wednesday, January 10, 2001 3:43 PM
Subject: [PHP] Cannot
Hi. Does anybody knows how to have different configuration options, that
is,
different php.ini files, for several different sites that reside on the
same
server?
I have IIS and the CGI version of PHP 4.04.
H...
I dunno how IIS does Virtual Hosting, but maybe you could have a different
Most dbs use "localhost" for that, and the database username/password that
is configured into the database software/tables...
I know nothing of Interbase, but that's how all the others work...
If "localhost" doesn't work for the host, try "127.0.0.1"
- Original Message -
From: "Chris
Can somebody please give me a starter in trying to run a local application
(.exe) from a html button eg. Does it involve exec() or system() ? And if
so, could somebody give me an example. I'm too dim to learn any other way
;)
exec("C:/program files/whatever/full/path/something.exe", $output,
*WHY* not use auto_increment?
Would the builtin http://php.net/uniqid function not work better?
*NEVER* seed the random number generator more than once per script. Call
srand() once, and only once.
The return() statement will return the MySQL resource ID, which is probably
not useful, but all
You could save yourself a whole lot of headaches by putting the files in the
file-system, and storing only the path in the database...
Also, IE and Netscape use different things to populate the filename box on
the download dialog...
One uses Content-disposition header(), and one uses whatever
Phorum?
- Original Message -
From: "H. Wade Minter" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Tuesday, January 09, 2001 2:36 PM
Subject: [PHP] Discussion board recommendation
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm looking for a PHP/MySQL-or-Postgres based
I think the subject pretty much says it all. I need help setting up things
on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL
database on a Linux box.
Any help appreciated.
- Theo
Sorry about cross-posting to the two lists, but I figured it was pertinent
to
1 - 100 of 102 matches
Mail list logo