above your first ?php in any of your files.
James.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
files?
You may be seeing a problem that affected Mozilla prior to 1.0 release.
When it got a page as a result of a POST it wouldn't cache the result to
disk, which is where the View Source got it's data from. Something like
this may be affecting you.
Try it with Netscape 7 or Mozilla 1.0.
James
for this reason.
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wondering if any of the gurus out there have any insight...
I'm running a set of php scripts using nested output buffering +
sessions and I'm getting sporadic seg faults. If I turn off output
buffering it seems to work fine, which would be great if I didn't need
it.
I'd post code, but there's
$loop])) then you know if it's set or
not.
I think that just about covers it. Apologies if I have
misread/misinterpreted what you have asked.
James Green
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are not getting assigned
the data being passed.
QUESTION: has anybody else run across this and
what was the resolution?
-
James Daily
Phone : 816 943 9891
Email : [EMAIL PROTECTED] (or hit reply button)
Web : http://tellmama.com/
Philosophy
.
It seems I'm damned if I do and damned if I don't!
JR.
--
James Redfern [The Redfern Organization]
PGP Auto-responder mailto:[EMAIL PROTECTED]?subject=0xCB81E8E8
Fingerprint: 6809 FE89 4CEF E76F C6DF 04BF 46DC 58B9 CB81 E8E8
...You always suppress momentary anger at something you deeply
Hello;
I'm using PHP 4.2.3 on a Solaris 2.8 (Sparc) system.
I've been having some difficulties getting PHP-Nuke 6.0 to work for me.
I eventually narrowed the problem down to incorrect results from calls
to file_exists(). It seems that file_exists() is having trouble finding
an existing file
HI!!!
Is it possible to get the name of the class from a static member
function for which no object has been instantiated?
THANKS!
James.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Hey John,
something like this might work:
?
$string = This is a string with an embedded image [bird.gif,this is a
bird];
$string = preg_replace(/\[(.*?\.)(gif|jpg),(.*?)\]/i, img src=\\\1\\2\
alt=\\\3\, $string);
echo $string;
?
James
John A. Grant [EMAIL PROTECTED] wrote in message
[EMAIL
can you paste the full text of the code as you have it? I don't see anywhere
where you define the name of the file.
James Cox
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
Politicalia admin and editor
e: [EMAIL PROTECTED] :: w: http://www.politicalia.com
George,
your best bet is to have a table in your database which looks up the name of
the file, based on a more friendly name.
James
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
Politicalia admin and editor
e: [EMAIL PROTECTED] :: w: http://www.politicalia.com
The easiest way would be to use strip_tags(), though you could craft your
own regular expression.
http://www.php.net/strip_tags
James
Gary [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello All,
How would I strip all HTML before the info in
:
?
if (preg_match(/^-|-$/s, $string)) {
echo You cannot have a \-\ character at the beginning or end of your
string.;
} else {
echo Whatever;
}
?
Just my thoughts...
James
Brad Melendy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Ok, th
and HTML dependent on the
user agent, but you can incorporate the two - in the style sheet,
form, .form {
display: inline;
}
and in the HTML,
form class=form method=post
and IE will ignore the bits it doesn't do, as will Navigator.
Hope that helps.
Regards
James
--
PHP General
the character
values will be higher or lower than the numbers.
Regards
James
--
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]
are in daylight savings (GMT+1). Would this make a difference? (I
have already tried
echo mktime(0,0,0,1,1,1970,0);
to force non-daylight-savings, but I still get 3600.) Am I doing something
wrong, or have I found a bug?
Thanks,
James
--
PHP General Mailing List (http://www.php.net
Hi James,
Yes, you're right; I got -3600. But shouldn't the time returned reflect the
timezone we would be in on that date, rather than the one we are in now?
Thanks for your help.
James
-Original Message-
From: liljim [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:53
To: [EMAIL
Thanks, I'll use gmmktime() from now on!
James
-Original Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 13:54
To: Fairbairn,J,James,IVLH4 C; php-general
Subject: Re: [PHP] mktime() problem
I'm running 4.0.6 on a Solaris 8 box. The output given by
echo mktime
Oh dear, I still get -3600 when I do
echo gmmktime(0,0,0,1,1,1970);
Why?
James
-Original Message-
From: Fairbairn,J,James,IVLH4 C
Sent: 23 October 2001 13:57
To: [EMAIL PROTECTED]
Subject: RE: [PHP] mktime() problem
Thanks, I'll use gmmktime() from now on!
James
-Original
if your form is inside a table .. hide the FORM tags
In my experience, this just moves the closing whitespace to the end of
the table (just like if you insert text incorrectly between a tr and a
td).
The previous post I've made using the display: inline; style is in
fact W3C compliant.
--
I gave it a try
NN4.7 and 6.1 both ignored the 'display: inline' css in my test
There was actually an error in the HTML I posted, try this:
table bgcolor=redtrformtd1. form tag outside of
cell/td/form/tr/table
table bgcolor=redtrformtd2. form tag outside of
cell/td/form/tr/table
table
that you have to use 'text'
Sounds right to me.
Regards
James
--
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]
However with Netscape 4.75 when I call any page that has the Header(Refresh)
function I get a nasty pop up box which says The document contains no
data. I then click ok and the page loads exactly as it should but no
matter what I do I can't stop this pop up box from appearing, IE, Netscape 6
might be a syntax error in the .lib file you are including (missing ;,
possibly)... let me know.
-Original Message-
From: Alberto [mailto:alberto arround [EMAIL PROTECTED]]
Sent: 29 October 2001 10:14
To: [EMAIL PROTECTED]
Subject: [PHP] Parse Error
Parse error: parse error, expecting
oops, missed that one!
-Original Message-
From: Alexander Weber [mailto:[EMAIL PROTECTED]]
Sent: 29 October 2001 10:08
To: Alberto
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error
Just use
var $VAL_ID;
Names of variables always start with a $ sign.
Alberto wrote:
Parse
I'm trying to find a way to make streaming context for an internet game web site, like
continual updates from the game and game info for players, I was looking around but
can't find a function to help me, if you can point me in the right direction please
drop me a line
- James
in the php.ini or
httpd.conf files appears to have changed.
I'm at a loss. Please help!
Thanks,
James Green
--
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
On Fri, 2001-11-16 at 17:49, Caspar Kennerdale wrote:
I am writing files to my server using
$fp = fopen(myfile.txt, w);
this all works. However in the php manual it says that by using the w
switch that php will create the file if it doesn exist
However this does not seem to work
I
On Fri, 2001-11-16 at 17:49, James Green wrote:
If I call foo?id=1, not only is the id variable not set,
_SERVER[QUERY_STRING] isn't either. Cookies and session variables work
fine, it's just variables passed via GET. If I turn off Multiviews, the
variables come through fine, but it means
On Fri, 2001-11-16 at 17:49, James Green wrote:
If I call foo?id=1, not only is the id variable not set,
_SERVER[QUERY_STRING] isn't either. Cookies and session variables work
fine, it's just variables passed via GET. If I turn off Multiviews, the
variables come through fine, but it means
socket path.
Many thanks,
James Green
--
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]
Hi,
Can anyone point me to a good explanation of how the parent::
constructor works? I've tried searching the php site for it with no
success.
I've been given a set of code to work on, but am getting the error:
Fatal error: Undefined class name 'parent'
for one section of it.
cheers. James
space is necessary to separate the
element name from its closure.
All major browsers will recognise br but if you want to be XHTML
compliant, br / should be used.
James.
--
James Stewart
http://www.britlinks.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hiya Dan,
If you're expecting new lines, you could do this:
$length = explode(\n, $message);
if (sizeof($length) 55) {
// error
}
And also limit the number of characters, using strlen()
James
Dan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
James
Ben Bleything [EMAIL PROTECTED] wrote in message
000801c11895$0d43b7a0$0201a8c0@allegro">news:000801c11895$0d43b7a0$0201a8c0@allegro...
I _believe_ (not totally sure) that mysql_query() can only handle one
statement at a time, and if you need to execute multiple, you will need
to use m
detailed info
;)
James.
Steve Wright [EMAIL PROTECTED] wrote in message
00a001c11a07$0d743f60$0615fea9@COM">news:00a001c11a07$0d743f60$0615fea9@COM...
HEy,
I am still a newbie, and have no idea how to use phpMyAdmin yet, and don't
really know much about MySQL databases and setting up tab
Hi Julian,
personally, I'd take out both tags, using something like:
$str = preg_replace(/\/?p.*?/i, , $str);
Which gets rid of:
p
p align=whatever
/p
Or any case insensitive matches. That's probably just me though ;)
James.
Julian Simpson [EMAIL PROTECTED] wrote in message
news
hi Ryan,
did u make clean on your php 2?
i can't recall, u must delete a file config.*** (i can't recall the
extension...) b4 u reconfigure...
refer in the php install.txt
hope it works :)
regards,
James
Ryan Christensen wrote:
Quick question..
I'm installing PHP 4.0.6 on a fresh
of the file.
Bounce some ideas of me. Thanks
--
---PHP Rules---
James Tan
Web programmer(php, c/c++, asp)
Irc: Unknown007(dalnet)
Country: Malaysia
Clients List:
http://www.ogaya.com
http://www.tahbauto.com
http://www.aseanvalues.com
http://www.e-cpo.com
http://your_own_portal?
--
PHP General
Hi there Tijmen,
Firstly, change the input name from this:
voorraad
to this:
voorraad[]
then do something like:
?
echo Checked values are as follows:brbr;
for ($i = 0; $i sizeof($voorraad); $i++) {
if (!empty($voorraad[$i])) {
echo $voorraad[$i];
}
}
?
James
Tijmen
=9990
Does not (nothing is returned). (In the browser, they both display
adverts). Do you know why? There is a demo at
http://192.168.0.6/bin/ad-get2.php?url=#theurl#
Replace #theurl# with the url that you want to open... Location: headers
are handled automatically.
Regards,
- James
Editor, VB
Hi Kok,
use nl2br();
$string = nl2br($string);
echo $string;
See the manual for full details.
James
Coconut Ming [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi..
Did you feel it is strange alignment when you output the same thing
again in PH
Hi Phil,
Print returns a boolean true / false value as functions do, as well as any
output, whereas echo doesn't. Have a look through the archives.. This is
quite a popular question, and it wasn't long ago when it was last asked.
James.
Phil Latio [EMAIL PROTECTED] wrote in message
[EMAIL
Hi Matt,
mysql_insert_id();
See the manual for more info.
James
Garman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello:
I'm inserting some information into a MySQL database via a PHP script. A
handful of various information is put into the
Hi,
I'm trying to write a port scanner similar to
http://scan.sygatetech.com to expose security holes in a PC or server.
However, I can't figure out how to perform an ICMP ping. Does anyone
know how?
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
into good
practice early.
James
Tarrant Costelloe [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok thanks,
I found jons way the easiest:
if ($name == neo || $name == Neo)
-Original Message-
From: Bjorn Van Simaeys [mailto:[EMAIL PROTECTED
using
ODBC?
Thanks in advance
James
--
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]
Hi,
I would like to perform a traceroute with PHP. However, my ISP
has disabled the traceroute command normally available in
/usr/sbin/traceroute. Is there any other way?
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ
Hi everyone :)
imagine this if you will..
html
body onload=document.formname.inputfield.focus()
form name=formname
input type=text name=inputfield
/form
/body
/html
ugly form with a text input field that is focussed when the form loads,
erm.. nice.
now, I like to put all my
I play with this lots, good fun..
html
head
titlePath: ?=$PATH_INFO?/title
/head
/html
the title of the page will contain the path you typed..
Twigman...
On 2001.08.08 23:13 Evan Nemerson wrote:
I seem to recall that you can call a PHP script with a slash after it
then
variables.
if (preg_match(/\d/, $data) {
print 'The $data contained a number';
}
On 2001.08.09 07:05 scott [gts] wrote:
here are two regexps that might do what you want
\w matches alphanum (1-9a-zA-z)
IMO, the best way to check for non-alphanum chars is
to check for \W (upper case is
You are looking for HTTP Authentication...
http://www.php.net/manual/en/features.http-auth.php
Twigman...
On 2001.08.09 09:49 Chris Kay wrote:
Hi
My question is that i am about to start a database and i have been asked
to
make the login/password like htaccess, now they also want to be
try this...
?
if (!isset($width)) {
$width=100;
$height=100;
}
?
html
body
img src=/path/to/image.ext width=?=$width? height=?=$height?
formp
Image width: input type=text name=width size=4br \
Image height: input type=text name=height size=4br \
input
On Thu, 9 Aug 2001, Karl Phillipson wrote:
Is anyone else having fun and games with IE 5.0 and caching?
I have the no-cache code (below) before anything else in my index file.
Following that an include file is pulled in that has a form with a text
input field that echos the date and time.
Greetings,
How safe is the code written in PHP? For instance, if I have an equation or
some algorithm with some constants for calculations and I code them in PHP
for use on a website are they safe from being viewed or taken?
Thanks
James
--
PHP General Mailing List (http://www.php.net
Hi,
Is there any way to send an ICMP ping (or packet) from PHP?
(without using exec(ping)!!)
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
Fax - +44(0)8707052859
==
--
PHP General
{
DoUploadFile($thefile, $thefile_name, $thefile_type, $thefile_size);
}
}
Hope that helps,
James.
Dr. Evil [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
My PHP script needs to receive some files. I've seen sites which
accept them; they have a Brows
dazed state) making
me even more dizzy.
Lastly, thanks for reading. Any advice any of you can give, or any basic
pointers you might have, are greatly appreciated. Please cc any replies.
Thanks and goodnight,
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Hi,
How do I call on a switch from within an html-embedded
page?
Say I have a large php script that first verifies a
login, then allows templates for INSERTING, UPDATING,
DELETING various records-- I need to have separate
templates load for each set of steps, but I only have
the vaguest of
Hi all,
Just to confirm over the past week or so I have received enough interest in
the meeting for it to take place. The details will be as available at
http://www.phpuk.org/meetings.php For those who asked how to get tickets
please send monies to:
James Moore
Prospect House
Tower Hill
;
for($i = 0; $i = sizeof($words); $i++) {
$query .= field LIKE '% . $words[$i] . %' OR ;
}
$query = substr($query, 0, -4); // need to take out:
[[:space:]]OR[[:space:]] from the end
$do_query = @mysql_query($query);
Cheers,
James
What I need to do is to compare if one field matches
I am working on a form that needs to run INSERTS into
a table, but also has other connections and functions
going on, so $php_self isn't really an option (I'm a
newbie, and switch still scares me)...
Can I effectively use an include/require(insert.php)
on the main of the form, have the form
);
if ($plusminus == +) {
$newtime = $timestamp + (3600 * $offset);
} else {
$newtime = $timestamp - (3600 * $offset);
}
$newdate = date(Y-m-d H:i:s, $newtime);
return $newdate;
}
?
Hope this helps.
James
Joe Sheble ) [EMAIL PROTECTED] wrote in message
Alas, I don't have this luxury since
have sent monies for tickets etc please contact me and they will be
returned promptly.
Sorry for any inconvience caused.
Thanks,
- James
--
James Moore
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
like this more easily.
Just my opinion ;)
James
Jaxon [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Can anyone tell me why I have a parse error here?
I'm including this file, which is 16 lines, but the error being thrown by
the including page
If that's the code you're running, it's got several
problems--
1st, the function is mysql_query()
2nd, the query is built like this:
$connection = mysql_connect('host', 'user', 'pass');
$db = mysql_select_db('db', $connection);
$query = SELECT * FROM tablename WHERE primary_key =
try readfile('http://www.somesite.com/');
it creates a mirror; it might bypass the firewall,
depending on how the blocking software is keyed to
activate.
-dj
--- Jeff Lewis [EMAIL PROTECTED] wrote:
I was sitting here at work (working of course!)
thinking about how some sites are blocked etc
do you mean, as in,
if !is_integer($var) {
print($var is not an integer);
}
--- Philip Olson [EMAIL PROTECTED] wrote:
hi friends,
Can someone post here the most efficient method to
validate a variable
as numeric? I see a ton of hacks/ways in the manual
user comments under
is_int,
if you're just looking for the 1st occurrence of the
string, it's--
$check = good;
$var = This is a good...;
if (!strstr($var, $check)) {
print($check not found);
}
also, i think strstr() is case-insensitive, so it
won't be able to differentiate between 'Good' and
'good', and will NOT return
= '123';
Anyone have an authoritative answer on this? Like,
something that would
go in the manual as the official php3 is_numeric
check?
Regards,
Philip
On Tue, 28 Aug 2001, daniel james wrote:
do you mean, as in,
if !is_integer($var) {
print($var is not an integer
) = split(\., $number);
// if there's no decimal value
if ( empty($y) ) {
return is_int($x);
}
else {
return ( is_int($x) is_int($y) );
}
}
-Original Message-
From: daniel james [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] is_numeric for php3
do you
maybe somebody else will be able to come up with a
much more graceful solution to this, but i think you
need to forget unset()-- all it does is destroy a var
within a script. your db data doesn't become a var
until you fetch it, but unset() isn't a mysql function
and doesn't interact with the db
SELECT uid FROM users
WHERE uid NOT IN (SELECT uid FROM picks)
HTH,
James Potts
Jeremy Morano [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi ,
this is my query
SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id;
this works c
it will be an asset, especially
for some of our older applications.
Thanx again,
James Potts
Manuel Lemos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
James wrote:
Regarding a database abstraction package: does Metabase handle all
standard SQL co
signal and execute the wait3()
* system call.
*/
if (ignsigcld) {
#ifdef SIGSTP
int sig_child() ;
signal(SIGCLD, sig_child) ;
#else
signal(SIGCLD,SIG_IGN) ;
#endif
}
} /* end daemon_start */
/* eof: daemon.c */
--
HTH,
James Potts
Manuel,
Thanx again for your help. I will check it out this evening. Sounds like
you're a busy man. ;-) Keep up the good work.
James Potts
Manuel Lemos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
James Potts wrote:
Manuel,
Hi Marcos,
use substr();
http://www.php.net/manual/en/function.substr.php
$string = substr($string, 0, 10);
James
Marcos Lloret [EMAIL PROTECTED] wrote in message
019701c131f1$f57bdfa0$371c94c1@mlloret">news:019701c131f1$f57bdfa0$371c94c1@mlloret...
hi to all,
i have a lon
Sorry,
I didn't mean it quite like that. After the user presses submit
$string = htmlentities($string);
// now, do whatever with the string
J
- Original Message -
From: Niklas Lampén
To: James Holloway ; Php-General
Sent: Wednesday, September 12, 2001 9:52 AM
Subject
Hi,
Is there a way to make a function 'private' in a php class?
I'm guessing there isn't since I haven't been able to find reference to
it in the php docs, but if this is the case, is there some way I can
emulate private scoping?
thanks,
James.
--
PHP General Mailing List (http
INTO com (column1, column2) VALUES ('something', 'something else'),
('something again', 'something else again');
James
VM ÁÖ¿N [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello
I want to know how to implement these several sql statements in
= UPDATE users SET
password = '$new_password'
WHERE username = '$username';
$result_update = @mysql_query($sql_update, $connection)
or die(Another graceful error.);
echo Your new password has been saved.;
}
}
?
James.
FredrikAT [EMAIL
!= image/pjpeg) {
echo We only like jpegs!;
}
As a footnote, 500Kb is 512000 bytes (1024 bytes in a Kb).
James.
When I set INPUT TYPE=hidden NAME=MAX_FILE_SIZE VALUE=50 and a
user uploads a file bigger than 50 my script prints a warning.
How can I use MAX_FILE_SIZE and avoid
about people repeatedly clicking their
links so that they got more hits out.
Have fun ;)
James.
Steve Wade [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ahh - thanks - that's helped :-) (Line 9 was the http_referrer line)
Now the only trouble is,
http://www.phpbb.com
:D
- James
-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: May 10, 2001 3:14 AM
To: Kian On; [EMAIL PROTECTED]
Subject: RE: [PHP] bulletin board or forum
phorum.org
M@
--
PHP General Mailing List (http://www.php.net
(0,0,0,$month,$day,$year);
$days_to_add = 7;
$x = 1;
while($x = $days_to_add) {
$make_date = getdate($actual_date);
echo Day $x: $make_date[mday] $make_date[month],
$make_date[year]BRBR;
$actual_date = $actual_date + (3600 * 24);
$x++;
}
?
/body
/html
Cheers,
James
- Original
You might also want to try a freeware opens ource editor I am
developing, called Developers Pad
http://www.developerspad.com/
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
I would suggest some sort of Templating solution. Take a look at Smarty,
PHPLib, or FastTemplates.
- James
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: May 14, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] need better solution...
In most of my
of . $num_rows .
residing in the database.;
?
Hope that helps,
James.
Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am trying to pull all the e-mail out of the database and put them
in a format like this [EMAIL PROTECTED],[EMAIL P
Hi Bill
?
if (preg_match(/([\])([^\]{1,})*([\])/i, $string)) {
echo Houston, we have a problem.;
}
?
James.
bill [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a way to detect the presence of HTML tags?
I don't want them stripped out
Hi There,
?
$dir_to_check = /this/dir;
if (!is_dir($dir_to_check)) {
echo No directory here;
} else {
echo Bingo.;
}
?
James.
Scream [EMAIL PROTECTED] wrote in message
9drq8v$ngb$[EMAIL PROTECTED]">news:9drq8v$ngb$[EMAIL PROTECTED]...
Hi,
I've got a one simple question. H
';
$result = @mysql_query($sql);
if (mysql_num_rows($result) == 0) {
echo No good.;
}
?
Can't be sure where I read it, but still :)
Ack! 1.20am. Bedtime.
James.
Johnson, Kirk [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
See http://www.php.net/m
incorrectly?
James.
Christian Dechery [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
My free-web-hosting (www.f2s.com) does not allow PHP to send emails...
I've
tried everything... the mail() function, my alternate function which calls
popen(/usr/lib/sendmail -t)
From phpinfo() on f2s.com
upload_max_filesize 2M
So, something like,
@copy($file, /path/to . $file_name)
or die (Blam, something's up!);
should work - haven't got time to try it at the moment.
James.
What am I doing wrong here?
Is there a way to get around the temporary folder?
Tnx
to you. Have
a play, see how you get on :)
James.
Laurie Landry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I understand how to use a dropdown box to make your selection in which
that
selection is the criteria to display a database content; but I was
w
in a day.
Things would get more complicated with hours and seconds, but you get the
idea :) Note that in this instance, $difference / 86400 will always be an
exact division.
James
Taylor, Stewart [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
?
$date =
James
--
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]
.
?
$hour = date(H);
if ((date(m) 3) (date(d) 25) (date(m) 10) (date(d)
31)) {
$hour = $hour - 1;
}
?
Hope that helps.
James.
Good Fella [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi All,
I need help with a small problem. My website has many us
;
?
INPUT TYPE=Submit NAME=Submit VALUE=Next
/FORM
Of course form buttons look dreadful, so if you use that method, create a
graphic to use, or do a javscript work around for text links. Hope that
helps :)
James.
Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">new
for text links. Hope that
helps :)
James.
Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am having a problem with this script. It works perfect if I just do
a Query like (SELECT * FROM customers) but if I call it from
anothe
301 - 400 of 1451 matches
Mail list logo