I'm usin php, apache and mysql on my computer. I have run some scripts. so i'm
sure i installed them correctly. One of my script don't run properly, also it
doesnt give error.
I'm trying to send some data to my database by using a form. The database can
get the auto incremented number but
Hi,
I'm trying to send a mail with attachment, using mail() fucntion ..
the mail is sent with the attached file, but when I open my mail box to
check the mail I sent using my script, I find the normal text contents and
the attachment displayed as text too !!!
ex. if I attached a document, it will
$sql = INSERT INTO testTable values ('', '$_POST[testField]');
should be
$var = $_POST[testField];
$sql = INSERT INTO testTable values ('', '$var');
/sagar
- Original Message -
From: Mecnun [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 4:23 PM
Subject:
Steve Brown wrote:
Eclipse: http://www.eclipse.org/
PHPEclipse: http://www.phpeclipse.de/
What about Eclipse? Did anyone make it work?
How does it compare to Kdevelop?
I tried to install it, unsuccesfully, on Mandrake 10.1 CE. Apparently, one
library is missing (but the library does not
Jason Wong wrote:
What version of quanta are you using? Autocompletion was available quite a
while ago.
I am using Quanta 3.2.3, and php auto completion does not work. How do you
activate it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 08 December 2004 19:49, [EMAIL PROTECTED] wrote:
Jason Wong wrote:
What version of quanta are you using? Autocompletion was available quite
a while ago.
I am using Quanta 3.2.3, and php auto completion does not work. How do you
activate it?
I think I may have misunderstood
Jason Wong wrote:
I think I may have misunderstood what you mean by auto-completion. What
Quanta does is auto-complete words that you *already* have in the
document.
Not really. With HTML / XHTML Quanta does auto complete words, tags,
properties, attributes which are in the DTD. Or am I
[EMAIL PROTECTED] wrote:
Jason Wong wrote:
I think I may have misunderstood what you mean by auto-completion. What
Quanta does is auto-complete words that you *already* have in the
document.
Not really. With HTML / XHTML Quanta does auto complete words, tags,
properties, attributes which
hi,
I search a package with all available libraries PEAR in on pack ...
for manual update ...
thanks.
eric
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 08 December 2004 11:29, Sagar C Nannapaneni wrote:
$sql = INSERT INTO testTable values ('', '$_POST[testField]');
should be
$var = $_POST[testField];
$sql = INSERT INTO
David Dickson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I was told that PEAR has too much overhead to be considered for a large
scale site. Does any one feel the same? Is this an outrageous comment? I
would like to hear comments from people who are using PEAR, or people who
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The other day a post came across one of those mailing lists discussing
PHP security. One of the posters was describing how insecure PHP's
file upload functionality is and went on to explain a simple method of
attaching
I have looked there, did not find what I wanted :) Know of any open MySQL
newsgroup?
Java newsgroup?
/Peter
David Robley [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
On Wed, 8 Dec 2004 16:31, Peter Lauri wrote:
Best groupmember,
I just moved to Bangkok and have a huge
As far as I know, there is no reliable way to force a browser to
display data before the whole page is downloaded. A browser won't
display information contained in an open tag, like a table. Once the
tag is closed, the browser may display part of the data, but this
depends on the browser. IE
If I have to pass name/value pairs to a function or anything else, I
always use an multidimensional associative array (that's a mouthful).
Using a string delimiter is too unreliable and probably slower.
Something like this:
$checkBoxList[] =
On Wednesday 08 December 2004 20:09, [EMAIL PROTECTED] wrote:
Jason Wong wrote:
I think I may have misunderstood what you mean by auto-completion. What
Quanta does is auto-complete words that you *already* have in the
document.
Not really. With HTML / XHTML Quanta does auto complete
Hello,
Dre wrote:
I'm trying to send a mail with attachment, using mail() fucntion ..
the mail is sent with the attached file, but when I open my mail box to
check the mail I sent using my script, I find the normal text contents and
the attachment displayed as text too !!!
ex. if I attached a
Jason Wong wrote:
So are you looking to auto-complete (X)HTML tags or are you looking to
auto-complete PHP keywords/functions? What is your question?
We need to auto-complete PHP words and functions INDIPENDENTLY of the fact
that they are present or not in the page. For instance if one
Hi,
I need to make sessions work in my local machine .. I'm using Apache 2.0.49
on WINDOWS XP PRO.
my php.ini sessions section is
session.save_handler = files
session.save_path = C:\php4\tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 1
session.cookie_lifetime = 0
Thanks Manuel, I will check the class
and here is the code of the mail sending script
//==
?php
$att_name = $_POST['att'];
echo $att_name;
$att_size = filesize($att_name);
$handle= fopen($att_name, r);
$file = fread($handle,
Dre wrote:
Hi,
I need to make sessions work in my local machine .. I'm using Apache 2.0.49
on WINDOWS XP PRO.
my php.ini sessions section is
session.save_handler = files
session.save_path = C:\php4\tmp
A common problem is that this path is not writable by the webserver
please check for that.
I try to use some PHP extensions with EasyPHP 1.7 on Windows XP
I have checked the path for extensions in the php.ini file ; it is correct
But when I want do add some extensions , some work well , and others
don't (they are in the same directory )
I get the following message :
Unable to load
On Dec 7, 2004, at 12:34 PM, David Dickson wrote:
I was told that PEAR has too much overhead to be considered for a
large scale site. Does any one feel the same? Is this an outrageous
comment? I would like to hear comments from people who are using PEAR,
or people who have considered PEAR but
Ford, Mike mailto:[EMAIL PROTECTED]
on Wednesday, December 08, 2004 5:18 AM said:
$sql = INSERT INTO testTable values ('', '$_POST[testField]');
should be
$var = $_POST[testField];
$sql = INSERT INTO testTable values ('', '$var');
Nope -- the original is functionally identical to
Michel Gangloff wrote:
I try to use some PHP extensions with EasyPHP 1.7 on Windows XP
I have checked the path for extensions in the php.ini file ; it is
correct
But when I want do add some extensions , some work well , and others
don't (they are in the same directory )
I get the
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 08 December 2004 16:58, Chris W. Parker wrote:
Ford, Mike mailto:[EMAIL PROTECTED]
on Wednesday, December 08, 2004 5:18 AM said:
$sql = INSERT INTO testTable values
Mecnun wrote:
I'm usin php, apache and mysql on my computer. I have run some scripts. so
i'm sure i installed them correctly. One of my script don't run properly,
also it doesnt give error.
I'm trying to send some data to my database by using a form. The database
can get the auto incremented
On Wed, 8 Dec 2004 08:42:50 -0500, Joshua Beall [EMAIL PROTECTED] wrote:
Can you also provide a link to the relevant message in the mailing list
archive? I would like to read this myself.
http://seclists.org/lists/security-basics/2004/Dec/0080.html
--
Greg Donald
Zend Certified Engineer
Mukasa Assey Alfred wrote:
Try ini_set(memory_limit, -1);
Maybe the quotes on -1 will help, but memory_limit should also have quotes.
On Wed, 8 Dec 2004, Joerg P wrote:
hello,
what do I have to change in php.ini, to allow thr
ini_set(memory_limit,-1);
command?
It doesn't work in my
yangshiqi wrote:
Just like many applications, I want to display my main content table a
sector after a sector, may be row ater row.
Is there a specific *WEB* application you are thinking of that does this?
Because while many desktop applications may do this, web applications have
very little
if u can give me an instance of a writable path it would be great.
and yes the data do not get saved and I can not run any thing that depends
on sessions as they do not get registered
Raditha Dissanayake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dre wrote:
Hi,
I need to make
Greg Donald wrote:
The other day a post came across one of those mailing lists discussing
PHP security. One of the posters was describing how insecure PHP's
file upload functionality is and went on to explain a simple method of
attaching exploit code to the end of a jpeg or other image
Peter Law wrote:
I am learning Php and have a web site host where scripts have to be in the
cgi-bin. What is put in the original web page to call a script from the
cgi-bin? The info from the web host is below.
Something like this may be useful to you:
Make two files.
Name one of them:
Hello all,
I have the following script called login.inc which I include at the
beginning of each page on my customer control panel. Basically it checks to
see if a session has been created with user details and if it has it carries
on with the rest of the page and if not the login screen is
I have a stupid question but I can not figure it out
I am using a class that creates the select statement for mysql.
I am ale to add all the data with out any problem. But when I run the
class to get the results. I can only see the results by running echo in
front of the call to the class .
echo
The problem is this. The Values are formatted like this...
value1|value2|value3...etc...
I use the strstr() function to check against the $default so I can check
it
if so.
Well it works great..BUT, lets say the product has a category of Coffee
Pots, but the one of the values available is
In your class function you should move your query to a variable e.g. $query
Then:
return $query;
And in your main program:
$whatever = $q-getQuery();
__
Stefan
-Ursprüngliche Nachricht-
Von: Richard Kurth [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 8. Dezember 2004 19:21
An:
Chris W. Parker wrote:
Ford, Mike mailto:[EMAIL PROTECTED]
on Wednesday, December 08, 2004 5:18 AM said:
$sql = INSERT INTO testTable values ('', '$_POST[testField]');
should be
$var = $_POST[testField];
$sql = INSERT INTO testTable values ('', '$var');
Nope -- the original is
Greg Donald wrote:
On Wed, 8 Dec 2004 08:42:50 -0500, Joshua Beall [EMAIL PROTECTED]
wrote:
Can you also provide a link to the relevant message in the mailing list
archive? I would like to read this myself.
http://seclists.org/lists/security-basics/2004/Dec/0080.html
Everything described
There are times when one needs to parse a file that ends in .jpg (or
.jpeg) as PHP.
Specifically, broken browsers (various versions of IE) that ignore
Content-type: headers and use the URL to determine the MIME type will not
correctly display a URL such as:
Rory Browne wrote:
There are times when one needs to parse a file that ends in .jpg (or
.jpeg) as PHP.
Specifically, broken browsers (various versions of IE) that ignore
Content-type: headers and use the URL to determine the MIME type will
not
correctly display a URL such as:
Is there any way to use fread() or a similar function to read a section of
a document NOT starting at the beginning...
for example, I can read the first 1000 bytes of a document with
fread($doc, 1000);
Is there any way to read the second 1000 bytes?
perhaps, fread($doc, 1000, 2000); who
Shaun wrote:
function db_query($query) {
if(!magic_quotes_gpc()){
$qid = mysql_query(addslashes($query));
} else {
$qid = mysql_query($query);
}
return $qid;
}
But this adds too many slashes! Has anyone come to a better solution
regarding this?
I believe you should be
Bas Jobsen wrote:
Hi,
I want to use a ?: statement. If not true de default function
argument have to be used. How to do this
?
function test($test='default')
{
echo $test;
}
test(($value==1)?'no default':null);
What do i have to pass instead of null to get default print?
Try
Hi,
I want to use a ?: statement. If not true de default function argument have to
be used. How to do this
?
function test($test='default')
{
echo $test;
}
test(($value==1)?'no default':null);
?
What do i have to pass instead of null to get default print?
Tnx,
Bas
--
PHP General Mailing
Ian Gray wrote:
Hello all,
My question is, how secure is this? I have the password, username etc in
a
MYSQL database but I haven't encrypted it (don't know how)
The MySQL 'password' function at http://mysql.com would work.
For something that is portable to non MySQL systems, you can use
Richard Kurth wrote:
I have a stupid question but I can not figure it out
I am using a class that creates the select statement for mysql.
I am ale to add all the data with out any problem. But when I run the
class to get the results. I can only see the results by running echo in
front of the
Hi everyone, apparently I've come across a situation which should be
simple, but I'm not sure where to start.
I've configured a mailing script (MMEX) on my site and all work just
fine.
But what I can't figure out is how to prepopulate my registration form.
On this page
I believe that fread uses the handle pointer from when it was opened
so...
None of the code is tested, I just typed it in.
class FileReader
{
//private
var $handle;
function FileReader($filePath)
{
$this-handle = fopen($filePath,'r');
}
Richard Lynch wrote:
Ian Gray wrote:
My question is, how secure is this? I have the password, username etc in
a
MYSQL database but I haven't encrypted it (don't know how)
The MySQL 'password' function at http://mysql.com would work.
For something that is portable to non MySQL systems, you can use
Hi all,
I have a Socket Client that connects to a Server. (It is not
multi-socket or multi-anything.) It is VERY simple. How it works:
0. CLIENT connects to SERVER.
1. CLIENT waits for incoming data.
2. If there is no data for a while, CLIENT sends a ping to the SERVER.
3. If the SERVER
I have a question about the following code:
**
$months_arr = array(JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG,
SEP, OCT, NOV, DEC);
$months_arr_length = count($months_arr);
for($i = 0; $i = $months_arr_length; $i++){
echo $months_arr[1]. br /;
}
Hi,
Have been using RedHat and Fedora Systems. When I install the OS, Apache is
usually installed already and I download PHP and install manually. I'd like
to install Apache itself but not sure what configuration to use. Is there a
command similar to the phpinfo() command that can tell me how
I want to pass an array from one page to excell generation page. I
tried to pass through session($_SESSION['sql'] = $var). But value is
not set.
The array is actually $result = mysql_query($query);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi again guys,
does anybody have am idea of witch are the required functions to
implement a database query cache? I have a very nice and fast database
layer, witch I use in all my projects (about 19 sites and a lot of
others hot-sites and systems like intranet and extranets). Here is my
idea
What happens is (if I understand it correctly):
First, PHP sets $i to equal 0, and then immediately sets $i to
$months_arr_length.
Every time the loop executes, it resets $1 to $months_arr_length, so
you are stuck in an infinite loop.
The reason behind this is you are using assignment equals
$i = $months_arr_length is an assignment, not a comparison, so it will always
evaluate to true, and you are setting your counter var to 12 every time the
loop runs, that's why it runs infinitely.
From: R. Van Tassel [EMAIL PROTECTED]
Date: 2004/12/08 Wed PM 04:41:00 EST
To: 'PHP general'
Bruno B B Magalhes wrote:
Hi again guys,
does anybody have am idea of witch are the required functions to
implement a database query cache?
What database are you using? I think most of the common ones already
have a cache built into them that you'd just have to enable. That'd be
the best
On Wed, 8 Dec 2004 17:04:26 -0500, Don [EMAIL PROTECTED] wrote:
Have been using RedHat and Fedora Systems. When I install the OS, Apache is
usually installed already and I download PHP and install manually. I'd like
to install Apache itself but not sure what configuration to use. Is there a
--- Greg Donald [EMAIL PROTECTED] wrote:
http://seclists.org/lists/security-basics/2004/Dec/0080.html
Most of this is actually true.
The one statement that is unclear is the following:
There are two kinds of flaws :
- flaws inherent to the php langage itself, as seen before, in file
--- Richard Lynch [EMAIL PROTECTED] wrote:
There are times when one needs to parse a file that ends in .jpg
(or .jpeg) as PHP.
I can't think of any, unless it's prove that you can do it. :-)
Specifically, broken browsers (various versions of IE) that ignore
Content-type: headers and use the
--- Richard Lynch [EMAIL PROTECTED] wrote:
I personally think that if you can't upload your images outside
your web tree then, in fact, your server admin is at fault for not
providing you a directory structure that allows that. Good
security requires cooperation from both admin and Programmer.
I am using mysql with cache results enable, but as every addicted I
want more and more... course I have to benchmark it to see if its
worth...
Regards,
Bruno B B Magalhes
On Dec 8, 2004, at 8:34 PM, John Holmes wrote:
Bruno B B Magalhes wrote:
Hi again guys,
does anybody have am idea of witch
try
for($i=0;$i$months_arr_length;$i++)
look at it as this:
for(i as starting point; till i is what? greater than my length; increment i
how? by 1) {
HTH
Trav
- Original Message -
From: R. Van Tassel [EMAIL PROTECTED]
To: 'PHP general' [EMAIL PROTECTED]
Sent: Wednesday, December 08,
Help me split chars w/o spaces by 2... like: 2004
How can i make it?
first: 20
second: 04
Im working on this..
# begin code
$year_split = date(Y);
$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
# end code
But it splits the whole 2004 string..
Array
(
[0] = 2
Hello,
Dre wrote:
Thanks Manuel, I will check the class
and here is the code of the mail sending script
//==
?php
$att_name = $_POST['att'];
echo $att_name;
$att_size = filesize($att_name);
$handle= fopen($att_name, r);
$file
have you tride using chop() ?
# begin code
$year_split = date(Y);
$chars = chop($year_split);
$chars[0] // = 2
$chars[1] // = 0
$chars[2] // = 0
$chars[3] //= 4
# end code
I hope that will help
From: Louie Miranda [EMAIL PROTECTED]
Reply-To: Louie Miranda [EMAIL PROTECTED]
To: [EMAIL
Hello,
Bruno b b magalhães wrote:
does anybody have am idea of witch are the required functions to
implement a database query cache? I have a very nice and fast database
layer, witch I use in all my projects (about 19 sites and a lot of
others hot-sites and systems like intranet and extranets).
Jerry Swanson wrote:
I want to pass an array from one page to excell generation page. I
tried to pass through session($_SESSION['sql'] = $var). But value is
not set.
The array is actually $result = mysql_query($query);
did you call session_start() at the beginning of your scripts? Is the
query
On Thu, 2004-12-09 at 09:55 +0800, Louie Miranda wrote:
Help me split chars w/o spaces by 2... like: 2004
How can i make it?
first: 20
second: 04
Im working on this..
# begin code
$year_split = date(Y);
$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
# end
?php
$hello2 = chop($year_split);
echo $hello2;
?
outputs: 2004
Whats the correct syntax for it? The manual said..
This function is an alias of rtrim().
and:
rtrim
(PHP 3, PHP 4 )
rtrim -- Strip whitespace from the end of a string
On Wed, 08 Dec 2004 18:11:19 -0800, Tyler Replogle
I am allowing users to imput HTML code into a textarea. After they input
this, I wany to output their HTML to the browser. In order for the document
to be safe, I need to close all open HTML tags that have been left open by
the user, along with any open comments. Is there a way to take an
Matt Palermo wrote:
I am allowing users to imput HTML code into a textarea. After they input
this, I wany to output their HTML to the browser. In order for the document
to be safe, I need to close all open HTML tags that have been left open by
the user, along with any open comments. Is there
Hi All
This is my first mail to php mailing list. i want to
create one login.php program in linux. i want this
page to go the ldap server for authentication. how
should i do it.
thanks in advance.
badlya
__
Do you Yahoo!?
Read only the mail
sir,
I am using Red Hat Linux 8.0, and tried many times to install apache 2.0 and
php4.0 many times, the message comes that apache and php has installed on my
system. when i execute a php program through my web brouser it shows blank.
what causes this and how can I solve this problem? plz
You can find lots of information on your own by reading the manual, always a
good place to start.
Try http://us2.php.net/manual/en/ref.ldap.php
Google is another source.
good luck,
Warren
-Original Message-
From: badlya badlu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08,
On Thu, 9 Dec 2004 08:34, Don wrote:
Hi,
Have been using RedHat and Fedora Systems. When I install the OS, Apache
is
usually installed already and I download PHP and install manually. I'd
like
to install Apache itself but not sure what configuration to use. Is there
a command similar
satya bharti wrote:
sir,
I am using Red Hat Linux 8.0, and tried many times to install apache 2.0 and php4.0 many times, the message comes that apache and php has installed on my system. when i execute a php program through my web brouser it shows blank. what causes this and how can I solve this
Yes. And also look at your php.ini, if the session's name and path is not
set ,
You must set it above session_start();
Like :
session_name('test');
session_save_path(/homes/eric/temp);
session_start();
...
--
: Marek Kilimajer [mailto:[EMAIL PROTECTED]
: 2004129 10:15
: Jerry Swanson
May be you could use a iframe to ensure your own page much safer,
despite show the users' inputs is very dangerous.
--
: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
: 2004129 12:26
: [EMAIL PROTECTED]
: Re: [PHP] Close all open tags in HTML text
Matt Palermo wrote:
I am allowing
80 matches
Mail list logo