Hi,
Thank you for that - although I do have to admit that I don't
understand a single bit of the reg-exp part. :)
It is now working flawlessly! Here is the final code I used:
---CODE---
!-- Note - input textarea and submit button already coded here in
XHTML --
?php
$text = '';
if (
I searched google,weberdev and php.net sites. i implemented the 2 encrypt and
decrypt functions mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb()
functions.but it not working properly.i dont need more complicated encrypt and
decrypt functionality.just i want to encrypt my user id when i pass
suresh kumar wrote:
I searched google,weberdev and php.net sites. i implemented the 2 encrypt and
decrypt functions mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb()
functions.but it not working properly.i dont need more complicated encrypt and
decrypt functionality.just i want to encrypt
My suggestion is that you use the ftp functions of php. With this you can
put your files into anywhere do you want.
Robert Sandie wrote:
Want to load balance a server and send image uploads to a different box
with PHP installed. What would the correct method to authenticate on the
second
An example that don't work is delimiter |.
Chris wrote:
João Cândido de Souza Neto wrote:
I receive aa answer by e-mail in order this telling me that i must
upgrade my php4 to php5.
It means that a php4 server don't works fine with mysql5 server?
João Cândido de Souza Neto wrote:
Hi,
I want to use the open_basedir PHP configuration directive in order to
restrict the file access to serveral directories for one of my domains.
I'm using:
php_admin_value open_basedir /dir1/path/;/dir2/path/
in the domain virtual host configuration for my Apache web server, but it
doesn't
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47
47 - $info = ldap_get_entries($ds, $sr);
$sr=ldap_search($ds, dc=foo,dc=local, cn=*);
$ds is the connection to the LDAP server
Does anyone know what this
[snip]
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47
47 - $info = ldap_get_entries($ds, $sr);
$sr=ldap_search($ds, dc=foo,dc=local, cn=*);
$ds is the connection to the LDAP server
Does anyone know what
[EMAIL PROTECTED] wrote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
(8388608 / 1024) / 1024 = 8.
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47
47 - $info = ldap_get_entries($ds, $sr);
$sr=ldap_search($ds, dc=foo,dc=local, cn=*);
$ds is the
Hi,
I'm glad it worked (so far, hehe) Also, there's something I forgot to
tell you (though I think you may as well be already doing this): there
will be some unknown tags for the to_bbcode() function (even maybe some
variations of those that it should recognize but it won't), so you
Anthony Ettinger wrote:
On 3/6/06, Anthony Ettinger [EMAIL PROTECTED] wrote:
On 3/6/06, Julius Hacker [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
I assume your loop is something like:
while(condition) {
$auction_parts['id'] = 'some value';
$auction_parts['name']
Hi,
I am facing a strange problem. One of my classes uses a include(Log.php)
to enable to to use the Log class that comes with pear.
*Fatal error*: require_once()
[function.requirehttp://www.manaushoteis.tur.br/function.require]:
Failed opening required 'Log.php'
I cannot see it
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
get a parse error!
$region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council',
2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute
Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway',
10 = 'Dundee City Council', 11 = 'East Ayrshire Council',
Ross wrote:
I cannot see it
If it helps... neither can we!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 07 March 2006 08:08, Ross wrote:
$region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council',
2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute
Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and
Gallowalloway', 10 = 'Dundee City Council', 11 =
Stut wrote:
Ross wrote:
I cannot see it
If it helps... neither can we!
-Stut
And again:
PHP is best coded with open eyes: (O_O)
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Nice spot ray!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ross wrote:
get a parse error!
$region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council',
2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute
Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway',
10 = 'Dundee City Council', 11 = 'East
I think that the error is in the line above that.
Ross wrote:
get a parse error!
$region_array = array('a' ='All of Scotland', 1 ='Aberdeen City
Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and
Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and
You're Right. I don't saw that.
Stut wrote:
Ross wrote:
get a parse error!
$region_array = array('a' ='All of Scotland', 1 ='Aberdeen City
Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and
Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and
Gallowalloway',
Hello *,
After trying out more then 30 Online-Shops (mostly written in PHP) I
have not found a suitable one for me because of laking in functionality
or grave security problems (I have cracked some of them myself being
not a cracker).
OK, I was looking for an open source one and for free.
Hello *,
since PHP-CGI's can be set suid, how can this done IF I can
not use CGI because all off my webpages are PHP pages?
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant
Andreas Korthaus wrote:
Rob Richards wrote:
You can also look at using xmlwriter, when creating serialized trees,
that automatically does escaping for you.
Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know
about any documentation for it?
I will try to add some time
I'm looking for a couple of good books or online sources where I can get
a lot better grasp of Classes and OOP programming in general. Mostly I
use PHP so that is the best option.
Thanks,
Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Someone wishes to develop a site using PHP/SQL .
Here are the specs:
The site the client is looking for is not a gaming site.
It is a site where players register to keep track of their winnings on GAMING
sites. It will have a freeroll side(where players get points not money) and a
Money
PHP5 Objects, Patterns and Practice
1590593804 - Matt Zandstra - Apress
This is a good way to get a good grasp of object-oriented programming
covers the basics of uml as well as using decent examples to explain
the use of objective programming (unlike all the web sites out there
that i tried to
On 3/7/06, Wolf [EMAIL PROTECTED] wrote:
I'm looking for a couple of good books or online sources where I can get
a lot better grasp of Classes and OOP programming in general. Mostly I
use PHP so that is the best option.
Thanks,
Robert
PHP5 - Objects, Patterns, and Best Practices
Hi guys
How do i get a unique max number from a mysql table column?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
How do i get a unique max number from a mysql table column?
[/snip]
SELECT MAX(number) FROM table LIMIT 1;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 12:26 PM 3/7/2006, The Doctor wrote:
Someone wishes to develop a site using PHP/SQL .
Here are the specs:
The site the client is looking for is not a gaming site.
It is a site where players register to keep track of their winnings on
GAMING sites. It will have a freeroll side(where
[snip]
How do i get a unique max number from a mysql table column?
[/snip]
SELECT MAX(number) FROM table LIMIT 1;
That might not be unique though... I'm wondering if the original poster is
looking for AUTO_INCREMENT (ie. sequences) to ensure a unique id to use
for insertion...?
--
PHP
Philip Hallstrom wrote:
[snip]
How do i get a unique max number from a mysql table column?
[/snip]
SELECT MAX(number) FROM table LIMIT 1;
That might not be unique though... I'm wondering if the original poster
is looking for AUTO_INCREMENT (ie. sequences) to ensure a unique id to
use for
We are developing an intranet for my company. I would like to implement a
single sign on service. We have Active Directory on one server and the intranet
is being housed on a Redhat Linux server. When the internal user pulls up the
intranet, I would like it to check to see if they successfully
When you say that it is not working properly, what exactly is the
problem? Are you getting any error messages? What version of PHP are you
using? What platform is PHP installed on?
The reason I ask those questions is that
http://us2.php.net/manual/en/ref.mcrypt.php states that the mcrypt
Maybe this will help: http://us2.php.net/manual/en/ref.ldap.php
Shaunak Kashyap
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
Direct: 323.330.9870
Main: 323.330.9900
www.worldpokertour.com
Confidentiality Notice: This e-mail transmission
Hi there!
Why...
I have this code:
bAdd manufacturer:/bbr
form name=frmMan
action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php echo
$frmIDManufacturer;?frmModel=?php echo $frmIDModel;? method=post
input type=text size=30 name=frmManufacturerName
input type=submit value=ok
I've been there. I can connect and search my active directory, that's no
problem. I'm more curious on how to check to see if they have already
authenticated to the domain. _
From: Shaunak Kashyap [mailto:[EMAIL PROTECTED]
To: Justin Cook [mailto:[EMAIL PROTECTED],
On Tuesday 07 March 2006 11:45 am, Gustav Wiberg wrote:
form name=frmMan
action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php
echo $frmIDManufacturer;?frmModel=?php echo $frmIDModel;?
method=post input type=text size=30 name=frmManufacturerName
input type=submit value=ok
It is more of an HTML/HTTP question than PHP but here's my shot at a
possible explanation:
The file containing the form code seems to live in the
/mobilkamera/admin/ directory. Therefore action=admin/phpfunctions...
implies that the form is to be submitted to that path starting from the
current
- Original Message -
From: Shaunak Kashyap [EMAIL PROTECTED]
To: Gustav Wiberg [EMAIL PROTECTED]; PHP General
php-general@lists.php.net
Sent: Tuesday, March 07, 2006 8:05 PM
Subject: RE: [PHP] What am I missing?
It is more of an HTML/HTTP question than PHP but here's my shot at a
I just tried this with PHP 5.1.1 and OpenSSL 0.9.7i and got the exact same
errors.
-Original Message-
I copied and pasted the example found here:
http://www.php.net/openssl_csr_new
And this one too:
http://www.php.net/manual/en/function.openssl-pkey-new.php
And I get the output
Gustav Wiberg wrote:
I have this code:
bAdd manufacturer:/bbr
Bold then a line break? Shouldn't this be a heading?
action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php
The requested URL
/mobilkamera/admin/admin/phpfunctions/addnewmanufacturer.php was not found
on this
[snip]
We are developing an intranet for my company. I would like to implement
a single sign on service. We have Active Directory on one server and the
intranet is being housed on a Redhat Linux server. When the internal
user pulls up the intranet, I would like it to check to see if they
how can I to iterate the class constant without knowing their names?, I've
reviewed the Class/Object Functions and Reflexion and nothing, I dont want
to use static class variables, can any one help.
PHP experts everywhere!!
I am building PHP 5.1.2 on windows without pcre-regex extension. I am
building building pcre independently and then I am building the extension
php_pcre.dll.
I build few other extensions too. I keep the extensions in c:\php\extensions
which is set in php.ini.
I am
[snip]
As far as I can tell you will have to ask the user to login at the web
application level again, but you can verify it against your AD via LDAP
with the basic stuff from http://www.php.net/ldap
[/snip]
We are sitting here having a discussion on login techniques and I cam up
with a
robert mena wrote:
Hi,
I am facing a strange problem. One of my classes uses a include(Log.php)
to enable to to use the Log class that comes with pear.
*Fatal error*: require_once()
[function.requirehttp://www.manaushoteis.tur.br/function.require]:
Failed opening required 'Log.php'
Arnaldo Gandol wrote:
how can I to iterate the class constant without knowing their names?, I've
reviewed the Class/Object Functions and Reflexion and nothing, I dont want
to use static class variables, can any one help.
Constants aren't per class, they are per system. Whether you define them
On Mon, Mar 06, 2006 at 10:03:10PM +0100, Julius Hacker wrote:
Curt Zirzow wrote:
I assume your loop is something like:
while(condition) {
$auction_parts['id'] = 'some value';
$auction_parts['name'] = 'some value';
...
$insert-execute();
}
Yes, thats it.
Constants aren't per class, they are per system. Whether you define
them
in a class or not won't change this.
You can list all constants using
http://www.php.net/manual/en/function.get-defined-constants.php
Actually, PHP5 allows constants per class, aka class constants. I think
that's
Shaunak Kashyap wrote:
Constants aren't per class, they are per system. Whether you define
them
in a class or not won't change this.
You can list all constants using
http://www.php.net/manual/en/function.get-defined-constants.php
Actually, PHP5 allows constants per class, aka class
Hi,
ReflectionClass
getConstant
getConstants
hasConstant
http://www.ren.dotgeek.org/classbrowser/class.php?class=ReflectionClass
Jared
-Original Message-
From: Arnaldo Gandol [mailto:[EMAIL PROTECTED]
Sent: 07 March 2006 21:03
To: php-general@lists.php.net
Subject: [PHP] class
I'm trying to set up an ID field that works like this for news
articles that are posted to a website.
2006-03-05a
2006-03-05b
I know how to generate the date, and I am pretty sure I can generate
the letter code based on counting the number of rows and then
assigning the next letter (we
I've try this with no successful results. the constant rr and gg were not in
the array $ee.
?php
class something
{
const rr = lala;
const gg = ggerer;
}
$ee = get_defined_constants();
foreach ($ee as $key = $value)
echo $key. = .$value./br;
?
On 3/7/06, Jared Williams [EMAIL
Kevin Murphy wrote:
I'm trying to set up an ID field that works like this for news articles
that are posted to a website.
2006-03-05a
2006-03-05b
I know how to generate the date, and I am pretty sure I can generate the
letter code based on counting the number of rows and then assigning the
Kevin Murphy wrote:
I'm trying to set up an ID field that works like this for news articles
that are posted to a website.
2006-03-05a
2006-03-05b
I know how to generate the date, and I am pretty sure I can generate
the letter code based on counting the number of rows and then assigning
Well, part of the issue is that I want to be able to use this as part
of the link:
/news.php?article=2006-03-05a
/news.php?article=2006-03-05b
which i will eventually do a htacess rewrite to make it look like
/news/2006-03-05a.php
/news/2006-03-05a.php
I don't think I can do that with just
?php
class something
{
const rr = lala;
const gg = ggerer;
}
$hh = new ReflectionClass('something');
print_r($hh-getConstants());
?
Thank you, I've try this above and works, I hadn't seen the message below.
Excuse my english.
On 3/7/06, Jared Williams [EMAIL PROTECTED] wrote:
Kevin Murphy wrote:
Well, part of the issue is that I want to be able to use this as part
of the link:
/news.php?article=2006-03-05a
/news.php?article=2006-03-05b
which i will eventually do a htacess rewrite to make it look like
/news/2006-03-05a.php
/news/2006-03-05a.php
I don't think I
A possible solution:
Make a composite primary key where the first field is the date and the
second field would be of type enumeration (A..Z, in ascending order).
Then use MAX(second field) WHERE first field = today's date to
figure out the next primary key.
Shaunak Kashyap
Senior Web Developer
Kevin,
You can do it with a Unix timestamp, but that would just confuse the issue.
Have you considered using two fields instead of one? An article ID and
and article sub-ID would be retrieved as article ID = date, and all
sub-ID's descending. The first record in the list would contain the
Should have read the whole thread first, I guess... :)
Gerry
http://groups.yahoo.com/group/php_and_mysql/
On 3/7/06, Shaunak Kashyap [EMAIL PROTECTED] wrote:
A possible solution:
Make a composite primary key where the first field is the date and the
second field would be of type enumeration
At 08:46 PM 3/7/2006, Kevin Murphy wrote:
I'm trying to set up an ID field that works like this for news
articles that are posted to a website.
2006-03-05a
2006-03-05b
I know how to generate the date, and I am pretty sure I can generate
the letter code based on counting the number of rows and
At 09:05 PM 3/7/2006, Kevin Murphy wrote:
Well, part of the issue is that I want to be able to use this as part
of the link:
/news.php?article=2006-03-05a
/news.php?article=2006-03-05b
which i will eventually do a htacess rewrite to make it look like
/news/2006-03-05a.php
Hi
Is there an application that can pass source code and report potential
security problem and or the live site ?
Many thanks
--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and
66 matches
Mail list logo