On Friday 29 April 2005 07:08, Mark Cain wrote:
> What a mess this has turned out to be -- But perhaps you can help me.
>
> I have a dynamic site that pulls headers, navigation, and footers from text
> files. The content for the pages is pulled from mySQL.
>
> On each page I have a JavaScript rota
I get the following mail problem when trying to send from localhost. Any
ideas?
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to
relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on line
179
R.
--
PHP General Mailing List (http://www.php.net/)
To
Wait - doesn't smarty 'compile' the php file and the tpl file into
another php file. If you look into templates_c directory you find some
'compiled' templates.
clive
Robert Cummings wrote:
On Thu, 2005-04-28 at 13:20, Ryan A wrote:
On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions
([EMAIL PROT
Hello
I have a question:
What is in the role of space in the regular expressions (POSIX)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all.
Im looking for a PHP/Javascript calender that is a full page calender.
IE: for each day there is quite a big block. Therefore it will be a
bigger form of a date picker. What I want to do is to be able to assign
notes for each day. I've seen the smarty calender which is exactly what
I need
its using the standard toolkit available in most browsers, what i find
a pain in the ass is having to build the post data into a string before
it can be sent, it should do it for u
On 29/04/2005, at 4:40 PM, Hidayet Dogan wrote:
Try SAJAX at http://www.modernmethod.com/sajax
You should also look at JSON (JavaScript Object Notation - is a lightweight
data-interchange format)
http://pear.php.net/pepr/pepr-proposal-show.php?id=198
http://mike.teczno.com/json.html
Zac
-Original Message-
From: Hidayet Dogan [mailto:[EMAIL PROTECTED]
Sent: 29 April 2005 07:41
To
Dont worry guys i solved it.
Angelo Zanetti wrote:
>Hi all.
>
>Im looking for a PHP/Javascript calender that is a full page calender.
>IE: for each day there is quite a big block. Therefore it will be a
>bigger form of a date picker. What I want to do is to be able to assign
>notes for each day.
On Friday 29 April 2005 11:43, Angelo Zanetti wrote:
> Dont worry guys i solved it.
And if you name the solution, it'll be a perfect finish for this thread.
Remember, this mailing-list is used as a knowledge base from a lot of people.
>
> Angelo Zanetti wrote:
> >Hi all.
> >
> >Im looking for a P
Hi everybody,
I'm planning to buy "PHP5 & MySQL Bible", the book
written by Tim Converse, Joyce Park & Clark Morgan.
Give me your opinion on this book, if anyone has gone
thru it.
Thanx.
Yahoo! India Matrimony: Find you
I know, uploading files and handling them is an issue covered again and
again, but there are still some answers I can'tfind on archives.
Having to read some uploaded files, perform operations on them (
basically attach them on a single file ), and then save the resulting
file using ftp, and try
I got a script from a friend of mine.
Otherwise I would have definitely given the URL...
Petar Nedyalkov wrote:
>On Friday 29 April 2005 11:43, Angelo Zanetti wrote:
>
>
>>Dont worry guys i solved it.
>>
>>
>
>And if you name the solution, it'll be a perfect finish for this thread.
>Rememb
hmm isnt the intention of httprequest is that u can send post data
without leaving the page ? It has worked for me, except u have to build
the post data yourself to send. On other similar circumstances i've had
to post certain data from a post to the current database but also
executr a script a
Just a couple of comments about those 0x.. and 11
in my post.
(By the way, i haven't looked to closely on speed even if the OP asked
for that, i was unsure on how he was coding his numbers).
[EMAIL PROTECTED] (Rolf Østvik) wrote in
news:[EMAIL PROTECTED]:
> [EMAIL PROTECTED] (René F
Hi clive
I tried all of them and I must admit smarty comes out on top by a mile
I use it on a very busy virtual host and have had NO problems with slow
script etc, highly recommended http://smarty.php.net
pete
Clive Zagno wrote:
Hi all,
What templating engines do you use with php and why?
Ive bee
* Khorosh Irani <[EMAIL PROTECTED]>:
> Hello
> I have a question:
> What is in the role of space in the regular expressions (POSIX)?
To match a space.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association| ht
* Clive Zagno <[EMAIL PROTECTED]>:
> Wait - doesn't smarty 'compile' the php file and the tpl file into
> another php file. If you look into templates_c directory you find some
> 'compiled' templates.
Yes, it does. And your question is...?
If it's about performance, the compilation is not an i
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> I'm experiencing some issues with autoLoad with pear packages. DB_Error is
> contained within the DB.php, but my autoload method is trying to split the
> underscores with forward slashes and then load. Supressing errors with @
> still doesnt work, its trig
[EMAIL PROTECTED] wrote:
I'm experiencing some issues with autoLoad with pear packages. DB_Error is
contained within the DB.php, but my autoload method is trying to split the
underscores with forward slashes and then load. Supressing errors with @
still doesnt work, its triggering a php error. Any
Its DB_Error which is the error callback for the PEAR DB. I dont know
where its being references but its triggering my php error handler and
i cant supress the errors for require. There is no such file
DB/Error.php however i may have to create one just to make it go away
:)
On 29/04/2005, at 9
It probably means your email server is not setup for open relaying (aka
spam server). Mail servers should require a login in order to send
email through them. The mail() function itself doesn't support names
and passwords, but other php functions do. You might want to look into
phpmailer to han
Thank you for everyone's suggestions. Using them
(and a few other things I've found elsewhere), I've
come up with the following function:
function roundToNearest( $number, $toNearest = 5 ) {
$retval = 0;
$mod = $number % $toNearest;
if( $mod >= 0 ) {
$retval = ( $mod > ( $toNearest /
[EMAIL PROTECTED] wrote:
I'm experiencing some issues with autoLoad with pear packages. DB_Error is
contained within the DB.php, but my autoload method is trying to split the
underscores with forward slashes and then load. Supressing errors with @
still doesnt work, its triggering a php error. Any
Does anyone know of a PHP script to access gmail's POP services?
Thanks,
Malcolm.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 4/29/05, Malcolm Mill <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of a PHP script to access gmail's POP services?
Check PEAR. There is a POP communication script that you may like there.
http://pear.php.net/package/Net_POP3
HTH,
--
The Disguised Jedi
[EMAIL PROTECTED]
Now you have m
http://phpmailer.sourceforge.net/
excellent and easy to use class
Malcolm Mill wrote:
Does anyone know of a PHP script to access gmail's POP services?
Thanks,
Malcolm.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to get a mysql datetime variable called $cdate formatted so
it will print:
Thursday, April 28, 2005 at 8:00:00 PM Eastern Time
I tried the following but it's not perfect.
--
$newDate = date('I, F d, Y at g:i:s A T', $cdate);
echo $newDate;
--
what kind of a function can I use that will tell me whether a variable is
alphanumeric (that is has only characters A-Z or 1-9 )?
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web
[snip]
what kind of a function can I use that will tell me whether a variable
is
alphanumeric (that is has only characters A-Z or 1-9 )?
[/snip]
You can use a regular expression, start here http://us3.php.net/regex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Diana Castillo wrote:
what kind of a function can I use that will tell me whether a variable is
alphanumeric (that is has only characters A-Z or 1-9 )?
Something like this should work. (untested)
preg_match ( "/^([a-z]||[A-Z]||[0-9])+$/", $string )
--
John C. Nichel
ÜberGeek
KegWorks.com
716.85
Hi,
I am on a quest for a new good webhost and I am currently using a trail
account at a host that seems pretty good, but has one problem. I cannot
turn register_globals off. They don't allow php_flag/php_value in
.htaccess for security reasons but in this case it's causing insecurity
It's not that
[snip]
I am on a quest for a new good webhost
[/snip]
How about http://www.phpwebhosting.com?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2005-04-29 at 13:27, Clive Zagno wrote:
> Wait - doesn't smarty 'compile' the php file and the tpl file into
> another php file. If you look into templates_c directory you find some
> 'compiled' templates.
I didn't say smarty wasn't compiled, only that InterJinn avoids the
cache overhea
Hi all
I'm trying to do authentication with database. I
created the database and I inserted some usernames and
passwords into my database. By using the below file,
I'm trying to give access to the main page for the
accounts that matches the username and password. The
problem is that "it do not reco
what kind of a function can I use that will tell me whether a variable is
alphanumeric (that is has only characters A-Z or 1-9 )?
http://us3.php.net/manual/en/function.ctype-alnum.php
bool ctype_alnum ( string text )
Checks if all of the characters in the provided string, text, are
alphanumeric. I
Philip Hallstrom wrote:
what kind of a function can I use that will tell me whether a variable is
alphanumeric (that is has only characters A-Z or 1-9 )?
http://us3.php.net/manual/en/function.ctype-alnum.php
bool ctype_alnum ( string text )
Checks if all of the characters in the provided string, t
* John Nichel <[EMAIL PROTECTED]>:
> Diana Castillo wrote:
> > what kind of a function can I use that will tell me whether a variable is
> > alphanumeric (that is has only characters A-Z or 1-9 )?
>
> Something like this should work. (untested)
>
> preg_match ( "/^([a-z]||[A-Z]||[0-9])+$/", $stri
"Clive Zagno" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I dont mind seeing php and html together, but designer generally hate
> it, so I would want to seperate php code from html as much as possible.
if this is your objective than it could be worthwile for you to look at
Templa
Hi list,
I want to have the page expire after ten minutes of inactivity. For
example, if you goto Travelocity.com and do a search then sit idle for
awhile it refreshes the page with a notice that you've been idle etc.
I want to dupe this but I only know the cheeseball way of using the
meta tag http
On Fri, April 29, 2005 10:28 am, John Martinez said:
> I want to have the page expire after ten minutes of inactivity. For
> example, if you goto Travelocity.com and do a search then sit idle for
> awhile it refreshes the page with a notice that you've been idle etc.
> I want to dupe this but I onl
"Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> (On the subject of templating engines, again.)
>
> I wonder what you folks think of the following:
> http://www.massassi.com/php/articles/template_engines/
hi!
It is nicely written, but actually, I think completely
On Fri, April 29, 2005 8:50 am, Yavuz S. Atmaca said:
> $sql = "SELECT user_id
> FROM tbl_auth_user
> WHERE user_id = '$userId' AND
> user_password = PASSWORD('$password')";
Did you use the PASSWORD function when you inserted your passwords, or are
they just plain-text?
On Fri, April 29, 2005 7:51 am, Karin van den Berg said:
> I am on a quest for a new good webhost and I am currently using a trail
> account at a host that seems pretty good, but has one problem. I cannot
> turn register_globals off. They don't allow php_flag/php_value in
> .htaccess for security r
In many case, if there is an error happen in a php script, it may
return an error message something like "
Parse error: parse error, unexpected T_FUNCTION in
/home/content/usr/html/test.php on line 6"
Is there any way to not show the dir information, but only as
"test.php on line 6" instead?
--
P
On Fri, April 29, 2005 7:38 am, Bosky, Dave said:
> I'm trying to get a mysql datetime variable called $cdate formatted so
> it will print:
>
> Thursday, April 28, 2005 at 8:00:00 PM Eastern Time
>
> I tried the following but it's not perfect.
>
> --
> $newDate = date('I, F d, Y
Well you could have shared that script with us. I am actually looking for
the same thing.
Thanks,
Wil
- Original Message -
From: "Angelo Zanetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "PHP List"
Sent: Friday, April 29, 2005 5:25 AM
Subject: Re: [PHP] SOLVEDphp Full Page Calen
rush wrote:
"Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
(On the subject of templating engines, again.)
I wonder what you folks think of the following:
http://www.massassi.com/php/articles/template_engines/
hi!
It is nicely written, but actually, I think
Hi,
Follwoing is a problem I'm having following some advice in a book called
"PHP5 in easy steps" written by Mike McGrath:
This is a connection that seems not to work according to the writer of "PHP
5 in easy steps" :
MS SQL2000 Connection Test
He originally wrote (for line 6) $conne
Here's source code to one I wrote ages and ages ago...
http://chatmusic.com/calendar.phps
http://chatmusic.com/calendar.php
Here's a similar one with PDF output:
http://uncommonground.com/events.phps
http://uncommonground.com/events.pdf
Help yourself to whatever bits and pieces you want.
YMMV
Check your php.ini. It seems you are running this on Windows w/Apache.
Make sure php_mssql.dll (or php_mssql.so if you are on Linux) is NOT
commented out. Also, I think you'll need a SQL account. Is the SQL
Server in mixed mode or Windows authentication? Look in Enterprise
MAnager or the registry
(
On Fri, April 29, 2005 1:51 am, Giulio said:
> Having to read some uploaded files, perform operations on them (
> basically attach them on a single file ), and then save the resulting
> file using ftp, and trying to have the php page as general as possible
> ( I mean have it work on the larger numb
Here is cal from a scheduling app i have working on.
http://www.imotes.com/cal2.php
http://www.imotes.com/cal2.phps
Richard Lynch wrote:
Here's source code to one I wrote ages and ages ago...
http://chatmusic.com/calendar.phps
http://chatmusic.com/calendar.php
Here's a similar one with PDF output:
On Fri, April 29, 2005 1:51 am, Sudeep Sarath said:
> I'm planning to buy "PHP5 & MySQL Bible", the book
> written by Tim Converse, Joyce Park & Clark Morgan.
> Give me your opinion on this book, if anyone has gone
> thru it.
I tech-edited the first two editions, before a change in personnel at
On Thu, April 28, 2005 10:51 pm, William Stokes said:
> How about preventing access by hitting the browsers back button after the
> user has logged out?
Try sending an md5 or uniqid out as TYPE=HIDDEN with your login, and
marking it "used" after the first login.
Also educate the users to CLOSE TH
On Thu, April 28, 2005 9:08 pm, Mark Cain said:
> What a mess this has turned out to be -- But perhaps you can help me.
>
> I have a dynamic site that pulls headers, navigation, and footers from
> text files. The content for the pages is pulled from mySQL.
>
> On each page I have a JavaScript rota
What templating engines do you use with php and why?
Ive been using smarty (http://smarty.php.net)
Clive.
I just can't work with PHP the usual way.
Mixing business source and interface source is something too bastard for me.
Now that I know templates systems I totaly disagree to say that PHP is a
T
Hi,
I have a table with 15 columns or so that has been inherited from an older
db and am trying to insert an auto increment column (in mysql) without
having to number it manually. This is fine when I add new colums via a form
but the old entries have a null value
Alternatively It has been con
cchereTieShou wrote:
In many case, if there is an error happen in a php script, it may
return an error message something like "
Parse error: parse error, unexpected T_FUNCTION in
/home/content/usr/html/test.php on line 6"
Is there any way to not show the dir information, but only as
"test.php on li
[snip]
I have a table with 15 columns or so that has been inherited from an
older
db and am trying to insert an auto increment column (in mysql) without
having to number it manually. This is fine when I add new colums via a
form
but the old entries have a null value
Alternatively It has been c
On 4/29/05, Skrol 29 <[EMAIL PROTECTED]> wrote:
> It would be like calling Notepad / VI / TextEdit "Html Editors".
HTML is text.. so any text editor is an HTML editor by default, including vi.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.p
On Fri, April 29, 2005 2:14 pm, Ross Hulford said:
> I have a table with 15 columns or so that has been inherited from an older
> db and am trying to insert an auto increment column (in mysql) without
> having to number it manually. This is fine when I add new colums via a
> form
> but the old ent
Skrol 29 wrote:
What templating engines do you use with php and why?
Ive been using smarty (http://smarty.php.net)
Clive.
I just can't work with PHP the usual way.
Mixing business source and interface source is something too bastard
for me.
Now that I know templates systems I totaly disagree to
> Who says PHP itself is a template engine?
I do.
More importantly, Rasmus does.
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I remember in Perl I used to extract vars from a single fetchrow by adding
each var name to the beginning (like this). Only this ain'ta workin :)...
Anyone know the right syntax to do this?
($var1, $var2, $var3)= mysql_fetch_array($result, MYSQL_ASSOC)
--
PHP General Mailing List (http://www.ph
Mattias Thorslund wrote:
...
Who says PHP itself is a template engine? I think nobody. What are the
"basic template features"?
Variables / placeholders
Looping construct(s)
Conditionals
A way to apply styles to text / markup
However, there is a school of thought regarding templates that advocate
On 4/29/05, jlfx mailgroups <[EMAIL PROTECTED]> wrote:
>
> I remember in Perl I used to extract vars from a single fetchrow by adding
> each var name to the beginning (like this). Only this ain'ta workin :)...
> Anyone know the right syntax to do this?
>
> ($var1, $var2, $var3)= mysql_fetch_array
Richard Lynch wrote:
Who says PHP itself is a template engine?
I do.
More importantly, Rasmus does.
What? My li'l brother does PHP? Or you mean him Lerdorf?
Sorry...
/Mattias
--
More views at http://www.thorslund.us
Jason Barnett wrote:
Mattias Thorslund wrote:
...
Who says PHP itself is a template engine? I think nobody. What are
the "basic template features"?
Variables / placeholders
Looping construct(s)
Conditionals
A way to apply styles to text / markup
So I suppose I'm just confused over what constit
Mattias Thorslund wrote:
Skrol 29 wrote:
What templating engines do you use with php and why?
Ive been using smarty (http://smarty.php.net)
Clive.
I just can't work with PHP the usual way.
Mixing business source and interface source is something too bastard
for me.
Now that I know templates syste
> > I remember in Perl I used to extract vars from a single fetchrow by adding
> > each var name to the beginning (like this). Only this ain'ta workin :)...
> > Anyone know the right syntax to do this?
> >
> > ($var1, $var2, $var3)= mysql_fetch_array($result, MYSQL_ASSOC)
>
>
> list($var1, $var2
Rasmus Lerdorf wrote:
Mattias Thorslund wrote:
Who says PHP itself is a template engine? I think nobody.
I do.
It comes down to whether you want the delineation between the template
and the business logic enforced by the system or not. PHP is a
general-purpose templating system that does not
Jon M. wrote:
No matter what I do to the strings to encode them in whatever format before
using "fwrite", it ALWAYS seems to end up writing the actual file in
"iso-8859-1".
Isn't the encoding of the characters in PHP's strings, and the encoding of
the actual binary file on your hard drive, two
* Rasmus Lerdorf <[EMAIL PROTECTED]> :
> My main issue with general-purpose templating systems is that they
> always end up inventing a new language. It may start off as a subset of
> some other language, but eventually it turns into a new language. In
> Smarty, for example, you now have stuff
On Fri, 2005-04-29 at 21:09, Mattias Thorslund wrote:
> Rasmus Lerdorf wrote:
>
> > Mattias Thorslund wrote:
> >
> >> Who says PHP itself is a template engine? I think nobody.
> >
> >
> > I do.
> >
> > It comes down to whether you want the delineation between the template
> > and the business l
On 4/29/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
> Personally I find having the output ALWAYS begin after all business
> logic has completed to be a better choice
I agree totally. Most PHP coders I've worked around put PHP in their
HTML. I am the exact opposite. I use PHP to build up my H
Hi lists:
I am new here. And i know little about php. Sorry ask so stupid
question.
I want to use my local /usr/sbin/sendmail to send mail to a certain
address. I have checked the function_list in http://www,php.net.
And i found the mail(). It enough to my requirement.
And i have written a php fi
Robert Cummings wrote:
I think a problem here is when you decide to blend two projects that
started out separately. With a templating system (some anyways :) you
can just redefine the main layout for each page being merged into the
larger project in a single centralized location. The approach descr
On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote:
> Robert Cummings wrote:
> > I don't think that templates have a dependency between the number of
> > pages using the template and an increase in the number of functions. In
> > fact depending on the template, and the template engine, you can have
Anyone know how to update a record on logout, heres what i am using for
login, however there iare no variables for the logout page.
?
session_start(); // Start Session
include("connect.php");
$username = $_POST['username'];
$password = $_POST['password'];
// Register some session variables
79 matches
Mail list logo