For compatibility among browsers, you might want to call a
header('Content-type: text/css');
On top of the css-file-to-be.
Wouter
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 2:03 AM
To: [EMAIL PROTECTED]
Subject: Re:
Thanks Curt.
This solution works indeed. BUT, there's one but. Isn't there a way to not
have to tell PHP that I want the return of $this-AddFoo() as a reference?
In the actual code I want to worry as little as possible about specific
things like this. Isn't it a little strange that you have to
I don't have much experience in it myself but I've seen it working .. Where
you should be looking is not really PHP but more the Apache suexec
wrapper/module. You can then specify a user and group in your VirtualHost
section.
Wouter
-Original Message-
From: John Nichel [mailto:[EMAIL
You'd probably be able to get the first Friday in a year with smth like:
$Friday = strtotime(First Friday in 2003); And if you go for the count 7
days up method .. Pitfall could be forgetting to check if you're still in
the year you started in.
Hope I added something valueable ;)
-Original
What I would advise is to capture the output of your reciept into a
variable. Assuming that you've got some function calls, maybe even Database
request mixed up with some print commands .. Or even some times where you
escape out of php (?). Something like this
?php
$RecieptID = GetRecieptID();
Hmm .. I haven't been on the list for a while so it took me some time to
answer ;).. Anyways, what I believe is a possible cause for your problem is
that there simply ain't no session started. Maybe the always start session
before the php page request setting was On if not configured, but is now
By advising you something like this
2 ?php
3 exec('echo p 1 | mail', $Lines);
4
5 foreach($Lines as $Line) {
6 print ' '.$Line.\n;
7 };
8 ?
Would I apply for the bonus points? It would generate output similar to
Mail version 8.1 6/6/93.
Pretty easy, just make the regex stuff a little less greedy .. ;)
class='newsitemcontent-td' colspan=2(.*?)\/td\/tr/
That would catch it .. And yes, the question mark is both correct and
confusing. But it doesn't mean maybe in here. Now let's hope that your
post doesn't include td/tr ..
Quite Right !
So, since I'm not quite a newbie I did not read all the guides .. RTFM (Read
The F*ck!ng Manual) and STFW (Search The [EMAIL PROTECTED] Web) I already knew, but
what does STFA stand for ;)..
Wouter
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Don't think there's one function for it .. Though, you may want to try the
output buffers.
ob_start();
( .. Exec here ..)
$Var = ob_end_clean();
,
Wouter
-Original Message-
From: Uros [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 3:18 PM
To: PHP General list
Subject:
You should be able to do something like this:
$kk1_current = something;
$data = array (kk1_current,kk2_current,mk_current);
$data_post = $$data[0]; . \n; // I want, $data_post = whatever
is inside $kk1_current in this example -- strval obviously doesn't work in
the case
echo
Might want to try to send aa 'commit' command to the database. Just the
first thing that enters my mind
- -Original Message-
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
- Sent: zondag 14 september 2003 7:55
- To: [EMAIL PROTECTED]
- Subject: [PHP] innodb + php caching issues
Start by giving us the value of $tt, ... That'll probably tell more about
the problem. Or you can do something like this:
if ($res = mysql_query($tt)) {
$num_rows = mysql_num_rows($res); //This is line 25
$x=1;
for($i=0; $i5; $i++) {
$a =
: Monday, September 15, 2003 12:49 AM
To: esctoday.com | Wouter van Vliet
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Program works only when there are records :-(
Hey,
Thanks for replying.
sorry, i thought i explained what $tt was, but here it is in program code if
you want to be clear on it.
$tt
Thanks all for your replies .. It's pretty much what I already thought, a
really secure way of handling sessions there is not. Though most of the most
interesting information came from Jason (Yes! I'd love to see your custom
session handler .. if be it only for inspiration to the one I'm planning
or even:
title?=(Thank you, $_POST[from])?/title
:P
- -Oorspronkelijk bericht-
- Van: Sid [mailto:[EMAIL PROTECTED]
- Verzonden: zondag 14 september 2003 3:43
- Aan: Stevie D Peele; [EMAIL PROTECTED]
- Onderwerp: Re: [PHP] Whats wrong?
-
-
- Try this
-
- title?echo Thank
Let's explain this thing with the superglobals now once again .. so that
everybody knows it ...
In newer versions of PHP some superglobal arrays are available...
$_GET[] - For any variable passed through the query string (in the URL,
or address bar in a
check the manual on the rand(); function ..
If you want to make sure this number is unique .. create an array storing
all the numbers you've used once and do some nice tricks with a loop and
stuff untill you get a nice unique random number ... like this:
?php
$UsedValues = Array();
function
If you're using a RedHat linux distribution .. have you also installed the
php-mysql package .. I'm not totally sure about it's name, just give a
search for either mysql or php on the redhat network (rhn.redhat.com) and
you'll see that there's a package for php to connect with mysql ... Not sure
First thing I notice as being at least a bit odd is this part:
$nArraySize = count($_POST['test1']);
$test1=$_POST['test1[]'];
$test2=$_POST['test2[]'];
what are you trying to do with that? .. What I'd expect it to look like is
smth like:
$nArraySize = count($_POST['test1']);
$test1 =
What does your form tag look like?
-Oorspronkelijk bericht-
Van: HPS [mailto:[EMAIL PROTECTED]
Verzonden: maandag 9 juni 2003 9:32
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] post data?
Dear all,
i am using PHP 4.2.2 with Red Hat 8.0
i had a form in form.php, which has a form like this
Probably you should look over here for info about suexec
http://httpd.apache.org/docs/suexec.html, or check the 'sudo' man pages...
With that you could gain root privilages..
-Oorspronkelijk bericht-
Van: vijaypatel [mailto:[EMAIL PROTECTED]
Verzonden: maandag 9 juni 2003 6:06
Aan: [EMAIL
]
Onderwerp: Re: [PHP] post data?
the form tag is
form action=syn2.php method=post onSubmit=return checkform(this);
Thx!
HPS
Esctoday.Com | Wouter Van Vliet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What does your form tag look like?
-Oorspronkelijk bericht-
Van: HPS
First of all, may I advise you to use some sort of indenting .. that pretty
much improves the readability.. (also for the ones helping you ;)..
?
$connection = mysql_connect($host, $user, $pass) or die (Unable to
connect!);
mysql_select_db($db) or die (Unable to select database!);
$_POST[submit]=
Folks,
I'm working on quite a large website with a lot of php pages.. And a lot of
includable functions (modules).. Sometimes one of those modules gets
included twice accidently and then it generates an error .. of course.. This
made me wonder of there's any way to prevent the function from being
Does any of both (or any other) banner advertising applications support
langauge specific banners.. So that Greek visitors would get only the
banners you have said to be Greek? And for example maybe even if you don't
have any advertisements for Cyprus it would get the Greek ones
automatically?
Thanks !!!
-Oorspronkelijk bericht-
Van: Wendell Brown [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 18:52
Aan: PHP General; Wouter van Vliet
Onderwerp: Re: [PHP] Automatically include global file ...
On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote:
I've heard
What comes in my mind is that usually in offices (or schools) all
workstations have IP's within some IP range.. Unless each workstation dials
up to or makes it's own connection with 'the internet'...
You should be able to do something with that..
-Oorspronkelijk bericht-
Van: Dale
What you need to generate as HTML looks smth like this
---
FORM method=post action=page.php
SELECT name='somename[]' size=10 multiple id='somename[]'
OPTION value='one'First Thingie/OPTION
OPTION value='two'Second Thingie/OPTION
OPTION
29 matches
Mail list logo