===
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
===
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en first
Hello,
I was wondering where the printing support has gone
in php5? Is it still possible? Is is better to use
mysql or sqlite with the new (and improved) php5?
Thanks in advance,
Best regards,
Danny Schalken.
Atrion Information Technology.
--
PHP General Mailing List (http://www.php.net/)
To
On 17 December 2003 21:33, Jay Blanchard wrote:
> [snip]
> I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm
> writing has only a couple of functions, a couple of "if" conditionals
> and a "while" loop. At the very top of the script I have an echo
> statement with a message I want
On Thu, Dec 18, 2003 at 01:39:57PM +1100, Eric Holmstrom wrote:
>
> What im trying to do is read the information from a field in a table called
> PARTNO. Then add RU to the front of whatever is in the PARTNO field.
>
> So far i have this.
>
> //connect details rarara
> //query
> $query= "SELECT
Hello all
Over at http://www.DNSstuff.com, they have a great
tool to check whether an e-mail address is from a free
(web-based) e-mail provider. I need to be able to
perform this check from PHP code. However, the Terms
and Conditions of http://www.DNSstuff.com prohibit me
from writing a scraping s
I have 2 questions:
1) why gethostbyname() does not resolve my host name into IP?
2) why fopen() (and file()) does not open an external (URL) file via http?
Please, see my example below:
--
http://www.management.kiev.ua/try-test/fopen-test-http.php -
--
http://www.ma
Ben Crothers wrote:
At the moment it works fine and extracts fields like first- and surname,
title, department, etc. I need to add the 'office' field, and added it at
the end of this filter line:
---
$filter =
"(|(sn=$search[$i]*)(givenname=$search[$
"Jlake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a small database that I want to display data from. in such a way
that
> it shows shows in a table with the table header being the department
> category and the table cells being the categories for each department. I
> have
Hi,
I am building a web interface to the vacation autoresponder program on linux.
I let users login, edit their message and enable the autoresponder.
The last step (enabling) is where the fun begins because php is run as apache on
my box, and each users' .vacation.msg and .forward are not own
Have u looked at "sudo" and "sudoers"
http://www.courtesan.com/sudo/
http://www.courtesan.com/sudo/man/sudoers.html
regards
pete
Mat Harris wrote:
Hi,
I am building a web interface to the vacation autoresponder program on linux.
I let users login, edit their message and enable the autoresponde
yes i've looked at sudo but for some reason, when I use sudo in a php
script, the messages file shows the sudo command failing, I believe it
was because sudo only works on a std term.
If this is not the case, I would be delighted.
On Thu, Dec 18, 2003 at 12:31:23 +, pete M wrote:
> Have u loo
On Thu, Dec 18, 2003 at 12:24:21PM +, Mat Harris wrote:
:
: I am building a web interface to the vacation autoresponder program
: on linux.
:
: I let users login, edit their message and enable the autoresponder.
:
: The last step (enabling) is where the fun begins because php is run
: a
Thanks for the reply but I have already tried the DontBlameSendmail options.
Either the flags are ignored or I am using the wrong combination (there are
several flags I believe). If there is a good sequence for those options
then I would love to know.
thanks
On Thu, Dec 18, 2003 at 06:42:37 -060
Another solution would be to place each change to the files in a MySQL
table, and then have a cron that is run every X minutes read this table, and
makes the actual changes I'm not sure if this idea is suitable in your
situation due to the time lag between the client asking for the change, and
Hi,
From your post i the the proper use of databases hasn't 'sunk in' yet.
I propose that you head off to one of the sites such as phpbuilder.com
or devshed.com where you will find lots of articles on dbs as well as
how to use them with php.
all the best
KidLat Ngayon wrote:
Greetings Guyz..
Mat --
[BTW, my gnupg could not find your public key.]
...and then Mat Harris said...
%
% yes i've looked at sudo but for some reason, when I use sudo in a php
% script, the messages file shows the sudo command failing, I believe it
% was because sudo only works on a std term.
Nope; it works an
On Thu, Dec 18, 2003 at 08:30:32 -0500, David T-G wrote:
> Mat --
>
> [BTW, my gnupg could not find your public key.]
hmm, i'll look into it.
> ...and then Mat Harris said...
> %
> % yes i've looked at sudo but for some reason, when I use sudo in a php
> % script, the messages file shows the su
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
Cheers all..
**
That means "the current directory"
Cheers,
Marco
--
php|architect - The Magazine for PHP Professionals
Try us free at http://www.phparch.com!
Complete searchable PHP mailing list archives at
http://www.phparch.com/mailinglists
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
./ means the current directory.
B
Oh...
So it's the same as not having any /'s
just the file name?
Marco Tabini <[EMAIL PROTECTED]>
18/12/2003 14:01
To
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Subject
Re: [PHP] includes...
That means "the current directory"
Cheers,
Marco
--
php|architect - The Magazine for PHP Profes
[EMAIL PROTECTED] wrote:
Oh...
So it's the same as not having any /'s
just the file name?
Not quite. For example, when you have more than one executables with the
same name, when you use ./executable_name, it will call the the one in
your current directory, otherwise it will use the one in yo
On Thu, Dec 18, 2003 at 12:52:14PM +, Mat Harris wrote:
: On Thu, Dec 18, 2003 at 06:42:37 -0600, Eugene Lee wrote:
: > On Thu, Dec 18, 2003 at 12:24:21PM +, Mat Harris wrote:
: > :
: > : I am building a web interface to the vacation autoresponder program
: > : on linux.
: > :
: > : I
Hi,
I searching for a database, with the 'complete' world
Countries, cities, states
Just like
http://www.datingplace.com/servlet/NewRegistration
I need for an academic study.
Thanks,
Augusto
__
Conheça a nova central de in
Ford, Mike [LSS] wrote:
Shouldn't that be *don't* use output buffering and...? The flush() function has nothing to do with output buffering, and if output buffering is on you will need ob_flush() as well.
Another (and probably better) solution is to create a php-cli.ini file, which will be picke
php-general Digest 18 Dec 2003 14:48:34 - Issue 2480
Topics (messages 172922 through 172951):
Update issue - more then likely simple problem
172922 by: Eric Holmstrom
172930 by: Eugene Lee
get output in .html file
172923 by: martin
172926 by: Shawn McKenzie
Hello,
I'm trying to develop a secure web based application and my only tools are
php, mysql, and a SSL connection.
Does anyone know of any good references for this kind of development?
What I really need to do is to make sure that given users only gain access
to the parts of the application the
Does your php.ini have Globals set to off?
Was your php installation compiled with session support?
If your answer to both of those questions is yes (you can check your
server config with a page containing this string )
Then use session to register a variable such as the example below...
Then sa
--- Augusto Cesar Castoldi <[EMAIL PROTECTED]> wrote:
> I searching for a database, with the 'complete' world
> Countries, cities, states
I like GeoIP:
http://www.maxmind.com/
Hope that helps.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP De
On Thu, 18 Dec 2003 10:43:14 -0500, you wrote:
>I'm trying to develop a secure web based application and my only tools are
>php, mysql, and a SSL connection.
>
>Does anyone know of any good references for this kind of development?
>
>What I really need to do is to make sure that given users only g
Hello. I'm a new PHP user and unfamiliar with the terminology, so if I sound like I
don't know what I'm talking about, I don't. :)
I do a website for a club I belong to and would like to post the Subjects of new
emails to our Announcements email list on the website. Instead of manually adding t
On 18 December 2003 14:48, Rodney Green wrote:
> Ford, Mike [LSS] wrote:
>
> > Shouldn't that be *don't* use output buffering and...? The
> flush() function has nothing to do with output buffering, and
> if output buffering is on you will need ob_flush() as well.
> >
> > Another (and probably b
Exact mechanism of how this is done depends on what your mail server is..
You can usually pipe an incoming mail message to an executable programs
(this is anyway done by the MTA) in your case the executable can simply
be a php script that makes use of a suitable mime decoder (you will find
seve
Hello,
I have just been assigned to a project to convert a large static site to
PHP. I have used PHP for small jobs in the past, but most of my work has
been with Perl. One feature I've used and liked very much was provided by a
package called Embperl. In particular, Embperl::Object, which allows
Hi
I have develop an online catalog in php/mysql. Now the client needs
the web site on a cd. Of course without php or mysql...
What is the fastes and easiest way to convert the only 2-3 dynamic
php pages into static html files?
Of course I could copy the html code generated by the php pages
Anytime I need to do something similar to this I prefer to use "lynx
-source [[URL]] > [[output_file]]"
HTH!
--Sam
Paul Godard wrote:
> Hi
>
> I have develop an online catalog in php/mysql. Now the client needs
> the web site on a cd. Of course without php or mysql...
>
> What is the fast
Paul Godard wrote:
Hi
I have develop an online catalog in php/mysql. Now the client needs the
web site on a cd. Of course without php or mysql...
What is the fastes and easiest way to convert the only 2-3 dynamic php
pages into static html files?
Of course I could copy the html code generat
"Taras Panchenko" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have 2 questions:
> 1) why gethostbyname() does not resolve my host name into IP?
> 2) why fopen() (and file()) does not open an external (URL) file via http?
> Please, see my example below:
> --
>
ht
Hello,
Is there any way to manage links in an array and transform them.
For example, I have this text in the database:
---
Software & Support Media, produc-ers of the International PHP
Conference, are pleased to announce a new monthly version of their print
publication. For more information, you
On Thursday 18 December 2003 01:37 pm, Vincent M. wrote:
> Hello,
>
> Is there any way to manage links in an array and transform them.
> For example, I have this text in the database:
php.net/preg_replace
>
> ---
> Software & Support Media, produc-ers of the International PHP
> Conference, are ple
Can anyone point my to a MySQL specific SQL newsgroup. having some problem
corectly extracting data.
Thanks,
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is the tutorial i used
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
KidLat Ngayon wrote:
Greetings Guyz.
I would just like to ask for a help regarding on
"Links of Tables from other DB". I'm just only a
newbie in PHP Programming.
What I have right now is a
This works for me
My Form
?>
Send this file:
savefile.php
// In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of
// $_FILES. In PHP earlier then 4.0.3, use copy() and is_uploaded_file()
// instead of move_uploaded_file
$uploaddir = '/fullDirectoryPath';
$uploadfile = $
The URL below lists all of the MySQL mailing lists. Just choose the one
that is most specific to your issue:
http://lists.mysql.com/
HTH!
--Sam
JLake wrote:
> Can anyone point my to a MySQL specific SQL newsgroup. having some
> problem corectly extracting data.
>
> Thanks,
>
> J
--
PHP G
Thanks
"Sam Masiello" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
The URL below lists all of the MySQL mailing lists. Just choose the one
that is most specific to your issue:
http://lists.mysql.com/
HTH!
--Sam
JLake wrote:
> Can anyone point my to a MySQL specific SQL newsgr
what about output buffering and saving the output to a file instead of
flushing to the screen, that would work easy :)
Luke
--
Luke
"Paul Godard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I have develop an online catalog in php/mysql. Now the client needs
> the web s
I'm trying to configure/compile PHP4.3.4 on Solaris 2.8.
Seem that 'configure' just hangs now. The 'new' build systems is broken.
I can build older
version with no problem. Seem something that was not broken was 'fixed'.
(Not a good idea.)
So, the old command of: 'configure --prefix=(what ever) --w
hi,
i need to update a mysql table with a dbf file, the dbf file contains more then 16
records. i knew that the script will not be able to update 16 records in 1 go so i
am refreshing the page after speacific no of records. but still the same problem. the
script timeout.i tried changing
Yahoo has a very active group for PHP/MySQL.
http://groups.yahoo.com/group/php_mysql/
Jim
- Original Message -
From: "Sam Masiello" <[EMAIL PROTECTED]>
To: "JLake" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 1:56 PM
Subject: RE: [PHP] MySQL newsgroup
Th
Have you tried setting a limit on your MySQL insert and update
statements to limit the amount trying to be processed?
Haseeb Iqbal wrote:
hi,
i need to update a mysql table with a dbf file, the dbf file contains more then 16
records. i knew that the script will not be able to update 16 r
Hi,
If I have more than one form on a page, how can I get the
name of the form that was sent on the recieving page
without using javascript?
tia,
Craig
TOP DRAW INC.
p 780.429.9993
f 780.426.1199
[EMAIL PROTECTED]
www.topdraw.com
Craig --
...and then php said...
%
% Hi,
Hi!
%
% If I have more than one form on a page, how can I get the
% name of the form that was sent on the recieving page
% without using javascript?
1) What's a form name?
2) Whatever it is, I suppose you could embed it in a hidden field.
3) Name
Do you mean a variable being passed to the next page from within a form
ex. or
If you are talking about the input name for a text box use this snippit...
is(empty($_POST['variable_001']) {
// Do negative result code
} elseif(!empty($_POST['variable_001']) {
// Do positive result code
...
Or if
Let me know if that solves your problem if you would be so kind... I am
sure it will but I just want to make sure.
Jas
Jas wrote:
Have you tried setting a limit on your MySQL insert and update
statements to limit the amount trying to be processed?
Haseeb Iqbal wrote:
hi,
i need to update a my
Give your forms unique names.
-- form page --
-- whatever.php --
if ($_POST["form1"] == "Submit") { do something;}
elseif ($_POST["form2"] == "Submit") { do something else;}
elseif ($_POST["form3"] == "Submit") { do something creative;}
else {
die("no form submitted");
Jim
- Original Mes
Thankyou i did not know that command existed! so simple cheers
"Eugene Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, Dec 18, 2003 at 01:39:57PM +1100, Eric Holmstrom wrote:
> >
> > What im trying to do is read the information from a field in a table
called
> > PARTNO.
This one is perfect:
$text = preg_replace( "/(?\s]+)/i", "URL", $text );
:D
Evan Nemerson wrote:
On Thursday 18 December 2003 01:37 pm, Vincent M. wrote:
Hello,
Is there any way to manage links in an array and transform them.
For example, I have this text in the database:
php.net/preg_replac
On Wed, 17 Dec 2003 23:15:19 +0800, Yc Nyon <[EMAIL PROTECTED]> wrote:
I am comparing between this two php-based CMS?
My focus is really
1. the availability of modules/add-ons.
Not too sure, but seems PHPnuke has more add-ons than Postnuke.
2. ease of maintaining a group of contributors/writers
N
Is there a way to copy a file from 1 server to a different one?
I have this code in a win 2k server, and i try to copy the file to a win NT
server:
if (is_file($file_att))
if (copy($file_att,'\servername\folder\'.$file_name))
echo "succesful";
else
echo "failure";
It gives me this war
Try this:
if (copy($file_att,'servername\\folder\\'.$file_name))
and make sure you have write access on the winNT server
did that work?
Luke
om
"Omar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a way to copy a file from 1 server to a different one?
> I have this
how can i do that?
btw the script runs on a local machine but updates the records on a
webserver i mean live server. this is also a factor for the timeout. the
script was running smoothly for 24000 recods before but now it suddenly
timeout after 800records. i dont know what is heppening
Haseeb
---
Hi, is the best way to store data in a mysql database in the text it was submitted, or
in HTML
format ... changing all the \r's and things to
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Which ever way is better for you. That is, what ever is easier when it
comes to retrieving and displaying it again. Both items will be treated as
text, so mysql won't care.
Thomas
"Philip J. Newman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi, is the best way to store data
Hi all,
I have an issue here. I'm making a english/spanish site and want the browser
to remember their preference with a cookie. The first time a visitor comes
into the site, they will be taken to the english part (www.site.com/eng/)
and when someone clicks over the "Spanish" link, I want the cook
Should $_POST[formReviewBy] have quotes or dose it not matter?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It should have quotes, unless you have defined formReviewBy as a constant
PHP's nice enough to interpret it as a string if using it as a constant
fails, but you should still quote it anyway.
Martin
>
>
> Should $_POST[formReviewBy] have quotes or dose it not matter?
--
PHP General Mailing L
On Friday, December 19, 2003, at 12:19 PM, Philip J. Newman wrote:
Hi, is the best way to store data in a mysql database in the text it
was submitted, or in HTML
format ... changing all the \r's and things to
There's definitely no best way...
Theory 1:
Store it in the format you'll most common
Philip J. Newman wrote:
Hi, is the best way to store data in a mysql database in the text it was submitted, or
in HTML
format ... changing all the \r's and things to
Depends what you're going to be doing with it. If you know it's only
going to go back out to web pages, then it'd make sense to d
Quoting Justin French <[EMAIL PROTECTED]>:
> Theory 3:
> For more complex transformations (I have a library which performs heaps
> of transformations for paragraphs, headings, line breaks, ol and ul
> lists, and heaps more), ...
and where can we find that library ?
--
-
Hi Chris,
Chris Shiflett wrote:
> I like GeoIP:
>
> http://www.maxmind.com/
I'm in the search for something similar. Took a look at that site and it
seems they want cash for everything.
Is there any free resources available. It's of course possible to find the
info on www.ansi.org and other inte
Hello,
On 12/18/2003 03:10 PM, [EMAIL PROTECTED] wrote:
I do a website for a club I belong to and would like to post the
Subjects of new emails to our Announcements email list on the
website. Instead of manually adding the subjects to the website, I
thought there might be a way to automate it. If
On Friday, December 19, 2003, at 01:35 PM, Philip J. Newman wrote:
Should $_POST[formReviewBy] have quotes or dose it not matter?
Well, since you've obviously tested it and it works, then the simple
answer is probably "it doesn't matter", however, all examples in the
manual using string-keys
Hi Cameron,
Seems like http://xaoza.net/software/phpmesh/ could be of some interest to you.
I'm checking it out myself as we speak, so I cannot confirm whether it gives you
template inheritance via subdirectories. It does provide a means to do away with
standard includes anywhere on your site...
That practice $_POST[formReviewBy] should be discouraged. That kind
of practice is nearly as bad as magic numbers.
You *should* always put variables referenced by $_POST["formReviewBy"]
in quotes unless specifically designed.
Why??
If you run into a page with a mysterious error (usually missing
===
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
===
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en first
75 matches
Mail list logo