On 10/5/06, Deckard [EMAIL PROTECTED] wrote:
config.inc.php is in /var/www/html
and the file that calls it is in
/var/www/html/classes
Hi Deckard,
You've said that the file that is trying to perform the include is
located in /var/www/html/classes, right? Which suggests to me that
*that* file
Are you sure you're not on a Spanish *Java* mailing list?
:)
On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote:
Me... again, still boring you to death with meaningless OOP rantings.
First I would like to point out that there was a design mistake in what I
proposed in the last mail
On 10/5/06, Deckard [EMAIL PROTECTED] wrote:
Hi,
I'm trying to lay my hands on PHP OOP, but it's not easy :(
I've read several examples in the web, but cannot transpose to may case.
I'm trying to set a class to make SQL inserts in mysql.
I commend you on trying to build an OOP class for
Thanks to everyone for their suggestions, I used the nl2br function in the
end, and it works perfectly.
On 02/10/06, Richard Lynch [EMAIL PROTECTED] wrote:
On Mon, October 2, 2006 4:13 pm, tedd wrote:
Why not use nl2br() to show the data in the browser and leave the
data as-is in the dB?
On 10/5/06, Nikolay Furletov [EMAIL PROTECTED] wrote:
Здравствуйте!
Мне сказали, что по этому адресу можно задать вопрос по использованию PHP.
Это правда?
С уважением, Николай Фурлетов.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen you already had a good answer on the errors in the code so I won't
go on that. As for OOP, the one design error you have is that you are
asking for an action, not an object. You want to make SQL inserts, that is
your purpose, and
On Thu, 05 Oct 2006 09:16:17 +0800, Penthexquadium wrote:
On Thu, 5 Oct 2006 01:17:41 +0700, Groundhog [EMAIL PROTECTED] wrote:
how can I jump to another page after IF..ELSE statement, for example:
IF (statement == TRUE)
{ stay on this page, index.php }
ELSE { jump to index2.php}
On Thu, 05 Oct 2006 09:29:46 +0800, Penthexquadium wrote:
On Wed, 4 Oct 2006 23:19:58 +0200, Martin Bach Nielsen [EMAIL PROTECTED]
wrote:
Hi all.
I have written a guestbook (I know, there's a ton out there), which until
recently did not get any spam, so now I'm trying to remove the
Hello,
I have just made my first php mini website. I have my header, footer,
navigation and main pages.
The header, footer and navigation appear as includes in my main page.
When I click on my navigation links, I get a new blank browser window
with the image on it. This is not what I want.
Hey all,
this is a two part question but I need just one solution:
1. Can you recommend a good testing software where the choices are multiple
choice (cross a button or radio button)
if nothing great out there... will make this myself so, on to point 2:
2. I have noticed if you are
Hi group,
I was curious of your experience of Template systems/parsers.
For the moment I am using the one available on www.berrewaerts.net/dev.
However, sometimes it feels like the parsing takes to long.
I am looking for a fast template parser that supports nested blocks etc to
be able
Smarty? smarty.php.net
--
http://www.web-buddha.co.uk
Thats what i use... and no complaints so far.
Cheers,
Ryan
Dave Goodchild [EMAIL PROTECTED] wrote: Smarty? smarty.php.net
--
http://www.web-buddha.co.uk
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile,
hello,
This question was sent before but there is no good answer so :
When i see my phpinfo, Virtual Directory Support is disabled
How do I change this from disabled to enabled ?
I use php 5 and apache 2 on a linux FC5 server.
I also use a wampserver on a winxp workstation and here, it's
Hi all. I am an intermediate php/mysql developer (1 1/2 years experience)
and wondered if anyone would consider mentoring my good self. Would not be
heavy, I am constantly working on projects and looking to improve and feel
mentoring is a great way to learn, of course after a certain level I
On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote:
Hey all,
this is a two part question but I need just one solution:
Done. Go to http://avoir.uwc.ac.za/ and download Kewl.NextGen. Then
install it and use the moduleadmin to install MCQ (multiple Choice
Questions) module. It does everything
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Satyam [EMAIL PROTECTED]
Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, October 05, 2006 2:16 AM
Subject: Re: [PHP] Help on objects
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen
i may be wrong, but your use of the class to me seems pointless... the reuse
aspect of your database connection could be done with a simple include...
maybe your need is different from what i suspect, being a beginner myself...
here is what i do, and maybe the list can tell me if it would be
Re the last suggestion, ensure you keep those database details outside the
web root (ie in a file called connect.inc for example) or if have to keep it
there add a .htaccess file that prevents download of *.inc files.
Also, avoid use of the error suppression operator (@). You need to see your
how are you getting the answers? are they hard coded in html? are you
pulling them from a database? if from a database, just order them
randomly.. mysql_query(select answers from table where question = '10'
ORDER BY RAND() ); i think this would randomize all of the results in the
answer colum of
yea, thanks for the input... but do you think my solution would be better
for original poster?
- Original Message -
From: Dave Goodchild [EMAIL PROTECTED]
To: benifactor [EMAIL PROTECTED]
Cc: Robert Cummings [EMAIL PROTECTED]; Satyam
[EMAIL PROTECTED]; Deckard [EMAIL PROTECTED];
Undoubtedly. He could also use the PEAR DB abstraction layer.
I am researching 3 frameworks at present but i would just like to know
from developer who maybe have used one of then which one they would
recommend?
Symfony - http://www.symfony-project.com
Cakephp - http://cakephp.org/
Code Igniter - http://www.codeigniter.com
--
PHP General Mailing List
Double-checking.
Nope.
It wasn´t from the Java mailing list, they're still talking about
hibernate... they'll probably give a damn about this thing anyway, because
they're all oop gurus, what would they care about a hello world?
PHP seems to be getting more and more object oriented, I
2006/10/4, Deckard [EMAIL PROTECTED]:
Hi,
I'm trying to lay my hands on PHP OOP, but it's not easy :(
I've read several examples in the web, but cannot transpose to may case.
I'm trying to set a class to make SQL inserts in mysql.
I have the class:
Hey all!
Is it possible to get the path of a file relative to the document root of
the webserver using php?
For example...
if we have a script like
http://localhost/mydir/myseconddir/index.php
is there a way to get that it's runing on
/mydir/myseconddir/
??
something like getcwd() but
2006/10/5, Satyam [EMAIL PROTECTED]:
I've seen you already had a good answer on the errors in the code so I
won't
go on that. As for OOP, the one design error you have is that you are
asking for an action, not an object. You want to make SQL inserts, that
is
your purpose, and that is an
Actually, I tried Fast Template when trying to decide on a templating
solution, ran into some errors from the main class file/s and didnt get any
help on it... so dumped it.
The forums/lists for SMARTY are really good, very very helpful folks... I
daresay as helpful and great as this php list.
Thanks for replying guys.
Paul, Will check out the links you sent me, If its really as good as you say...
should save me a heck of a time coding it, thanks!
Cheers!
Ryan
Paul Scott [EMAIL PROTECTED] wrote:
On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote:
Hey all,
this is a two part
Javier Ruiz wrote:
Hey all!
Is it possible to get the path of a file relative to the document root of
the webserver using php?
For example...
if we have a script like
http://localhost/mydir/myseconddir/index.php
is there a way to get that it's runing on
/mydir/myseconddir/
??
something like
if we have a script like
http://localhost/mydir/myseconddir/index.php
is there a way to get that it's runing on
/mydir/myseconddir/
use $_SERVER['[PHP_SELF'] or $_SERVER['SCRIPT_NAME']
and then simply use strripos() to get the last forwarsd-slash and
substr() to get the value you want.
Willem Herbst wrote:
I am researching 3 frameworks at present but i would just like to know
from developer who maybe have used one of then which one they would
recommend?
Symfony - http://www.symfony-project.com
Cakephp - http://cakephp.org/
Code Igniter - http://www.codeigniter.com
check
I use Code Igniter and think it's great. Very clear, fast, cuts my coding
time by about 40%. Then again, depends on what you need a framework for...
On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote:
PHP seems to be getting more and more object oriented, I think it's the
right time to start questioning what have been done so far in terms of OOP
in PHP, because, honestly, there are too many php classes being distributed
out there that are
Perfect!
got it using the following:
/* 1 - remove the query string just in case it contains a '/' in it
2 - like Clive said, substr() and strrpos() 'clean' the path to provide
the directories only */
$aPath = str_replace($_REQUEST['QUERY_STRING'], '',
$_SERVER['SCRIPT_NAME']);
$aPath =
2006/10/5, John Wells [EMAIL PROTECTED]:
On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote:
PHP seems to be getting more and more object oriented, I think it's the
right time to start questioning what have been done so far in terms of
OOP
in PHP, because, honestly, there are too many php
Using this string:
{$var1: $var2}
of course it doesn't work as some might expect.
But why in the name of [whatever, too many to list] doesn't this one
below work?
\{$var1: $var2}
If \ is an escape character why does it also appear in the string output?
Why does the above \ escape {$var1
[EMAIL PROTECTED] wrote:
Using this string:
{$var1: $var2}
of course it doesn't work as some might expect.
But why in the name of [whatever, too many to list] doesn't this one
below work?
\{$var1: $var2}
If \ is an escape character why does it also appear in the string output?
Why does
Well Kae, if you reply 3 times let me also reply you once.
What you try to suggest is a workaround. A workaround should
not be needed for such a basic thing. Ever.
The point is, \ should escape only the {, just like
it does when you escape a variable like this \$var1
In this case, \ only escapes
I haven't even read all replies, but the first one caught my love :-)
/Peter
www.lauri.se http://www.lauri.se/ - personal web site
www.dwsasia.com http://www.dwsasia.com/ - company web site
_
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 05, 2006
On 10/5/06, Martin Alterisio [EMAIL PROTECTED] wrote:
The kind of thinking that OOP it's just a *super* feature of a programming
language that should be used only for highly complex problems, is what I
want to eradicate. OOP doesn't stand neither as a language feature nor as
extra capabilities
The escaping works fine for me.. using the code:
$var1 = 1;
$var2 = 3;
echo \$var1: $var2;
print \$var1: $var2;
print (\$var1: $var2);
All output:
$var1: 3
as expected.
Is there a way to re-define the escape character or something? I can't think
of why that wouldn't escape the $ properly.
Sorry tg, you missed the whole point. Read again.
The escaping works fine for me.. using the code:
$var1 = 1;
$var2 = 3;
echo \$var1: $var2;
print \$var1: $var2;
print (\$var1: $var2);
All output:
$var1: 3
as expected.
Is there a way to re-define the escape character or something? I can't
On 10/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Using this string:
{$var1: $var2}
of course it doesn't work as some might expect.
But why in the name of [whatever, too many to list] doesn't this one
below work?
\{$var1: $var2}
If \ is an escape character why does it also appear in
Let's look at your original message:
Using this string:
$var1: $var2
of course it doesn't work as some might expect.
It works exactly as expected. Within double-quotes, things like variables get
evaluated. In this case $var1 and $var2 will be
John Wells wrote:
Excerpt:
Since you can't escape '{', this syntax will only be recognised when
the $ is immediately following the {. (Use {\$ to get a literal
{$).
Does that help?
Not really, John.
===
$var1 = 1; $var2 = 2;
print({\$var1: $var2});
[EMAIL PROTECTED] wrote:
Let's look at your original message:
Using this string:
$var1: $var2
of course it doesn't work as some might expect.
Either your mail client is broken, or you're misquoting him on purpose:
Using this string:
{$var1: $var2}
of course it doesn't
Hey all.
I've got a simple object method that sets object vars based on a passed
array:
**
function set($arr) {
foreach($arr as $name = $value) {
if(is_array($this-name)) {
$this-$name[] = $value;
}
Either your mail client is broken, or you're misquoting him on purpose:
Using this string:
{$var1: $var2}
of course it doesn't work as some might expect.
Thanks Chris, I already emailed him on private 'cause I didn't
want to clutter the list unneeded.
To address the original
[EMAIL PROTECTED] wrote:
I'd like to have the output as {11: 22}.
My previous example demonstrates that:
echo {{$foo}: {$bar}};
Chris
--
Chris Shiflett
http://shiflett.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 05 Oct 2006, at 10:50 , [EMAIL PROTECTED] wrote:
So, yes, there is no escaping for { in PHP and that would be it.
So what is {{$var1} : {$var2}} ??
--
MEGAHAL: within my penguin lies a torrid story of hate and love.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
lets say I have an array...
$myArray = array (
firstkey = first val,
secondkey = second val
)
Can I still call these by their numeric order? ie, echo $myArray[0] shoudl
print out first val...
Unneeded clutter, yes.. but I owe you an apology and since the mistake was
public, I'll make the apology public as well.
I use a 'universal' email checker called ePrompter. It does text-only, no
HTML, so it filters out HTML messages, but have never had a problem with it
filtering out braces,
Google Kreme wrote:
On 05 Oct 2006, at 10:50 , [EMAIL PROTECTED] wrote:
So, yes, there is no escaping for { in PHP and that would be it.
So what is {{$var1} : {$var2}} ??
A workaround.
ciao
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Russell Jones wrote:
lets say I have an array...
$myArray = array (
firstkey = first val,
secondkey = second val
)
Can I still call these by their numeric order? ie, echo $myArray[0] shoudl
print out first val...
No, but you can do:
$myArrayNumeric = array_values($myArray);
echo
Hi everybody.
I must to connect a https server by a fsockopen but it seems not working.
I´ve got openssl instaled in my php and when i run the follow line.
$sock = fsockopen(ssl://wwws.aymorefinanciamentos.com.br, 80, $errno,
$errstr, 30);
My var $sock returns false without any error string.
Google Kreme wrote:
So what is {{$var1} : {$var2}}
Within a quoted string, you can surround variable names with braces for
clarity. This is especially helpful for situations like this, where the
rest of the string interferes with syntax.
A more common example is when a variable name is
I found it myself. I change to the port 443.
João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na
mensagem news:[EMAIL PROTECTED]
Hi everybody.
I must to connect a https server by a fsockopen but it seems not working.
I´ve got openssl instaled in my php and when i run the follow line.
You may want to look at using CURL which handles all the grunge of the
SSL exchange...
http://php.net/curl
Or maybe fsockopen has been fixed up to do that also?...
On Thu, October 5, 2006 12:33 pm, João Cândido de Souza Neto wrote:
Hi everybody.
I must to connect a https server by a fsockopen
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Satyam [EMAIL PROTECTED]
Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, October 05, 2006 11:16 AM
Subject: Re: [PHP] Help on objects
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen
On Thu, October 5, 2006 10:55 am, [EMAIL PROTECTED] wrote:
The point is, \ should escape only the {, just like
it does when you escape a variable like this \$var1
In this case, \ only escapes the $.
The whole thing with {} inside a string has always struck me as a
total hack to fix something
On 05 Oct 2006, at 11:37 , Chris Shiflett wrote:
Google Kreme wrote:
So what is {{$var1} : {$var2}}
Within a quoted string, you can surround variable names with braces
for
clarity. This is especially helpful for situations like this, where
the
rest of the string interferes with syntax.
On Thu, October 5, 2006 11:37 am, [EMAIL PROTECTED] wrote:
John Wells wrote:
Excerpt:
Since you can't escape '{', this syntax will only be recognised when
the $ is immediately following the {. (Use {\$ to get a literal
{$).
Does that help?
Not really, John.
On Thu, October 5, 2006 8:42 am, Javier Ruiz wrote:
Is it possible to get the path of a file relative to the document root
of
the webserver using php?
For example...
if we have a script like
http://localhost/mydir/myseconddir/index.php
is there a way to get that it's runing on
It may be easier to do:
$array = $this-$name;
$array[] = $value;
Some combination of {} and $this-{$name}[] = $value may also work...
As it stands now, $name[] looks like you are trying to get an index on
$name FIRST, and then use $this- on that SECOND...
I think.
On Thu, October 5, 2006
I still can't make it work.
This is what I have for the link to my images in navbar.php:
foreach($row as $jobType)
{
$row = mysql_fetch_array($result2,MYSQL_ASSOC);
echo a href='homehome.php?art=.$row['pix']. border='0'{$row
['jobType']}/a;
}
and this is what I have in my homehome.php
Out of PHP 4.3.0 fsockopen has been fixed up to do that.
Richard Lynch [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
You may want to look at using CURL which handles all the grunge of the
SSL exchange...
http://php.net/curl
Or maybe fsockopen has been fixed up to do that
On 10/5/06, sit1way [EMAIL PROTECTED] wrote:
Hey all.
I've got a simple object method that sets object vars based on a passed
array:
**
function set($arr) {
foreach($arr as $name = $value) {
if(is_array($this-name)) {
Hi,
I've burned my brain, checked other sites and come to a code that works.
I ask you, please, to see if this makes any sense and/or can be improved.
I'd really appreciate.
Warm Regads,
Deckard
dbInsert.php:
---
?php
/*
*
Deckard wrote:
Hi,
I've burned my brain, checked other sites and come to a code that works.
I ask you, please, to see if this makes any sense and/or can be improved.
I'd really appreciate.
Warm Regads,
Deckard
dbInsert.php:
---
You do *NOT* want to re-connect to the database on every InsertDB!
That's very expensive in resources/time.
Do that once in the constructor and be done with it for as many
Inserts as you need.
I'm baffled why you'd be rolling your own instead of using an existing
abstraction layer, and even
- Original Message -
From: Martin Alterisio
To: Satyam
Cc: Deckard ; php-general@lists.php.net
Sent: Thursday, October 05, 2006 3:50 PM
Subject: Re: [PHP] Help on objects
2006/10/5, Satyam [EMAIL PROTECTED]:
I've seen you already had a good answer on the errors in
On Thu, October 5, 2006 5:15 am, Meline Martirossian wrote:
I have just made my first php mini website. I have my header, footer,
navigation and main pages.
The header, footer and navigation appear as includes in my main
page.
When I click on my navigation links, I get a new blank browser
I took over a website that uses a htaccess file to auto append a file to every
page. I have one page that I do not want to do this one. Is there a way to
disable the htaccess file with a php statement on this one page? Thanks!
On Thu, October 5, 2006 5:36 am, Ryan A wrote:
2. I have noticed if you are displaying 4 (a-d) choices and the answer
for question 10 (for example) is always on choice B it kind of sticks
in the head and students dont really read everything they just
memorize the location of the answer (maybe
On Wed, October 4, 2006 7:32 pm, Deckard wrote:
I have this line of code:
include_once('../config.inc.php');
DON'T DO THAT!
Sooner or later, you're gonna need to move/copy this file somewhere
else, and ../ ain't gonna be right.
Warning: main(): Failed opening '../config.inc' for inclusion
On Thu, October 5, 2006 2:34 am, John Wells wrote:
[code]
// Consider *where* you create this
// Define it as a constant if you'd like...
define('BASE_PATH', dirname(__FILE__));
// Now build the path, like (assuming it was created
// in a file located at /var/www/html
On Wed, October 4, 2006 3:02 pm, Rahul S. Johari wrote:
form method=post action=http://www.myurl.com/imsafm2_main.php;
If you MOVED everything to the SSL server, then http://www.myurl.com
ain't the right ACTION anymore. It's now https://www.myurl.com
--
Some people have a gift link here.
Know
On Wed, October 4, 2006 1:17 pm, Groundhog wrote:
how can I jump to another page after IF..ELSE statement, for example:
IF (statement == TRUE)
{ stay on this page, index.php }
ELSE { jump to index2.php
require 'index2.php';
exit;
}
--
Some people have a gift link here.
Know what I
I´m using CURL, but it cannot send any data to server by POST mothod.
Have you got any example abaut this to show me?
Thanks.
Richard Lynch [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
You may want to look at using CURL which handles all the grunge of the
SSL exchange...
On Tue, October 3, 2006 11:18 pm, Ahmad Al-Twaijiry wrote:
I already made the application with cookies, it's will be very
defaucalt to go and replace cookies with session,
is it possible to use cookies session in the same time ? (
session_start() setcookie in the same page ?)
Sure...
Richard, I corrected that mistake in a previous email you must have missed.
I had copied the wrong code in my email to the list. The correct code is
indeed form method=post action=https://www.myurl.com/imsafm2_main.php;
I'm pretty baffled at this stage. I don't understand why this won't work
On Tue, October 3, 2006 5:11 pm, Google Kreme wrote:
As I understand it then, the .ht* is no less secure because, for all
intents and purposes, it is 'outside' the webtree since Apache will
never display it, and you need some other sort of access to the
machine (ftp, ssh, etc) to access it.
On Wed, October 4, 2006 12:34 pm, Mendonce, Kiran (STSD) wrote:
I understand the performance boost one can get by reusing existing
connections. And I did see for myself that with the default settings,
oci_pconnect() does reuse all the connections.
But what should happen if there are idle
Change ${$fields[$j]} to $_POST[$fields[$j]] everywhere?
Or you could make the whole thing a lot more readable:
foreach($fields as $field){
$data[$field] = isset($_POST['field']) $_POST['field'] == 'on' ?
1 : 0;
}
On Tue, October 3, 2006 4:48 pm, Charles Kline wrote:
hi all.
i am trying
On Wed, October 4, 2006 2:36 am, Wesley Acheson wrote:
I don't see how its that much of a secuity risk, they create a ssh
tunnel. All it does is add an extra layer of authentication. Its not
like the password requirements are bypassed.
My fault.
Somehow we got fixated on the idea that
Exactly!
This is where I'd like to bring focus back on what it really was. Neither is
keybank.com allowing access to a 'registered' computer simply because it's
registered, nor is it laying a file, key or id certificate on the client's
machine to enable it to login. As Wesley pointed out, they
Hi Richard,
Richard Lynch wrote:
I'm baffled why you'd be rolling your own instead of using an existing
abstraction layer, and even more baffled why you wouldn't just skip
all this and just do:
I'm already using AdoDB, which is excelent, but somethings requires a
lot of code.
I'm trying to
On Thu, October 5, 2006 3:42 pm, Rahul S. Johari wrote:
Richard, I corrected that mistake in a previous email you must have
missed.
I had copied the wrong code in my email to the list. The correct code
is
indeed form method=post
action=https://www.myurl.com/imsafm2_main.php;
I'm pretty
On Thu, October 5, 2006 3:30 pm, João Cândido de Souza Neto wrote:
I´m using CURL, but it cannot send any data to server by POST mothod.
Have you got any example abaut this to show me?
$curl = curl_init();
curl_setopt($curl, 'https://example.com/example.php');
curl_setopt($curl, CURLOPT_POST,
On Thu, October 5, 2006 2:50 pm, Justin Cook wrote:
I took over a website that uses a htaccess file to auto append a file
to every page. I have one page that I do not want to do this one. Is
there a way to disable the htaccess file with a php statement on this
one page? Thanks!
Not with a PHP
Hi Richard,
Thank you so much for your answer.
dbInsert.php is in /var/www/html/classes while config.inc.php is in
/var/www/html
With your code, the file is always searched in /var/www/html/classes and
not in /var/www/html
Warm Regards,
Deckard
Richard Lynch wrote:
On Thu, October 5, 2006
It's not exactly what you describe, but you should take a look at:
http://www.bigredspark.com/survey.html
Dotan Cohen
http://what-is-what.com
7
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a webpage that allows users to post news stories for their department.
The site uses AJAX to send the data to the webserver. The problem I'm having
is when the user uses some unicode characters like bullets or MS Word quotes,
the page comes out weird.
Here's the process.
1. The user
Hey all.
Loving Try Catch error handling in PHP5!
Got a problem though:
I'd like to catch errors and send POST vars to my error display page.
So:
try {
$r = new query($sql);
if(!$r) {
throw new Exception($err);
}
}
catch (Exception $e) {
$this-err_msg =
2006/10/5, Satyam [EMAIL PROTECTED]:
- Original Message -
*From:* Martin Alterisio [EMAIL PROTECTED]
*To:* Satyam [EMAIL PROTECTED]
*Cc:* Deckard [EMAIL PROTECTED] ; php-general@lists.php.net
*Sent:* Thursday, October 05, 2006 3:50 PM
*Subject:* Re: [PHP] Help on objects
2006/10/5,
On 06/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have a webpage that allows users to post news stories for their department.
The site uses AJAX to send the data to the webserver. The problem I'm having
is when the user uses some unicode characters like bullets or MS Word quotes,
On 10/5/06, Richard Lynch [EMAIL PROTECTED] wrote:
include_path is a much more powerful and flexible construct which will
save you an inordinate amount of trouble if you just figure out how it
works and use it...
Point well taken Richard, thanks.
I've always been curious, iIs there a point in
Richard Lynch wrote:
$curly = '{';
echo $curly$var1: $var2};
Horrendous workaround.
Google Kreme wrote:
On 05 Oct 2006, at 11:37 , Chris Shiflett wrote:
Google Kreme wrote:
So what is {{$var1} : {$var2}}
Within a quoted string, you can surround variable names with braces for
clarity.
Is this really worth all the keystrokes? Do we not have any more valuable
ways to spend our time?
On 06/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Richard Lynch wrote:
$curly = '{';
echo $curly$var1: $var2};
Horrendous workaround.
Google Kreme wrote:
On 05 Oct 2006, at 11:37 ,
1 - 100 of 104 matches
Mail list logo