Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a
variable unless it´s inside a class. I never really tested that before, but
outside a class this won´t work:
?
var $test = hello;
echo $test; // returns nothing
?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http
);
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_start_ with 3 digits followed by a - then 3 digits,
then another - and end with 4 digits
Example:
$number = 555-666-0606;
if(ereg(^[0-9]{3}-[0-9]{3}-[0-9]{4}$, $number)) {
echo valid phonenumber;
}
else {
echo invalid phonenumber;
}
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim
-Original Message-
From: tony yau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 9:03 PM
found the answer sorry about this
But You don´t wanna share the solution with the rest of the class?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
. On the Fedora box I get
nothing, a blank page. There is content in the /tmp directory on the
Fedora box.
Are You perhaps running SElinux?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Madsen
Systemudvikler/Systemdeveloper
On 5/19/05, Kim Madsen [EMAIL PROTECTED] wrote:
-Original Message-
From: Michael Stearne [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 9:10 AM
I am having the strangest problem using system() or exec() or any
variation. None
to generate the file in a new window and check that a session var has been set
earlier... I´m doin that on a site with (legal) mp3s
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be piece of cake.
Current Setup:
~user/public_html // containing all your php files
Add a new dir: ~user/tmp (or upload)
And have the uploaded files uploaded into that dir (don´t forget permissions)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
:-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
ComX Networks A/S
Naverland 31, 2
DK-2600 Glostrup
Denmark
Phone: +45 70 25 74 74
Fax: +45 70 25 73 74
Web: www.comx.dk
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
is a nice and simple solution.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
option3/option
Should be
option value=33/option
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
into the live
environment. Some companies use several levels like dev, pre-production
before production.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
from Episode 1)
No really, does the reader by any chance emulate a keyboard like a handscanner
does? That would definetly be a nice thing for You :-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net
!
It made my FireFox crash!
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: M Saleh EG [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 2:57 PM
To: Rory Browne
Cc: [EMAIL PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] htmlArea - a 'client editor'
www.FCKEditor.net http://www.FCKEditor.net
FCKEditor is the best
-Original Message-
From: xfedex [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 4:57 AM
To: php-general@lists.php.net
Subject: Re: [PHP] autocomplete a field
Hi,
Anyone know if theres a way to disable this feature for user using old
browsers or not suporting JS/XML?
It
-Original Message-
From: Kim Madsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 9:14 AM
To: php-general@lists.php.net
Subject: RE: [PHP] htmlArea - a 'client editor'
Yeah, looks cool, but Im having a *lot* of trouble getting the listing of
current images and upload
? Or set earlier in the script?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
works on several platforms, but is
difficult to setup with image browsing and upload functionality.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Rory Browne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 9:49 AM
To: Kim Madsen
Cc: Denyl Meneses Guillén; php-general@lists.php.net; M. Sokolewicz
Subject: Re: [PHP] Re: editor in WEB PAGE
On 6/21/05, Kim Madsen [EMAIL PROTECTED] wrote
hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 8:13 PM
sarcasm
you're not your, but it's understandable coming from someone
named after a car license plate number.
In denmark it costs around 1000€ to get a license plate with Your own
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*never* host anything on a server with safe_mode on!
System(cat /home/USER/include/db_setup.inc);
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ahem!
-Original Message-
From: Kim Madsen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 28, 2005 12:01 PM
I would *never* host anything on a server with safe_mode on!
s/safe_mode on/safe_mode off/
/Kim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
´M more safe and so are my customers ;-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
=text name=txtKeyValue id=txtKeyOther /
It´s overwritten then.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
ComX Networks A/S
Naverland 31, 2
DK-2600 Glostrup
Denmark
Phone: +45 70 25 74 74
direct: +45 32 87 73 93
Fax: +45 70 25 73 74
Web
packages next time? And where
can one read about this?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a small
part of a much larger workflow, which runs in PHP, therefore it would be
preferred if the configs of switches and routers could be in PHP aswell.
(Posted yesterday in alt.comp.lang.php and the day before in comp.lang.php)
--
Sincerly
Kim Madsen
Systemdeveloper / ComX - http://www.comx.dk
Kim Madsen
Systemdeveloper / ComX - http://www.comx.dk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in a different software ?
http://dk.php.net/manual/en/function.header.php
Please help very urgent
:-)
--
Sincerly
Kim Madsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
regards
ComX Networks A/S
Kim Madsen
Systemudvikler
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70 25 73 74
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
add new ones or
remove unsued/unsage ones. Depending on the download time that is the part,
that take most of the time or not ;-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70
You enough ideas to start Your project :-)
Sincerely
Kim Madsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and setting set_time_limit(0);
nothing works.
I still get Fatal Error: maximum execution time of 60 seconds.
Did You restart the webserver?
Sincerely
Kim Madsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with queries like:
Select blablabla FROM t1,t2,t3
WHERE customers LIKE '%$s%'
OR name LIKE '%$s%'
OR domain LIKE '%$s%'
OR email LIKE '%$s%'
OR log LIKE '%$s%'
AND t1.id = t2.t1_id
AND t1.id = t3.t1_id
Horror!
Kind regards
Kim Madsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
, in Denmark ÆæØøÅå, in sweden
äÄöÖ and so on. Of course I could do something like:
ereg(^(.+ ).* ?(.+)$, $name, $regs); // untested
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70 25 73
Networks A/S
Kim Madsen
Systemudvikler
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70 25 73 74
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at gettype()
http://dk2.php.net/manual/en/function.gettype.php
$number += 2.00;
Should convert the var to a float according to:
http://dk2.php.net/manual/en/language.types.type-juggling.php#language.t
ypes.typecasting
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
A/S
Kim Madsen
Systemudvikler/Systemdeveloper
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70 25 73 74
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but a instance from A cannot call the function
Container. Read more here: http://dk2.php.net/manual/en/keyword.extends.php
You could just drop the idea of several classes or the OOP programming (I
removed the D on purpose due to the bad design ;-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim
($AcctSessionTime/90),
2);
will do the trick for ya.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
Naverland 31
DK-2600 Glostrup
www.comx.dk
Telefon: +45 70 25 74 74
Telefax: +45 70 25 73 74
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http
-file-path=/usr/local/php.ini
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
@ to get warnings?
$defaultfile = ffmail.txt; #default file to write to
@ $results = fopen($datafilename, a); #open file and supress errors
You set $defaultfile, but tries to open $datafilename?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP
A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for the info:
If You compile PHP there´s a parameter to use:
--with-config-file-path=/usr/local/php.ini
Skip the php.ini from the _path_ (doh!)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net
. How?
Did You search? http://dk.php.net/manual-lookup.php?pattern=replace
Str_replace, ereg_replace, preg_replace is just a few friends, that will
help You. Php.net is Your best friend ;-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General
this feature (or bug)?
This is with php 5.0.2.2 on Windows XP.
I´m using 4.3.10
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: BAD HEADER Non-encoded 8-bit data (char E5 hex) in message
header 'Subject': Subject: ADVARSEL: F\345 IP adresser ti...
Any tips/ideas?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
.
Might just create my own function since it´s 6 chars that needs to be
converted...
BTW, are you _the_ Kim Madsen of TKBMMemtable fame ?
Hehe, I doubt that since I have NO clue what the heck You´re talking about :-)
/Kim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 6:09 PM
convert it to quoted-printable using eg. imap_8bit()
That seems to be, what I want _but_ NO PHP is printed after I call this
function. I turns out that we haven´t got PHP compiled
-Original Message-
From: Kim Madsen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 3:56 PM
I´d like to encode the subject in mails generated and sent by PHP, so
Danish letters like æ,ø and å can be used too... like this:
Subject: Problemer med =?ISO-8859-1?Q?f
/function.rand.php
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but its not necessary, threfore $786.00 and $1.00 matches too. The ()
around all expressions means, that we save whatever is matched into $pricetag
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$uss; HERE $uss is empty!
Yeah, cause that´s _not_ what the manual says:
http://dk.php.net/manual/en/ref.session.php
It should be $_SESSION['nfo']['fu'] = 12;
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List
is not an option? Cause that would be the smartest way to do it. In this
way all the checked boxes are in $_POST['interests'] and can be seen
with
print var_dump($_POST['interests'])
You create the checkboxes with a for loop
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
choose another dir than /tmp
or the session files will never be deleted.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the whole idea of load balancing!
Might not work for your situation, but it would get around the
file/session issue...
The solution is to have a common share that all servers in the LB scheme
use for storing session variables.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
FROM db1.members, db2.addresses WHERE db1.members.id =
db2.addresses.member_id
It´s been a while(years!) since I´ve used this, so I´m sorry if the syntax
ain´t correct.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List
in having a-zA-Z in the pattern since eregi() is case
insensitive.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= 789;
if(ereg([^1-6], $var1))
print $var1 is true;
else
print $var1 is false;
returns false
if(ereg([^1-6], $var2))
print $var2 is true;
else
print $var2 is false;
returns true
It´s untested though :-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler
/ best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_no_ difference at all, I´m still getting
permission denied, when calling fopen :-/
[EMAIL PROTECTED] dev]# ls -al ttyS*
crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing
have no clue, what that is and do. The server
with the problem runs Feodora 3, I´m running RH9 on my own servers.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
-Original Message-
From: Burhan Khalid [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 10:43 AM
Are you running mod_security?
Nops:
[EMAIL PROTECTED] ~]# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
And SELinux is now disabled, still no change... :-/
/language.operators.arithmetic.php
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a Multilanguage site for a bar
in Cyprus. You can have a look at gg.emax.dk and the langfile is here:
http://gg.emax.dk/language/UK/lngfile.txt
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
)
and see if that allows you any kind of access. Doubt it, though.
I´m using exec to set the comport speed and the likes.
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 4:02 PM
-- Forwarded Message --
Subject:
Date: Wednesday 06 April 2005 07:30
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Thank you for contacting
set:
if($last_id == $ref) // highlight the line
Is that what You are looking for?
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the value instead:
// Output
Return imagejpeg($image_p, null, 100);
And call it like:
$new_img = imageresize('100', '75', 'pages/1.jpg');
Print img src=\$new_img\ alt=\$new_img\;
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General
scale multi-language websites with PHP/MySQL?
Look in the archives, it´s less than 2 weeks since this was discussed (again :-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
around 7/4-2005
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
outside webscope, I.E.:
/home/USER/public_html/
/home/USER/private/
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it should match a 2 or 3 digit
number, with a single digit afterwards. This one matches 9abcd.
Correct: ^[0-9]{2,3}\.[0-9]{1}$
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hi PHP people
I have a really strange and annoying problem. I've got a site, where
members can download music. User clicks index.php (in index.php
there's an iframe, that opens another file), if certain check are okay
then a popup window opens download.php, where a mp3 file is fetched
from the
Andrea Giammarchi wrote on 2009-10-03 13:40:
Do you want users download the file or the zip?
They can choose between the two.
do you send other headers before the download?
Header must come first (before you output anything) or you get a parse
error, so I'm not sure what you mean here? You
Hi kranthi
kranthi wrote on 2009-10-03 16:21:
Thats a lot of headers to read..
At a first glance I can see that you did not specify a content-length
header. this is a must and must be equal to the size of the file in
bytes
I've noticed that too, but it's impossiple to determine the length
Hello Andrea
Andrea Giammarchi wrote on 2009-10-04 18:49:
Header must come first (before you output anything) or you get a parse
error
I try to better explain ...
HTTP works like this: you ask something, you receive something, html and
texts are just one option.
Got it so far
Your
Hi Andrea
Andrea Giammarchi wrote on 2009-10-04 19:36:
Unless I am missing something, your page has too many if and it always
ends up with print something ... but there is no exit after the
download, so the zip will have extra output included without a reason
... which is an error, imho,
Sam Stelfox wrote on 2009-10-06 18:09:
If you are distributing your application over multiple servers, using a
database for session tracking allows a user to continue there session
regardless of which server their request bounces too. It prevents the
need for 'sticky' network connections which
Hello
Andre Dubuc wrote on 2010-01-02 02:20:
Hi,
I need to extract the first digit after the decimal point from a number such
as 28.56018, which should be '5'.
Since no one came up with the simple solution:
$num = 28.56018;
ereg(^[0-9]+\.([0-9]){1}, trim($num), $regs);
if($regs[1])
Andrea Giammarchi wrote on 2009-10-05 18:26:
There's a useful function called headers_sent() which checks to see if
the headers have already been sent to the browser. This might be a good
place to throw into your code at various points to check and see if
something is being written
Dotan Cohen wrote on 2009-10-18 10:52:
I assumed the reason you wanted to do escape the string so that you could
perform DB operations.
Yes, that is my intention. However, the function is found in an
include file of functions used in many different scripts, each of
which connect to a
Dotan Cohen wrote on 2009-10-18 21:21:
I thought that one could not test if a database connection is
established or not, this is the most relevant thing that I found while
googling that:
http://bugs.php.net/bug.php?id=29645
from http://www.php.net/manual/en/function.mysql-connect.php
$link =
Hey
Talawa wrote on 2009-10-19 18:29:
Hello everyone,
I post a message here because i didn't find any solution yet.
I just finished video streaming service on my website. I use xmoov script
(http://xmoov.com/xmoov-php/) to do that. It works like a charm, but I find an
issue. When the video
Hi Philip
Philip Thompson wrote on 2009-10-19 22:47:
Hi all.
I know this question has been asked a thousand times on the list, but
my searches in the archives are not being nice to me. So... please don't
kick me.
Why would anyone do that? We're PHPeople and PHfrinds (ho ho)
Currently,
This has been solved today. Talawa had a similar problem and came up
with a solution to his problem, namely using session_write_close()
before creating the headers. That stunt also solved my problem :-)
--
Kind regards
Kim Emax
Kim Madsen wrote on 2009-10-03 13:30:
Hi PHP people
I have
Dotan Cohen wrote on 2009-10-20 20:06:
if(mysql_real_escape_string($variable) === false)
{
// create a default DB connection
}
Here, the key seems to be to turn the warning level down, which I do
not have privileges to do on this server. But it fact this seems to be
the key that I was
Hey Gary
Gary wrote on 2009-10-20 20:31:
I have several sites that are getting hit with form spam. I have the script
set up to capture the IP address so I know from where they come.
I see that a lot suggested CAPTCHA, I don't like those either.
The IP solution will give you a constant
Philip Thompson wrote on 2009-10-20 21:58:
I got it to draw the different background colors successfully. However,
drawing borders is not as straight forward. I'm sure I could get it
working as well... but I'd rather it work *out of the box*. Thanks for
the suggestion. ;)
Well, you're
Gary wrote on 2009-10-20 22:55:
I like that idea,so in other words they have to get to the form from another
page on the site, and you set a time limit for a minimum amount of time they
spend on the page(5-10 seconds)?
I don't set any time, just the session to prevent direct hits from a
spam
Ashley Sheridan wrote on 2009-10-21 22:43:
The {} only become really useful when you're trying to reference arrays
within a string:
$var = array('great', 'boring');
$text = this is {$var[0]}.;
Without the curly braces, PHP wouldn't be able to figure out whether you
wanted the end string to
Ashley Sheridan wrote on 2009-10-21 22:56:
Try this though:
?php
$var = array(array('great','alright'), 'boring');
print This is $var[0][0].;
Print This is different from your previous example :-);
--
Kind regards
Kim Emax - masterminds.dk
--
PHP General Mailing List
Hi PHPeople
I have an odd problem at my new work and wonder if it's some sort of odd
setup that is causing this problem when using sessions:
if($test) {
$query = SELECT count(*) FROM articles WHERE group1 = 'fp';# AND
group2 = 'login';
$r = mysql_query($query) or die('Db error: ' .
1 - 100 of 150 matches
Mail list logo