Re: [PHP] PHP CMS
Joseph Oaks wrote: Guys I'm doing some research trying to find a good PHP based CMS. As there a quite a few, I would really like to get your opinions so I can narrow the search down. If you don't mind non-opensource but php based you could take a look at: http://www.commandprompt.com/products/cms We were using Webedit Pro, but have found it a pain not to be able to use Firefox with it. Thanks for your input. Trell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] temp tables
Cima wrote: hi, im working with php 4 and postgresql 8 and in my php script id like to create a temp table on my database server. how do i do this? how do i verify it was created? Well if the creation fails pg_query will throw an error. However temp tables are only good for the life of the connection (script in this case). You will probably want to consider that. Sincerely, Joshua D. Drake i tried the following: $sql = create temp table s_info(a int, b text) on commit delete rows ; pg_query($dbh,$sql); $dbh is my connection. any help will be highly appreciated. -- Your PostgreSQL solutions provider, Command Prompt, Inc. 24x7 support - 1.800.492.2240, programming, and consulting Home of PostgreSQL Replicator, plPHP, plPerlNG and pgPHPToolkit http://www.commandprompt.com / http://www.postgresql.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Install PHP4 on a Apache2 + PHP5 system
Rens Admiraal wrote: Hi guys, I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my Directory in httpd.include use PHP4 for my webmail directory... Any idears how to install this 2 PHP versions together, and let it work? It is a server I didn't install myself, and for who knows, Plesk 7.0.4 is installed on it, so I'm not completely free to try things... I allready did some things, but till now without results... Use mod_proxy with apache2 to call a separate apache2-php4 installation. OS: Redhat ES3 my PHP5 configure options are: './configure' '--host=i686-redhat-linux-gnu' '--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-dom' '--with-domxml' '--with-xmlrpc' '--with-pcre=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--enable-trans-sid' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--enable-bcmath' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbregex' '--enable-mcal' '--with-mhash=' '--with-mcrypt=/usr/local' '--with-apxs2filter=/usr/sbin/apxs' -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com PostgreSQL Replicator -- production quality replication for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] validate international phone numbers
Merlin wrote: Hi, I am trying to validate international phone numbers before adding into a db. After a bit of research I came up with this regex: return (ereg('^[0-9]{1,3}\.[0-9]{1,6}\.[0-9]{1,8}$', $phone)); However, this tightens the numbers to something like this: 409.711.933838 Thats a problem, since some countries have complete other formats and some peopole place a + in front and a : instead of . or even just the number. Can anybody recommend a good regex to validate this? I am not to good at creating regex :-( Strip out all non-numerical characters before you process. Sincerely, Joshua D. Drake Thanx for any help, Merlin -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com PostgreSQL Replicator -- production quality replication for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: GUI editor for php?
Vail, Warren wrote: I like htmlkit; (it's free) http://www.chami.com/html-kit/ Emacs, Quanta, Kate??? Warren Vail -Original Message- From: Eric Bolikowski [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: GUI editor for php? Andy B [EMAIL PROTECTED] skrev i melding news:[EMAIL PROTECTED] Hi. Is there any GUI editors out there for php? if so does anybody know of a good one that doesnt cost a ton of money?? There's a trial for Zend Studio at www.zend.com Eric -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com PostgreSQL Replicator -- production quality replication for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Users of RDBMS
PHP != MySQL MySQL != RDBMS http://www.postgresql.org http://dev.mysql.com/doc/mysql/en/index.html ---John Holmes... -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using Post like Get
Dennis Gearon wrote: What I'm trying to achieve is to have the same cookie IDENTIFY a user on different (or same) applications (on the same server), but require them to log in for each application, and get a different session.. Basically, to keep separate 'user trails and in process variables' for different tabs or windows in a browser. Why not just keep an acl list of which applications a particular session is logged in for? What I mean is you have your sessions table. You know they are logged in. User foo: logged into app a User foo: Goes to app b App b recognizes the name of the cookie and checks the value against the session table. If true -- User foo: is recognized but requested to log in When User foo logs in, the auth table is updated to reflect that they are not authenticated against a different part of the site. Sincerely, Joshua D. Drake Your Web Host ;) Sincerely, Joshua D. Drake www.scotttrade.com does it somehow, and I see no GET variables on the URL. John W. Holmes wrote: Dennis Gearon wrote: With get varaibles, it's possible to always have get variables on a page, even without a form, by simply appending the Get variables to the end of the URL. Is there anyway to do the same with Post variables? For instance, a javascript that onUnload submit, or something? You can't just include POST variables in a link, if that's what you're going for. Perhaps some clunky javascript submitting a hidden form on an onclick method would get you close, but why even bother? Maybe you should just say what you're actually trying to achieve and why, then we could offer better alternatives. -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looking for good Mail List Manager
Mailman James Marcinek wrote: Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checking if database has been setup
if its setup or not. I can handle the setup in steps (the setup wizard) but how do i check if the database/tables have been setup? It may be helpful to know which database as each database has there own way... (and my apoligies for using setup so many times :-p ) Any advise, urls or bits of code would be appreciated. Thanks, -Ryan -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] excel output question
On Sat, 7 Feb 2004, Jake McHenry wrote: Hi everyone. I'm outputing payroll information to an excel csv file, and when anyone get's paid over 1k, the amount is split into two fields because of the comma in the amount. Is there anyway I can tell excel that this particular comma is not a deliminator? quote it Thanks, Jake -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] credit card acceptance recommendations?
Any ideas/suggestions? I've come across one, charge.com... anybody had any experience with it or another? We have had great luck with http://www.echo-inc.com . They also take electronic check. J thanks, Matt -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com PostgreSQL Replicator -- production quality replication for PostgreSQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Working as a PHP/database developer..
Hello, As a development company who has been profitable for 6 years I suggest the following: 1. There are no fixed fees. All time will be billed. 2. Put everything in writing. If they want you to change the f to F make them put it in writing. 3. If you do have a flat fee for something... make it something you already have code for or have a procedure for. Even then, make sure you have a test case for the procedure. If the test case fails it is time and materials. 4. Require a downpayment of at least 30% of the total ESTIMATE. Our estimates are usually something like: 15,000 - 22,000 7500.00 (we do 50% down) would be required to begin work. When then hit the 15k they have to pay up to the 15k. Sincerely, Joshua D. Drake On Tue, 2 Dec 2003, Justin French wrote: On Tuesday, December 2, 2003, at 12:04 PM, Video Populares et Optimates wrote: Ahoy! I'm sitting here, pondering on a problem that has just occurred to me. Having a short though intensive period of experience with PHP, I'm now in the process of being swallowed up by a group of web designers. That is, I've been offered a job opportunity. Now, how do you charge your services? Do you do it on a time-slot basis (seems kind of awkard to me since much PHP code can be reused a l o t!) or do you do it on the basis of the size of projects and whether new code has to be developed etc etc? What's the matter with re-using the code and charging the same rate for it? You're a business, and you're supposed to make money. I currently charge by the hour, but I'm trying whereever possible to move away from hourly rates into fixed price services. Why? a) The client knows exactly what to expect in terms of price and result b) I don't spend half my days quoting every last detail of a job c) I have the opportunity to re-use code over and over, making a PROFIT, rather than braking even all the time Another question is: Since they are the owners of the web servers (also in control of the web admins.), they effectively control the PHP code that I develop. How do I make sure that I'm not just used once for a project and thereafter thrown on the trashbin, i.e. they take the code and keep using it for many other projects without my knowledge. As far as I'm concerned, a proper pay should be for each project that my PHP code goes into. Or do you not agree? Very thankful for your opinions here! Copyright is the simple answer, but it needs to be a) observed by your clients b) enforced by you when not observed by clients You can always compile your scripts, and supply them with compiled (encoded) products, rather than source scripts. This of course would depend on the copyright agreement you have with your clients. And what is a proper pay? There's no decent answer to that -- there's soo many factors to take into consideration, like the market, the economic environment, your skills, your productivity, your client's budget, etc etc. The only accurate answer is twice as much as half. I would really like to get some tips on how to specify a partnership with these web designers. I know about code obfuscators... but let's get real. They don't come close to hiding code (from these web designers and web admins.) as compiled software is hidden from end users. Compiling with Zend encoder or similar, as stated above. Perhaps someone here remembers my last post - which was about security of PHP code (from viewing and unauthorized usage). Now, I'm kind of put against the wall here. I want to get to it, i.e. get to the work. But after some bad experiences *grunt*, I'm not willing to get literally squished by blood sucking vampires (*clearing my throat*) later on. You obviously aren't confident working with these people, so consider NOT working for them. Justin French -- Co-Founder Command Prompt, Inc. The wheel's spinning but the hamster's dead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Beta 2 of plPHP is out
I was going to send this to the php-db list but for some reason it bounced. Anyway here ya go: Beta 2 of plPHP has been released. This version contains many bug fixes. For example, if you write bad plphp code and try to execute it, the code will no longer crash PostgreSQL . The URL is here: http://www.commandprompt.com/entry.lxp?lxpe=260 There are precompiled binaries for RedHat 9. There are general compilation instructions. Sincerley, Joshua Drake inline: wink_n.gif
[PHP] plPHP released.. yes PostgreSQL functions in PHP
Hello, As a recent flurry of activity has commenced within Command Prompt we have released upon this rather unround earth, plPHP. Yes it is trigger safe, yes you can write UDF's in PostgreSQL with PHP now. Find it here: http://www.commandprompt.com/entry.lxp?lxpe=260 Have a glorius weekend. Sincerely, Joshua D. Drake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php