I'd recommend this script with a few changes.
?
$Emails = array(Get your list of emails into the array somehow);
for($i=0; $icount($Emails); $i++) {
// send email code
usleep(delay in microseconds);
}
?
Matthew Walker
Senior Software Engineer
ePliant Marketing
On Mon, 22 Apr 2002, Gregor Jaksa wrote:
if (!eregi(^[[:alpha:]]$, $HTTP_POST_VARS[vpis_ime]))
echo wrong char;
why does this always return wrong char no matter what value is in vpis_ime
... i tried blah, 242234 bla242h .. every single time i get wrong
char. im using PHP 4.1.2
The only
Hello,
Liam Mackenzie wrote:
Hey all,
I was just wondering if someone's written a script that will let me send lots of
emails to an address, but with a small pause inbetween emails.
And no I'm not using this for spam, I need to test a SMTP server that I'm developing.
You may want to try
Hello:
I've just discovered this php product
http://dev.4arrow.com
And I would like to know if anyone is using it and his/her opinion.
Best Regards.
QaDRAM Studio, RAD Development for the WEB
http://studio.qadram.com
--
PHP General
Hello
I have to interface an MSAccess database and Apache server on a linux
box thru PHP. The only way I found to do that is to use ODBC with some
specific drivers (I tried Openlink). This solution needs sort of server
running on a Windows station, it serves requests to the Access database
file.
Hi,
Sp [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am trying to validate my input with ereg but I get the error Warning:
REG_BADBR when I try over 255 characters. Is there anyway around this?
Works
=
if(eregi('^[A-Za-z]{1,255}$', test sentence))
this is a problem of IE, not of PHP.
Year, but since I controll IE with PHP, I thought someone has a
php-workaround.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I get the PHP Fatal error: Allowed memory size of N bytes exhausted and I
want to check free memory at some point in a script. How can I do that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 22 April 2002 02:33, Jason Soza wrote:
Hmm... Okay, I used this script I found on hotscripts - it copies the
entire file to the specified directory:
echo pcenterTrying to upload to:
. $upload_path . $filename . /center/p\n;
if (
On Monday 22 April 2002 16:39, Martin Thoma wrote:
this is a problem of IE, not of PHP.
Year, but since I controll IE with PHP, I thought someone has a
php-workaround.
You don't control IE, MS does.
Some versions of IE insist on trying to display the file regardless of what
the headers
I can do it now.
Thanks all of you !
Joe
Hugh Danaher [EMAIL PROTECTED]
???:000b01c1e9c5$02ccf460$[EMAIL PROTECTED]
{ header(Location:
http://www.XXX.edu/index.php?variable=$variablesecond_variable=$second_vari
able);
exit;}
You'll get to transfer about 255 characters using
On Sun, 21 Apr 2002 00:54:39 +0200, Manuel Lemos wrote:
Hello,
Richard Ellerbrock wrote:
If you want to hear experiences of people that tried Metabase, try
asking in Metabase mailing list (
http://groups.yahoo.com/group/metabase-dev/ ) or BinaryCloud mailing
lists (
Hi all,
I'm building a site where customers can store their personal information. I'm thinking
of storing their creditcardno's also.
Can you give me some general tips with regard to security. What is the way to go here?
thx. Wilbert
-
Pas de Deux
Van Mierisstraat 25
On Monday 22 April 2002 17:16, Wilbert Enserink wrote:
I'm building a site where customers can store their personal information.
I'm thinking of storing their creditcardno's also. Can you give me some
general tips with regard to security. What is the way to go here?
This has been discussed
Suppose i have a multiple select posted to a script by a form.
now i have to send this array again with a new form to a new
script.
How do i do this?
thanks
berber
On Monday 22 April 2002 11:40 am, Boaz Yahav wrote:
Suppose i have a multiple select posted to a script by a form.
now i have to send this array again with a new form to a new
script.
How do i do this?
thanks
berber
Hi Berber
you could serialize the array into a hidden field on
thx Jason. I found it!
regards!
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:29 AM
Subject: Re: [PHP] security
On Monday 22 April 2002 17:16, Wilbert Enserink wrote:
I'm building a site where customers can store
Hi all
all the links in my page link to not existing html pages.
i redirect the 404 to a php script. when users had disabeled cookies,
i parsed the request_uri for phpsessid and then set
$HTTP_GET_VARS['PHPSESSID']=the parsed one.
when i after that called session_start(), php was using the id
Well, since you fail to mention which versions of PHP you were using before
and after the upgrade it's a little difficult to diagnose your problem.
You should really have checked the change log
(http://www.php.net/ChangeLog-4.php) before upgrading anyway (a lot changed
in the 4.0.x - 4.1.x
Hi all,
I have a database. It receives from my users files - which could be word
documents, Adobe PDF files, text docs, anything...
I store these in a BLOB field of the database.
On a certain page, I include a link to these files which have been saved
into the blob. The link is a
- Original Message -
From: David Russell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:19 AM
Subject: [PHP] Database and files
I have a database. It receives from my users files - which could be word
documents, Adobe PDF files, text docs, anything...
I store
At 12:19 PM +0200 22/4/02, David Russell wrote:
Header(Header(Content-Disposition: attachment; filename=\File65.doc\ );
That's not right. Must be a typo.
Make sure there is no output before the header function calls.
I use:
header(Content-type: application/octet-stream; name=\$fname\);
At 11:25 AM +0100 22/4/02, Danny Shepherd wrote:
If you get multiple requests for files, expect the db to fall over very
quickly - what's wrong with storing them on the filesystem and having a list
of them in the db?
If your DB falls over, get a better one. You wouldn't do this with
Access, but
Hello,
Richard Ellerbrock wrote:
I have done MySQL (MyISAM, INNODB), PostgreSQL and Oracle 9i with AdoDB
- see http://iptrack.sourceforge.net. Works just fine for me. The
hardest part was to get around limitations of certain databases - like
Oracle does no support record count. This is
- Original Message -
From: Richard Archer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:40 AM
Subject: Re: [PHP] Database and files
At 11:25 AM +0100 22/4/02, Danny Shepherd wrote:
If you get multiple requests for files, expect the db to fall over very
php-general Digest 22 Apr 2002 10:50:53 - Issue 1301
Topics (messages 93917 through 93966):
Re: PHP @ 24-hour programming competition
93917 by: Martin Towell
93923 by: Maxim Maletsky
Re: phpLISTMAN
93918 by: Maxim Maletsky
Re: Better standards in PHP-coding
Hi all,
Another bug bites the dust...
Thank you so much for your responses...
As for the DB/filesystem issue, we need to be able to easily replicate this
at some time to another server as the system may easily become a
distributed intranet system. We made the decision to use a database as
Hi all,
I'm looking for a simple method to start a linux daemon from a php script...
I've already tried to use sudo by giving rights to apache user to execute
some scripts from /etc/rc.d/init.d ; I do a exec (sudo
/etc/rc.d/init.d/daemon start);
Sometimes the daemon startup, sometimes no... I
Not played with them myself but you might want to take a look at the
system() and shell_exec() functions.
HTH
Danny.
- Original Message -
From: Gilles Nedostoupof [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 12:28 PM
Subject: [PHP] Daemon starting
Hi all,
Hi,
I'm running a cuple of servers with php + mysql. Now, on one server I am
running a setup with PHP 4.0.6 (patched for security) and Cyrus Imapd
1.5.x. I am having large problems getting this to work. The server
functions w/o problems except that it segfaults every time I use the
imap-open
On Mon, 2002-04-22 at 12:29, Tarjei Huse wrote:
Hi,
I'm running a cuple of servers with php + mysql. Now, on one server I am
running a setup with PHP 4.0.6 (patched for security) and Cyrus Imapd
1.5.x. I am having large problems getting this to work. The server
functions w/o problems
Hello All,
I have a variable in the following date format:
April 11, 2002, 1:53 pm
and want to get it to the following format:
-mm-dd
what's the best way?
hamish
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all of you
I 'm desesperatly trying to connect to my MS SQL server 2000 demo version using a php
script (executed by a form), running Easyphp (apache) as Web server, under Win 2000
Pro F Sp1.
It says
Warning: MS SQL message: Échec de la connexion de l'utilisateur 'Aurelien'. (severity
14)
Hi list!!!
I want to make a script to do a backup of a MySQL DB and email me it. It is
posible?
Can anybody explain me how to do the backup?
Thanks! Julian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anybody explain me how to do the backup?
Mysql's manual?
I want to make a script to do a backup of a MySQL DB and email me it. It
is
posible?
Then you take the backup (aka Mysql's dump), and attach it to a mail();
--
Julio Nobrega.
Um dia eu chego lá:
Hamish,
A quick read through the date functions in the manual is worthwhile
http://www.php.net/manual/en/ref.datetime.php
In particular, you need to look at strtotime() and date().
strtotime() is an often overlooked function, useful for getting almost any
english written date into a unix
I think everyone is aware that there is a mysql manual, obviously if someone
is posting in this forum they have not been able to find what they are
looking for in the manual. Or simply do not have to time to wade through the
manual to find what they are looking for.
Here is a link to a script
Hi the ML
I received the following error message on my web page when I try to
communicate with My SMTP server:
Warning: socket_set_timeout() is not supported in this PHP build
My config is
PHP 4.0.6
Win Nt 4
Apache 1.3.22
Any information on this function ?
--
PHP General Mailing List
I don't think the windwos version of PHP supports sockets.
use fsockopen instead. (http://uk.php.net/manual/en/function.fsockopen.php)
HTH
Danny.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 1:59 PM
Subject: [PHP] Pb with
Add it to the session.
Sessions can handle arrays with no problems.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 11:47 AM
To: Boaz Yahav;
Search archives, as a tip I'd suggest to encrypt the Credit Card numbers
with RC4 or some other algorithm.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
Sent:
Also very true.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 6:50 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Better standards in
Right, certain things is beter to keep in the Db. Keep present that the
file system is limited. You can't just have an unlimited amount of files
on the same directory.
PostgreSQL is the best choice on my opinion. mySQL might fail on a large
DB.
Sincerely,
Maxim Maletsky
Founder, Chief
I think everyone is aware that there is a mysql manual, obviously if
someone
is posting in this forum they have not been able to find what they are
looking for in the manual. Or simply do not have to time to wade through
the
manual to find what they are looking for.
Hi Mike, I am not
I think it is already done a WHILE ago.
Look for it on source Forge or hotscripts.com. Include C/C++, Perl and
Shell scripting in your searches.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Julian
At 22.04.2002 14:04, you wrote:
Hi all of you
I 'm desesperatly trying to connect to my MS SQL server 2000 demo version
using a php script (executed by a form), running Easyphp (apache) as Web
server, under Win 2000 Pro F Sp1.
It says
Warning: MS SQL message: Échec de la connexion de
Or just:
While(True) {
// send email
sleep(1);
if($tired==True)
Break;
}
Count how many mails you want and quit :-)
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From:
Hi ,
I am please to announce that the next PHP Training will take place on May
8th - 9th.
More information may be found at http://www.websapp.com/training.php
Regards,
Daniel Kushner
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Other than notepad, interdev, ultraedit, etc (which i currently use for
editing), does anyone know of a good editor for PHP for Windows, ideally
with syntax colouring, etc?
Cheers,
.ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
www.phpide.de
It's called PHP Coder. Don't get the versions by Maguma (last time I used,
it was buggy). Instead, go to older downloads and get the PHP Coder file
named phpide-r2p3setup
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um
the new ultradev (MX) contains what you need
there is a trial download on the macromedia site
Julio Nobrega Trabalhando [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
www.phpide.de
It's called PHP Coder. Don't get the versions by Maguma (last time I
used,
Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete,
but you can customize it for auto-complete if you want. You can also
make it tab 2 instead of 4 :) It's been my editor since the free version
1.0 and it's a work horse. And Home Site has Ultra Dev/Dream Weaver
On Friday, April 19, 2002, at 06:18 PM, Tobias Lindqvist wrote:
Hoe come I cant use $HTTP_*_VARS in my script ? I have register_globals
on, track vars is also on and i have made the necessary changes in my
apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache (
newest ) and
www.editplus.com
-Original Message-
From: Scott St. John [mailto:[EMAIL PROTECTED]]
Sent: 22 April 2002 06:26
To: .ben
Cc: PHP
Subject: Re: [PHP] PHP editor for windows
Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete,
but you can customize it for auto-complete
I like VIM. at www.vim.org its got great color for a multitude of languages
and its a powerful editor too.
-Steve.
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 5:40 PM
To: PHP
Subject: RE: [PHP] PHP editor for windows
On Friday, April 19, 2002, at 09:41 PM, Andre Dubuc wrote:
Is there a way I can verify that (a) globals are off and (b) $_SESSION
or
$_POST are on? This probably what's happening -- I can't access the
arrays at
all -- so, I think that might be where the problem lies. The $vars
still
At 22.04.2002 15:17, you wrote:
Search archives, as a tip I'd suggest to encrypt the Credit Card numbers
with RC4 or some other algorithm.
Maxim,
I don´t agree your suggestion, as I mentioned earlier on the list, avoid
storing CC numbers
unless it´s absolutely necessary, you´ve got a good
thanks for all the replies, will have a play with those suggested.
.b
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 22 April 2002 22:40
To: PHP
Subject: RE: [PHP] PHP editor for windows
www.editplus.com
-Original Message-
From: Scott St.
http://www.phpedit.com/index.php
Steve Bradwell [EMAIL PROTECTED] wrote in message
57A1618E7109D311A97D0008C7EBB3A1CBB2C3@KITCHENER">news:57A1618E7109D311A97D0008C7EBB3A1CBB2C3@KITCHENER...
I like VIM. at www.vim.org its got great color for a multitude of
languages
and its a powerful editor
unsubscribe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm running Advance Server with MSSQL 2000 Enterprise.
I can not get php to return more than 255 characters. In MSSQL I have
set a column up as an ntext, nvarchar (4000), etc... But no matter what
it only returns 255 characters. Its not the MSSQL Server because I have
no trouble returning with
Change nvarchar to varchar, ntext to text. I do not think you can return a
nvarchar from SQL Server like that. Was this imported from Excel?
-Scott
On Mon, 22 Apr 2002, Jeff Hatcher wrote:
I'm running Advance Server with MSSQL 2000 Enterprise.
I can not get php to return more than 255
How would you go about deleting a specific line in a textfield via PHP? For example,
I want to delete line 2 only and save the changes. How would I go about doing this
using fread and fwrite?
Kris
I am using php4 on windows and has been serving php files just fine however,
once I started creating forms i.e data submition in forms. The browser
displays /php4/php.exe as part of the url even after I try to refresh the
page.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi again.
Hoe come I cant use $HTTP_*_VARS in my script ? I have
register_globals
on, track vars is also on and i have made the necessary changes in my
apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache
(
newest ) and newest PHP release.
You don't want to use $HTTP_*_VARS.
Chris,
Thanks for your feedback.
Note: The ItemNumber is the Primary key for the Item table and the Foreign
key for the Inventory table. Also, I'm only selecting a limited number of
fields in the MSSQL query string.
P.S.: If it were a PHP/MSSQL error, shouldn't the browser spit out an error
Are you using method=post in your form tag? Sometimes, if you leave that
out, some weird stuff will appear in the URL.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: dengach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
www.editplus.com
I second this recommendation! Really good program.
Thanks,
Lauri
--
Tharapita Creations
[server-client web applications]
[EMAIL PROTECTED]
Mobile: +372 53 410 610
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday, April 22, 2002, at 09:36 AM, .ben wrote:
Other than notepad, interdev, ultraedit, etc (which i currently use for
editing), does anyone know of a good editor for PHP for Windows, ideally
with syntax colouring, etc?
Cheers,
.ben
You use etc for editing? Sounds pretty cool.
Edit Plus, PHPEdit ... Just browse the archives, Ben
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: .ben [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:36 PM
To: PHP
Subject: [PHP] PHP editor for
On Monday, April 22, 2002, at 09:36 AM, .ben wrote:
Other than notepad, interdev, ultraedit, etc (which i currently use for
editing), does anyone know of a good editor for PHP for Windows, ideally
with syntax colouring, etc?
Cheers,
.ben
You use etc for editing? Sounds pretty
I like ActiveState Komodo, it isn't free (I didn't find anything free that
did what I needed) but they do have a non commericial license and a trial
period. http://www.activestate.com.
Jason
-Original Message-
From: Lauri Vain [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002
On Monday, April 22, 2002, at 10:28 AM, Tobias Lindqvist wrote:
Hoe come I cant use $HTTP_*_VARS in my script ? I have
register_globals
on, track vars is also on and i have made the necessary changes in my
apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache
(
newest )
On Monday, April 22, 2002, at 11:07 AM, .ben wrote:
Other than notepad, interdev, ultraedit, etc (which i currently use
for
editing), does anyone know of a good editor for PHP for Windows,
ideally
with syntax colouring, etc?
Cheers,
.ben
You use etc for editing? Sounds pretty
I really hate to do this, but it's one of my pet peives.
Shooter McGavin: I eat pieces of shit like you for breakfast.
Happy Gilmore: You eat pieces of shit for breakfast.
Wonderful movie.sorry about being a prick.
Brian
-Original Message-
From: Erik Price [mailto:[EMAIL
I agree it is annoying to see someone ask a question when it doesn't look
like they even tried to find the answer on there own. We just have to
remember that we have all been in the situation where we new so little about
a subject that we didn't even know were to begin to look.
When a beginner
AFAIK, there is no unix app for using Access databases. You could try WINE
or some sort of virtual desktop running Windows and use Access through
that, but that would probably be even less stable than Windows itself.
Running Windows 2000 with service pack 2 for the db server should probably
How would you go about deleting a specific line in a textfield via PHP? For example,
I want to delete line 2 only and save the changes. How would I go about doing this
using fopen and fwrite?
Kris
remove the To:$email from $headers. You have it already in the $to
parameter.
- Original Message -
From: Edward Bailey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:48 AM
Subject: [PHP] script executeion problem - executes twice for no reason -
help
Please
I have been using html-kit @ http://www.chami.com/html-kit/
works great.. and the only stable inbuilt FTP proggy i have seen to date..
does anyone have alternatives to this? :)
Regards,
Kunal Jhunjhunwala
Minds think with ideas, not information. No amount of data, bandwidth, or
processing power
AFAIK, there are no lines in a textfield; Text is simply displayed
as needed to fit in the area of the textfield.
As soon as you can do anything with it in PHP, it is no longer in
a textfield but simply one string; This string you may search with
regular expressions or using PHP string
I really hate to do this, but it's one of my pet peives.
is that like a pet rock?
BTW if we're exercising peevishness, at the same time as indulging in
anally non-retentive breakfast habits, check out
http://www.onelook.com/cgi-bin/cgiwrap/bware/afen.cgi?type=word_allword
=peeve
Other
HI ML
Only one little question :
I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS
exist on php 4.1.2 ?
Regards
Laurent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I got a good start-tutorial from www.onlamp.com
the complete URL is
http://www.onlamp.com/pub/a/php/excerpt/webdbapps_8/index.html?page=2
if you had some problem, you can write me, so I could send you it as an
attached file
i found it very good
regards
Ornella
Recently I have been
?php
$file_name = 'test.txt';
$line_no_to_delete = 2;
$f = fopen($file_name, 'rw+');
$s = explode(\n, fread($f, filesize($file_name)));
unset($s[$line_no_to_delete - 1]);
fseek($f, 0);
fputs($f, implode(\n, $s));
fclose($f);
?
Kris Vose [EMAIL PROTECTED] wrote in message
[EMAIL
I have a simple count file named count_db that contains ONLY the following:
{
'total' = 3954
}
How do I open file, find numbers in the file, add $newnumbers to existing
numbers. Then write these new numbers over the original numbers and close
the file. I'm just needing to do this once a day
?php
$file_name = 'test.txt';
$new_value = rand(1000, 100);
$f = fopen($file_name, 'rw+');
$s = explode(\n, fread($f, filesize($file_name)));
$s[1] = substr($s[1], 0, 11) . $new_value;
fseek($f, 0);
fputs($f, implode(\n, $s));
fclose($f);
?
Craig Westerman [EMAIL PROTECTED] wrote in message
$lines = file('filename');
foreach($lines as line) {
list($var,$val) = explode('=',$line);
if(trim($var)=='total') $val = trim($val);
}
$val = $new_value;
$fp = fopen('filename','w');
fputs($fp,{\n'total' = $new_value\n});
fclose($fp);
-Rasmus
On Mon,
On Mon, 22 Apr 2002, Edward Bailey wrote:
if()
{$filename = ../includes/news.html;
This condition will always return true.
What you are doing here is first executing the assignment:
$filename = ../includes/news.html;
and then testing the outcome of that assignment (which is
Ok I'm trying to create a script that would allow users to bind to an
LDAP server and we all know there's gonna be some people mistyping their
password but when I try to bind and put the wrong password I always get
a warning message like this:
Warning: LDAP: Unable to bind to server: Invalid
On Monday, April 22, 2002, at 12:19 PM, [EMAIL PROTECTED] wrote:
HI ML
Only one little question :
I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS
exist on php 4.1.2 ?
Yes, but you would have had an answer to this question 45 minutes ago if
you had just tried it.
Other than notepad, interdev, ultraedit, etc (which i currently
use
for
editing), does anyone know of a good editor for PHP for Windows,
ideally
with syntax colouring, etc?
You use etc for editing? Sounds pretty cool.
This is a new product Erik, only released at the
Read the error handling chapter in the documentation.
-Rasmus
On Mon, 22 Apr 2002, Jean-Rene Cormier wrote:
Ok I'm trying to create a script that would allow users to bind to an
LDAP server and we all know there's gonna be some people mistyping their
password but when I try to bind and put
Hi,
I'm having a real problem:
In a codeset of more than 5000 lines of code, I have a rogue call to a
function.
Is there a way I can determine in a function from where the call was
made? (Filename, linenumber etc)
Thanks
Nico
--
PHP General Mailing List (http://www.php.net/)
To
Hello,
I'm making an Image and I was wondering what the difference is between these
two Image constructors. I need to find a way to make dotted and dashed
lines (according to different patterns I've been given) and I want the
sections between the dots to be transparent. I'm planning on using
etc (TM) is able to follow up the syntax coloring operation by
making
changes to the code to correct syntax errors, puts brackets in
exactly
the right place to indicate block structure within the code, imposes
data type prefixes in strict convention, chooses better variable
names
than
You could also do something like this:
Configure Apache so that *every* request on a virtual
host would be handled by a single PHP script.
VirtualHost *:80
ServerName myserver.mydomain.org
DocumentRoot /usr/local/www/myserver
Action php-parse /path-to/script.php
Action php-parse
I am not a LDAP expert, however I assume you can place a condition on your
bind command to kill the script or go to your error reporting...
?php
// do something like...
ldap_bind($bindstr) or die(Enter your error message here);
?
- Original Message -
From: Jean-Rene Cormier [EMAIL
I am trying to block javascript from ares of my site that users can change.
I am going to use the following code. Can someone give me a second opinion
on whether it will work?
function stopjavascript($text){
//Stop people from using whatever; tags, in case they can smuggle
javascript in with
Maybe u should just strip all the javascript tags out
Of the user-input (output page) with a script like this:
$text = eregi_replace( *script[^]*([^]*)[^]*,//1,$test);
this should stip all the script-tags out of the text, but
will keep the text between the tags.
(the code was NOT tested :))
1 - 100 of 173 matches
Mail list logo