Yuval Schwartz wrote:
> Hello,
>
> Can you please help me, I am writing code where I create a file and write to
> it from a form on a webpage and then read and display this file on the
> webpage.
> I want to change the color of the text that is written to the file.
> Do you know how I can do this?
"Johny Burns" <[EMAIL PROTECTED]> writes:
> I am having fields in my table where I put times like 4:30pm in string
> format
Check this:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-types.html
Perhaps you could use a data type date for that.
> Can anybody help with function which hel
On Feb 17, 2008 12:53 AM, Johny Burns <[EMAIL PROTECTED]> wrote:
> I am having fields in my table where I put times like 4:30pm in string
> format
>
> Can anybody help with function which helps detect.
> Is it the current time between those fields?
>
> function checkinzone($time1,$time2):boolean
Nathan Rixham wrote:
Richard Lynch wrote:
I don't know if it's before/after, but PHP can't change the GET
request to something it wasn't...
So THAT was the URL requested.
You might have some kind of funky mod_rewrite rule messing you up...
On Tue, January 29, 2008 5:22 am, Mick wrote:
Ri
I am having fields in my table where I put times like 4:30pm in string
format
Can anybody help with function which helps detect.
Is it the current time between those fields?
function checkinzone($time1,$time2):boolean
Has to verify does the current time is in those 2 variables.
Thank you for
Rob Gould <[EMAIL PROTECTED]> writes:
> I've got a PHP script that inserts "00012345678" into a record in a
> mySQL database (it's a barcode). Things work ok unless the number has
> preceding zeros, and then the zeros get cut off and all I get is
> "12345678".
>
> I have the mySQL database fieldt
char(14) is a better data type
bastien
> Date: Sat, 16 Feb 2008 15:22:17 -0800
> From: [EMAIL PROTECTED]
> To: php-general@lists.php.net
> Subject: [PHP] PHP/mySQL dropping zeros after inserting number into record
>
> I've got a PHP script that inserts
I've got a PHP script that inserts "00012345678" into a record in a mySQL
database (it's a barcode). Things work ok unless the number has preceding
zeros, and then the zeros get cut off and all I get is "12345678".
I have the mySQL database fieldtype set to bigint(14). If the maximum length a
Let us look at XSS now. http://sla.ckers.org/forum/list.php?2 Looks
like there are quite a few of those too. If Google/Yahoo can't stop
this stuff how are us mere mortals supposed to?
In my experience, the bigger the organisation, the more mere mortals.
Also, a small team has a much bet
Hey folks,
Do you know how can I create a protected zip file with password? Is
there anyway? I've search on the internet, but without success.
Thank's in advance,
Petrus Bastos.
Hi everybody,
I need help with sessions.
I have a simple authentification relying only on
sessions (i don't use cookies). After the user submits
his username and password, the script checks if that
corresponds to a record in a mysql table. If this is
the case "$_SESSION['sessioname'] = $_POST['log
Nathan Rixham wrote:
> Shawn McKenzie wrote:
>> Shawn McKenzie wrote:
>>> Shawn McKenzie wrote:
Jim Lucas wrote:
> nihilism machine wrote:
>> this still does not work, if a domain has no preceeding www. it
>> redirects to http://www.www.site.com, if it has a www. it goes to
>>
Pastor Steve escribió:
Greetings,
I am getting an error when I am trying to upload a PDF file through a
script.
When I do a print_r($_FILES) I get the following:
Array
(
[userfile] => Array
(
[name] => document.pdf
[type] =>
[tmp_name] =>
Shawn McKenzie wrote:
Shawn McKenzie wrote:
Shawn McKenzie wrote:
Jim Lucas wrote:
nihilism machine wrote:
this still does not work, if a domain has no preceeding www. it
redirects to http://www.www.site.com, if it has a www. it goes to
www.www.mydomain.com, any ideas?
If you are running Ap
Am Freitag, 15. Februar 2008 15:35:02 schrieb Andrew Ballard:
> It's there for me as well. (Firefox and IE6, Windows XP). Any chance you've
> got a browser plugin or other "feature" that is blocking the image?
I just tried it with Firefox in safe mode, same result: No captcha.
--
PHP General Mai
Am Freitag, 15. Februar 2008 15:35:02 schrieb Andrew Ballard:
> It's there for me as well. (Firefox and IE6, Windows XP). Any chance you've
> got a browser plugin or other "feature" that is blocking the image?
I thought it was privoxy, but i tried without proxy and had the same result. I
copied
Am Freitag, 15. Februar 2008 10:13:15 schrieb Peter Ford:
> What if you don't have a DTD in the XML to validate it with?
> I haven't tested it but it was something that worked in the Java XML
> processing stuff. No DTD, no validation: simple!
> So have you tried stripping the DOCTYPE declaration b
Its a text file and so doesn't support markup. You could write out html into
the file that does mark it up and could be displayed to the user via the
browser...or you could use regex or str_replace to mark up certain text on the
read of the file to display to the user
bastien
-
// Check if site is preceeded by 'WWW'
public function checkWWW() {
$myDomain = $_SERVER['SERVER_NAME'];
$FindWWW = '.';
$POS = strpos($myDomain, $FindWWW);
if ($POS === false) {
return false;
} else {
return true;
Hello,
Can you please help me, I am writing code where I create a file and write to
it from a form on a webpage and then read and display this file on the
webpage.
I want to change the color of the text that is written to the file.
Do you know how I can do this?
This is some of my code if you nee
Eric Butera wrote:
> Let us look at XSS now. http://sla.ckers.org/forum/list.php?2 Looks
> like there are quite a few of those too. If Google/Yahoo can't stop
> this stuff how are us mere mortals supposed to?
In my experience, the bigger the organisation, the more mere mortals.
Also, a small
// Check if site is preceeded by 'WWW'
public function checkWWW() {
$myDomain = $_SERVER['SERVER_NAME'];
$FindWWW = '.';
$POS = strpos($myDomain, $FindWWW);
if ($POS === false) {
return false;
} else {
return true;
Jim Lucas wrote:
Valedol wrote:
On Fri, 15 Feb 2008 23:46:57 +0300, nihilism machine
<[EMAIL PROTECTED]> wrote:
this still does not work, if a domain has no preceeding www. it
redirects to http://www.www.site.com, if it has a www. it goes to
www.www.mydomain.com, any ideas?
checkWWW();
On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas <[EMAIL PROTECTED]> wrote:
Valedol wrote:
just try "if ($POS !== 0) {"
well, that said, isn't the first position in a string 0 ?
So, in the above example the OP would need
// This would mean that www. was found any where in the string
if ( $P
24 matches
Mail list logo