[EMAIL PROTECTED] wrote:
I am trying to create a function to clean up variables that are user
inputted from a form. I am not getting this script to work. Can anyone
help.
---Start Script---
function cleaner($var)
{
trim(strip_tags(ucfirst(addslashes($var;
}
$var = "abc's";
echo $var;
Two things:
1. You're not returning anything from the function.
2. You're not even using the function.
[EMAIL PROTECTED] wrote:
I am trying to create a function to clean up variables that are user
inputted from a form. I am not getting this script to work. Can anyone
help.
---Start Script--
Larry Garfield wrote:
switch is fine if your elseif comparisons are equality based. If they're not
equality based, then they don't map to switch as well.
In other words, if you look at a logical ladder as the roots of the
tree, as long as each root has the same number of forks (say each for
On Thursday 29 June 2006 09:11, Ben Liu wrote:
> relevant data structure loosely:
>
> post_id (unique, autoincrement, primary index)
> parent_id (if the post is a child, this field contains the post_id of
> its parent)
> ...
> 1) Query the database for all messages under a certain topic, sort by
>
I am trying to create a function to clean up variables that are user
inputted from a form. I am not getting this script to work. Can anyone
help.
---Start Script---
function cleaner($var)
{
trim(strip_tags(ucfirst(addslashes($var;
}
$var = "abc's";
echo $var;
---End Script---
When I run
On Thursday 29 June 2006 06:51, tedd wrote:
> At 8:15 PM -0400 6/28/06, Robert Cummings wrote:
> >On Wed, 2006-06-28 at 20:02, David Tulloh wrote:
> >> Grae Wolfe - PHP wrote:
> >> > ...
> >> >
> > > > want. Any help would be great!
>
> -snip- if/elseif -snip-
>
>
>
>
> Whenever you need a elseif
Sjef wrote:
> Hi there,
>
> I am starting a new, very small project. A simple question and answering
> form. In one screen, question and answer can be typed, the strings will be
> saved in a database table questions which holds question and answer (as
> there is only one answer to a question).
hi...
in getting information on xpath/xml.. i thought i'd ask these lists as
well...
i'm trying to find out if there's a tool that i could use to load an HTML
web page into, that would allow me to point to a given item/element within
the Tree/DOM structure and allow me to see what the Xpath state
This was listed in another thread but I think would be a great tool
and online refference for any one who is programming in PHP and
especially for NEWBIES.
http://www.hudzilla.org/phpbook/
note: This is one of the best reads I have seen, both online and in print.
On 6/29/06, Chris <[EMAIL PROTEC
Jay Blanchard wrote:
Recommended reading
http://zirzow.dyndns.org/php-general/NEWBIE
Should we add a link to the pear support page for pear related questions?
Something as simple as:
"If you have a question about any of the pear packages, join the
appropriate list here: http://pear.php.
weetat wrote:
Hi all ,
I have using PEAR:Pager , to do paging .
If you have a pear question, ask on the pear mailing list.
http://pear.php.net/support/
We do not know their code or how to use it.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http:
Thank you, great reading :)
-Original Message-
From: Richard Collyer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 5:01 AM
To: php-general@lists.php.net
Subject: Re: [PHP] RE: Find out cookies on a computer?
Peter Lauri wrote:
> Is the question dumb? Why you answer it then? It is
I've come into this discussion pretty late so please bear with me if I
go over something that has been ruled out.
You are trying to print out in a threaded method the first post in a
thread followed by each post after that, that is a child/reply to that
post. Is that correct?
So something like
Peter Lauri wrote:
Is the question dumb? Why you answer it then? It is very interesting in a
security manner. I have very low knowledge about them, so therefore the
question. And if you think this question is unethical, and the rest of the
society does that, we would probably not have as secure t
On 29/06/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip]
But I am loosing hope that it can be done now :)
[/snip]
I will go ahead and remove all hope. If you do not own the cookie, you
cannot see it or use it. It is a rule of this jungle that has been in
place for years.
Yes, let's put thi
On Fri, 30 Jun 2006 05:06:33 +0700, Peter Lauri wrote:
>
> Yes, but that is just for the ones available for me. Like Google, they set
> a cookie if you click on one of their "adwords" ads and then use them in
> the tracking of the customer conversion.
The place where the cookies are stored is dep
[snip]
But I am loosing hope that it can be done now :)
[/snip]
I will go ahead and remove all hope. If you do not own the cookie, you
cannot see it or use it. It is a rule of this jungle that has been in
place for years.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
The global array $_COOKIE should hold any cookie which is available to you
Yes, but that is just for the ones available for me. Like Google, they set a
cookie if you click on one of their "adwords" ads and then use them in the
tracking of the customer conversion.
Cookies like this are interesti
Hello,
As Adam pointed out, this can be deadly to your database, especially as the
number of posts grows. If you want to go that route, I would recommend
selecting all the posts in that particular thread and sorting the data out
in PHP somehow. No need to slam your database with (potentially) hund
On Fri, 30 Jun 2006 04:23:51 +0700, Peter Lauri wrote:
> Is it possible to some how find out all cookies on a specific computer
> and their name and value? I assume not :)
The global array $_COOKIE should hold any cookie which is available to you
--
Hilsen/Regards
Michael Rasmussen
http://keyser
Peter Lauri wrote:
Is it possible to some how find out all cookies on a specific computer and
their name and value? I assume not :)
/Peter
No, because you don't OWN them, therefore you have no right (either
technologically or ethically) to see them. Asking such unethical
questions on th
Is the question dumb? Why you answer it then? It is very interesting in a
security manner. I have very low knowledge about them, so therefore the
question. And if you think this question is unethical, and the rest of the
society does that, we would probably not have as secure technology regarding
c
Ben Liu wrote:
, almost. I read the article suggested by K.Bear and found the
recommended solution to be a bit more complicated than I wanted to
implement. I then found another way to do this using the existing
"Adjacency List Model" through a recursive function. So basically, you
query the datab
Is it possible to some how find out all cookies on a specific computer and
their name and value? I assume not :)
/Peter
, almost. I read the article suggested by K.Bear and found the
recommended solution to be a bit more complicated than I wanted to
implement. I then found another way to do this using the existing
"Adjacency List Model" through a recursive function. So basically, you
query the database for the post
Manuel Lemos wrote:
Hello,
on 06/29/2006 10:54 AM Rodrigo de Oliveira Costa said the following:
Hy guys I'd like to know if there is a way to update a site through
sending an email. Something like this, you send an email and the body
of the email substitutes a text you use in your site. Igreat
Mathieu Dumoulin wrote:
> This is not a php specific question but more a programming question. I'd
oh we'll answer Q's on anything from ASP to STDs on this list ;-)
> like to know names of software that help in creating documentation like
> the microsoft style of documentation when you visit the
suresh kumar wrote:
> Hi,
hi ([EMAIL PROTECTED]([EMAIL PROTECTED]([EMAIL PROTECTED](*%([EMAIL
PROTECTED]([EMAIL PROTECTED]@#
> I am waiting reply from any one
do we have someone here called 'any one'? how about you reply to one
of the people who answer your questions.
PS - the tmp file is remo
Hello,
on 06/29/2006 10:54 AM Rodrigo de Oliveira Costa said the following:
> Hy guys I'd like to know if there is a way to update a site through
> sending an email. Something like this, you send an email and the body
> of the email substitutes a text you use in your site. Igreat apreciate
> any h
Hi there,
I am starting a new, very small project. A simple question and answering
form. In one screen, question and answer can be typed, the strings will be
saved in a database table questions which holds question and answer (as
there is only one answer to a question). There will be a webpage
*joining the fray a little late*
What is the difference between this, Smarty and template.inc?
I have found Smarty to be unusable in my situation where a graphic
designer needs to be able to edit the html and is easily confused by
non-html.
So, I am using template.inc which is apparently ol
Sounds like that darn Hierarchial Data again. Give this a read and see if it
helps you out at all. In particular, you may find the area 'Finding the
Depth of the Nodes' helpful.
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
Hope it helps,
-K.Bear
--
PHP General Mailing Lis
On 6/29/06, Adam Zey <[EMAIL PROTECTED]> wrote:
Just throwing an idea out there, but you can do the sorting entirely in
the SQL query. The trick is to figure out the best way.
The first idea that came to mind (and it sucks, but it works), is a text
field with padded numbers separated by dots, a
I'm trying to use gpgp to encrypt and decrypt files. I can get it to work if
it's a scheduled task, as the user that's running the task isn't the web
user, but I was just wondering if there was a way to safely enable system
for a shared environment.
-Original Message-
From: Chris [mailto:[
Ben Liu wrote:
This question might deviate from PHP into the domain of MySQL but I
thought best to post here first. I'm building a message board system
with PHP/MySQL. I'm trying to present the messages to the users in
threaded order rather than flat. I'm having a lot of trouble figuring
out how
Yeo Wee Tat wrote:
Hi Adam,
I can modify the xml file without any error , however when I tried to
unserializer the xml file using PEAR:XML , it gave the error message below.
I have attached my code for your perusal.
Any ideas ? thanks
/", "",
$xml);
$filehandle = fopen($xmlfile, 'wb');
$o
On Thursday 29 June 2006 06:29, Jeremy Schreckhise wrote:
> Try
> $link = mysql_connect('localhost',$youruser,$yourpassword) or die();
> mysql_select_db('yourdb');
>
> $query = 'SELECT * FROM Moses_Lake_Lions';
> if(!$result = mysql_query ($query,$link))
> {
>
There are several blog software packages and cms packages that do
something like this you might want to download and take a peek.
Wordpress one that comes to mind.
On 6/29/06, Mathieu Dumoulin <[EMAIL PROTECTED]> wrote:
How i'd do it is not simple, i'm sure there is an easier method but here
go
How i'd do it is not simple, i'm sure there is an easier method but here
goes for mine.
First you have to setup an inbox that you can read, it can be POP3 or
IMAP, as long as your PHP script can read it it's fine.
Second, create a script that can actually connect to that inbox and read
for a
Nathanael Merrill wrote:
I will be on vacation from June 26th through July 17th.
I will have limited access to email and will get back to you as soon as I
can. Thank you.
- nathanael merrill
You just made the list Nathanael.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Ho
Jim Moseby wrote:
Hy guys I'd like to know if there is a way to update a site through
sending an email. Something like this, you send an email and the body
of the email substitutes a text you use in your site. Igreat apreciate
any help since I couldn't find anything on this topic.
How much time
Hello,
At my last job there were several companies that would send us text invoices
by email. These email accounts were on a Linux box, and when the mail would
come in the message was sent to scripts via STDIN. I'm not sure HOW it was
done but I know that it CAN be done.
I would be concerned abou
This question might deviate from PHP into the domain of MySQL but I
thought best to post here first. I'm building a message board system
with PHP/MySQL. I'm trying to present the messages to the users in
threaded order rather than flat. I'm having a lot of trouble figuring
out how to sort the post
>
> Hy guys I'd like to know if there is a way to update a site through
> sending an email. Something like this, you send an email and the body
> of the email substitutes a text you use in your site. Igreat apreciate
> any help since I couldn't find anything on this topic.
How much time did you s
Hy guys I'd like to know if there is a way to update a site through
sending an email. Something like this, you send an email and the body
of the email substitutes a text you use in your site. Igreat apreciate
any help since I couldn't find anything on this topic.
Thanks,
doRodrigo
--
PHP General
Try
$link = mysql_connect('localhost',$youruser,$yourpassword) or die();
mysql_select_db('yourdb');
$query = 'SELECT * FROM Moses_Lake_Lions';
if(!$result = mysql_query ($query,$link))
{
// do error checking here
}
Jeremy Schreckhis
This is not a php specific question but more a programming question. I'd
like to know names of software that help in creating documentation like
the microsoft style of documentation when you visit the MSDN library. I
can also see that often one some sites like the VBCORLIB web site.
I'm sure t
> Hi all ,
>
> I am using PHP 4.3.2 and MYSQL database.
>
> I need to convert the sql query to Adobe PDF format.
> Any one have any suggestion how to do this?
>
> I have search phpclasses , found SQL2PdfReport classes , however it
> gave error message as shown below :
>
>"Error in
Recommended reading
http://zirzow.dyndns.org/php-general/NEWBIE
http://phpsec.org/
http://www.php.net/manual/en/security.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 8:15 PM -0400 6/28/06, Robert Cummings wrote:
>On Wed, 2006-06-28 at 20:02, David Tulloh wrote:
>> Grae Wolfe - PHP wrote:
>> > ...
> > > want. Any help would be great!
-snip- if/elseif -snip-
Whenever you need a elseif, then it's time to consider a switch -- like thus:
print( "" );
swi
Please, check that:
http://br.php.net/manual/pt_BR/function.move-uploaded-file.php
"suresh kumar" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Hi,
> This is the code i am using for image upload.
> if ($_FILES['ufile']['name'] != NULL)
> {
>
> $FlName= $_FILES['ufile'][
[snip]
The Code is running properly.But I dont Know Where The uploaded image
is Stored in the server.I checked "/tmp" directory,but image is not
there,is there any function where i can specify the location of the
server where my image is to be stored i also tired move_uploaded_image()
function .
James Nunnerley wrote:
> I'm setting up an ftp manager which allows a user to connect to their space
> on an external server.
>
>
>
> All the php-ftp functions work fine - after I'd realized how to use the
> passive functionality - see previous email to list!
>
>
>
> I've also got working t
Hi,
This is the code i am using for image upload.
if ($_FILES['ufile']['name'] != NULL)
{
$FlName= $_FILES['ufile']['name'];
if(!is_uploaded_file($_FILES['ufile']['tmp_name'])){
print "
alert(\"Error! The expected file wasn't loaded\");
";
On 29/06/06, Chris <[EMAIL PROTECTED]> wrote:
Russbucket wrote:
> I took an example of a script from the PHP documentation and try to
connect
> to my database. If I leave in the or die part of line 3, I get
nothing, if
> I comment out that part I get the echo message on line 4.
>
> // Connec
How can i see, everyon here use that class.
I use it too. It always worked fine to me.
"weetat" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Hi all ,
>
> I am using PHP 4.3.2 and MYSQL database.
>
> I need to convert the sql query to Adobe PDF format.
> Any one have any s
Hi all ,
I have using PEAR:Pager , to do paging .
Everthing are ok . Except the running no will always start from 1 to 10 .
Anyway to increase the running number when user click next page for
example Page 1 : 1 to 10,
Page 2 : 11 to 20, and so on
Thanks
below is the code , the runn
On 29 June 2006 01:03, David Tulloh wrote:
> I'm also going to throw in an elseif for fun, to get this (hopefully)
> improved version:
>
> if($row[1] == "none") {
>print("");
>print("$row[0] $row[2]");
>print("");
> } elseif($row[1] == $row[2]) {
>print("");
>print("$row[0]
I'm setting up an ftp manager which allows a user to connect to their space
on an external server.
All the php-ftp functions work fine - after I'd realized how to use the
passive functionality - see previous email to list!
I've also got working the download and upload functionality, which i
At 11:50 PM 6/28/2006, weetat wrote:
I am using PHP 4.3.2 and MYSQL database.
I need to convert the sql query to Adobe PDF format.
Any one have any suggestion how to do this?
I'm enjoying using the PHP class FPDF http://www.fpdf.org/
It's not a one-step conversion utility, it's a PHP clas
60 matches
Mail list logo