Re: [PHP] PHP Development Team
On Friday 18 July 2008 07:34:22 Nathan Nobbe wrote: > On Thu, Jul 17, 2008 at 10:11 PM, AvPHP <[EMAIL PROTECTED]> wrote: > > We represent an established team of 15 PHP developers, with extensive > > experience in OOP Lamp development, including multiyear projects with > > thousand of total programming hours. They have also worked on numerous > > customized Content Management Systems (CMS) for various websites, > > including E-Commerce sites, websites for startup companies and sites for > > large firms. The team is in South America, so the rates are substantially > > below typical US standards while the developers are vertically below US > > time zones, making > > communication much easier than with India. They can work with both Agile > > and > > Waterfall development methodologies. The team is fluent in Spanish and > > has excellent written English with good spoken English. > > > > If desired, DreamStaffing can also supplement this team with a fluent > > bi-lingual project manager, HTML/CSS developers, user interface > > designers, or any other skill sets that are needed for a project. > > > > Please contact us at [EMAIL PROTECTED] for more information. > > nice pitch ;) > > -nathan I liked the dreamstaffing stuff. It kinda sounds... yeah whatever really ;D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
On Friday 18 July 2008 08:37:14 Per Jessen wrote: > Kevin Waterson wrote: > > This one time, at band camp, "Alex Chamberlain" > > > > <[EMAIL PROTECTED]> wrote: > >> Has anybody had any success implementing an OpenID server in PHP?? > > > > Sure, I had mine all set up on oceania.net and then the domain got > > stolen. So, all my OpenID info went with it.. not as good an idea as > > it first seems. > > I'm curious, how does a domain "get stolen" ? he forgot to pay the bills ;) > > > /Per Jessen, Zürich -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] OpenID
> This one time, at band camp, "Alex Chamberlain" > <[EMAIL PROTECTED]> wrote: > > > > Has anybody had any success implementing an OpenID server in PHP?? > > Sure, I had mine all set up on oceania.net and then the domain got > stolen. So, all my OpenID info went with it.. not as good an idea as > it first seems. > > > Kevin Other than the mystery of the stolen domain, what software did you run?? Did you write it yourself?? Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.0/1557 - Release Date: 17/07/2008 05:36 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??
On Thu, 2008-07-17 at 10:41 -0400, Daniel Brown wrote: > 9.) NEVER store passwords in a PHP script. Instead, store them in > a file named `inc/config.inc` in the web directory, and include them. Dude! You forgot the most important bit: inc/config.inc: $dbusername="root"; $dbpassword="r00t"; //By combining letters and numbers, this password becomes unhackable It's important to also set your server root password the same as your DB password so that when you hand passwords out to your outsourced developers, secretaries, tea ladies and janitors they can have full access to the system and don't waste your time setting up permissions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
Per Jessen wrote: Kevin Waterson wrote: This one time, at band camp, "Alex Chamberlain" <[EMAIL PROTECTED]> wrote: Has anybody had any success implementing an OpenID server in PHP?? Sure, I had mine all set up on oceania.net and then the domain got stolen. So, all my OpenID info went with it.. not as good an idea as it first seems. I'm curious, how does a domain "get stolen" ? /Per Jessen, Zürich Is it per accident that he mentioned 'oceania.net' while it's about an identification topic? The only thing I can relate Oceania to, is not such a funny story about knowing everything about people. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/
Re: [PHP] PHP Development Team
On Fri, 2008-07-18 at 09:15 +0200, Børge Holen wrote: > On Friday 18 July 2008 07:34:22 Nathan Nobbe wrote: > > On Thu, Jul 17, 2008 at 10:11 PM, AvPHP <[EMAIL PROTECTED]> wrote: > > > We represent an established team of 15 PHP developers, with extensive > > > experience in OOP Lamp development, including multiyear projects with > > > thousand of total programming hours. They have also worked on numerous > > > customized Content Management Systems (CMS) for various websites, > > > including E-Commerce sites, websites for startup companies and sites for > > > large firms. The team is in South America, so the rates are substantially > > > below typical US standards while the developers are vertically below US > > > time zones, making > > > communication much easier than with India. They can work with both Agile > > > and > > > Waterfall development methodologies. The team is fluent in Spanish and > > > has excellent written English with good spoken English. > > > > > > If desired, DreamStaffing can also supplement this team with a fluent > > > bi-lingual project manager, HTML/CSS developers, user interface > > > designers, or any other skill sets that are needed for a project. > > > > > > Please contact us at [EMAIL PROTECTED] for more information. > > > > nice pitch ;) > > > > -nathan > > I liked the dreamstaffing stuff. It kinda sounds... yeah whatever really ;D Dreamy... oh my! Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
Clamshell -- http://wiki.guruj.net/Clamshell!Home HTH On Fri, Jul 18, 2008 at 1:36 AM, Alex Chamberlain <[EMAIL PROTECTED]> wrote: > Hi, > > > > Has anybody had any success implementing an OpenID server in PHP?? > > > > Alex > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Bipin Upadhyay I'd love to change the world, but they won't gimme the source code. http://projectbee.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
This one time, at band camp, Per Jessen <[EMAIL PROTECTED]> wrote: > I'm curious, how does a domain "get stolen" ? This is a process I am now looking in to. The domain was registered via a reseller who I also had an email address with. The reseller had access to to both my domain registration details, and my email address. With both of these they were able to simply enact a transfer and intercept the mail agreeing to the deal. I now have documentary proof of this from the gandi and have contacted the Australian Police regarding the matter. I am also trying to get the domain back via icann and mediation, which has so far cost me over $1k. Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP documentation parsing?
As you maybe know, the program "kdevelop" under Linux has a built in documentation browser which uses the online php documentation which was on the homepage of the Minnesota university. Since this homepage isn't available any more the documentation is broken. I tried to link to the new page, but the doc-browser uses an internal xml file which describes the base URL and the nodes of the manual (if you have a linux installation with kdevelop, look at the /usr/share/apps/kdevdocumentation/tocs/php.toc file). I just wanted to update the doc link, but the new page isn't in sync with the old with it's structure exactly. Could you provide me a list of the nodes of the php doc, or do I have to parse the html file (http://www.php.net/manual/en/index.php -> browser html output) to convert it to a .toc file? Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem with DOMDocument
hi I have trouble while creating an DOMDocument. When I make $test = new DomDocument('1.0'); php tells me a warning error like: Entity: line 1: parser error : Start tag expected, '<' not found ... Because of unknow reasons the DomDocument constructor expected a tag like ''. Ive looked in the manual and see DomDocument::__construct([ string $version [, string $encoding ]] ); btw when I type $test = new DomDocument(''); then comes no warning error. Why can I not create a dom document like $test = new DomDocument('1.0'); without any warning error? I can suppress the warning with @. When I make var_dump on $test it comes object(domdocument)#1 (0) { } that means the object is created. I use XAMPP with PHP 5.2.6 on an windows vista machine thanks for any help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP documentation parsing?
Christian A. Reiter wrote: As you maybe know, the program "kdevelop" under Linux has a built in documentation browser which uses the online php documentation which was on the homepage of the Minnesota university. Since this homepage isn't available any more the documentation is broken. I tried to link to the new page, but the doc-browser uses an internal xml file which describes the base URL and the nodes of the manual (if you have a linux installation with kdevelop, look at the /usr/share/apps/kdevdocumentation/tocs/php.toc file). I just wanted to update the doc link, but the new page isn't in sync with the old with it's structure exactly. Could you provide me a list of the nodes of the php doc, or do I have to parse the html file (http://www.php.net/manual/en/index.php -> browser html output) to convert it to a .toc file? Thank you, Chris This is more of a question for the PHP Documentation Mailinglist than for php-general, so I'm cc'ing it there. Could you perhaps put up such a toc file somewhere online, so we could take a look at what it actually looks like, for those of us not having access to a kdevelop installation. Also, the php documentation on that homepage, was it just the XML-source ? or the rendered html output? I'm having a bit of a hard time figuring that out from your mail. - Tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
On Fri, Jul 18, 2008 at 2:37 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Kevin Waterson wrote: > >> This one time, at band camp, "Alex Chamberlain" >> <[EMAIL PROTECTED]> wrote: >> >>> Has anybody had any success implementing an OpenID server in PHP?? >> >> Sure, I had mine all set up on oceania.net and then the domain got >> stolen. So, all my OpenID info went with it.. not as good an idea as >> it first seems. > > I'm curious, how does a domain "get stolen" ? > > > /Per Jessen, Zürich I saw a story where a guy had a XSS vuln on his site that allowed a malicious user to inject a backdoor forwarding filter on his gmail account. Then the malicious user used the guys gmail account to transfer his domain.
[PHP] Optimization of PHP Code
Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh
Re: [PHP] Optimization of PHP Code
Manoj Singh wrote: I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Hard to be specific without a more detailed understanding of what you are going to do. But in general, use the newer PDO class instead of the older mySQL functions. PDO is better at handling demanding SQL activity. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Fri, Jul 18, 2008 at 8:53 AM, Manoj Singh <[EMAIL PROTECTED]> wrote: > Hello All, > > I am developing the web site in PHP using MYSQL database. > > Can you please provide me some tips to write the optimized code. > > Best Regards, > Manoj Kumar Singh > A opcode cacher helped me a lot on my site. I got the forums loading in more than half the time previously. Quick Description: Every time a php script is called, the CPU compiles that script into executable code, then runs it. An opcode cacher caches that executable code, so the CPU doesn't need to compile it again over and over. Personally, I'm using XCache. http://xcache.lighttpd.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
On Fri, Jul 18, 2008 at 4:09 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 09:15 +0200, Børge Holen wrote: > > On Friday 18 July 2008 07:34:22 Nathan Nobbe wrote: > > > On Thu, Jul 17, 2008 at 10:11 PM, AvPHP <[EMAIL PROTECTED]> > wrote: > > > > We represent an established team of 15 PHP developers, with extensive > > > > experience in OOP Lamp development, including multiyear projects with > > > > thousand of total programming hours. They have also worked on > numerous > > > > customized Content Management Systems (CMS) for various websites, > > > > including E-Commerce sites, websites for startup companies and sites > for > > > > large firms. The team is in South America, so the rates are > substantially > > > > below typical US standards while the developers are vertically below > US > > > > time zones, making > > > > communication much easier than with India. They can work with both > Agile > > > > and > > > > Waterfall development methodologies. The team is fluent in Spanish > and > > > > has excellent written English with good spoken English. > > > > > > > > If desired, DreamStaffing can also supplement this team with a fluent > > > > bi-lingual project manager, HTML/CSS developers, user interface > > > > designers, or any other skill sets that are needed for a project. > > > > > > > > Please contact us at [EMAIL PROTECTED] for more > information. > > > > > > nice pitch ;) > > > > > > -nathan > > > > I liked the dreamstaffing stuff. It kinda sounds... yeah whatever really > ;D > > Dreamy... oh my! > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Sounds like somebody's wet dream to me -- Bastien Cat, the other other white meat
[PHP] Re: PHP documentation parsing?
Am Freitag, 18. Juli 2008 13:03:43 schrieb M. Sokolewicz: > This is more of a question for the PHP Documentation Mailinglist than > for php-general, so I'm cc'ing it there. > > Could you perhaps put up such a toc file somewhere online, so we could > take a look at what it actually looks like, for those of us not having > access to a kdevelop installation. > > Also, the php documentation on that homepage, was it just the XML-source > ? or the rendered html output? I'm having a bit of a hard time figuring > that out from your mail. > > - Tul Hi, Sorry for "spamming", but i got a error reply from sending this to [EMAIL PROTECTED] here is the content of the php.toc file: http://paste.ubuntu.com/28269/ I don't know exactly how the old documentation looked like (because I never saw it online) - but what I can read out of the .toc file the structure was quite the same as the one on your php.net page. The toc file describes just URLs; - one base URL (in your case "www.php.net/manual/en") - all other xml nodes are titles and relative paths. I replaced the line http://epoxy.mrs.umn.edu/doc/python2.2-doc/html"/> with http://www.php.net/manual/en"/> -> most of the documentation works - but not all of it, and some chapter numbers are wrong too. So I ask you if there exists a possibility to get this documentation in a format that suites better than parsing the html file op php.net ;-) Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with DOMDocument
On Fri, Jul 18, 2008 at 6:51 AM, Christoph Kappestein <[EMAIL PROTECTED]> wrote: > hi > > I have trouble while creating an DOMDocument. When I make $test = new > DomDocument('1.0'); > php tells me a warning error like: > > Entity: line 1: parser error : Start tag expected, '<' not found ... > > Because of unknow reasons the DomDocument constructor expected a tag like > ''. > > Ive looked in the manual and see DomDocument::__construct([ string $version > [, string $encoding ]] ); > > btw when I type $test = new DomDocument(''); then comes no warning > error. > > Why can I not create a dom document like $test = new DomDocument('1.0'); > without any warning error? > > I can suppress the warning with @. When I make var_dump on $test it comes > > object(domdocument)#1 (0) { > } > > that means the object is created. > > I use XAMPP with PHP 5.2.6 on an windows vista machine > > thanks for any help > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I've not used XAMPP, but someone added a comment on the doc page (http://www.php.net/manual/en/domdocument.construct.php) that might shed some light on the subject. Is it possible you've got the wrong library installed? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Returning SOAP array type
Hi, I have a web service with an array type I am trying to return. I can't seem to find the right answers anywhere... First, the WSDL piece: I am trying to returning a list of quotes. Basically I pull a query from the database, select * from quotes, and then return the set. 2 Questions: 1. Do I need to have that as getQuoteHistory[] in the wsdl? 2. What do I put in my php code to return the set of results? I've tried a couple things: while ( $blah = fetchrow ) { $array[] = $blah; } return $array that doesn't work. I tried some other variations. What am I missing? -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."
Re: [PHP] Optimization of PHP Code
On Friday 18 July 2008 15:53:06 Manoj Singh wrote: > Hello All, > > I am developing the web site in PHP using MYSQL database. > > Can you please provide me some tips to write the optimized code. > > Best Regards, > Manoj Kumar Singh Premature optimization as root of all evil. Use less sql connection as possible. If you had opcode cache, put everthing in php code then include it. Do not use, template system, use inline php code for templates. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
See, now this one-off kind of thing is no problem. I wish some of those other folks who pop in only to "contribute" links to their websites would learn from this. It was a well-written pitch to the General list, where it's more appropriate than other places. Granted, it burns me that they're located in the same time zones and can do the work cheaper than myself and my fellow Americans, but good for them. ;-P -- Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
Sancar Saran wrote: On Friday 18 July 2008 15:53:06 Manoj Singh wrote: Hello All, I am developing the web site in PHP using MYSQL database. Can you please provide me some tips to write the optimized code. Best Regards, Manoj Kumar Singh Premature optimization as root of all evil. The Fallacy of Premature Optimization: http://www.acm.org/ubiquity/views/v7i24_fallacy.html So, let's define premature please -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/
Re: [PHP] Optimization of PHP Code
On Fri, Jul 18, 2008 at 9:52 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Sancar Saran wrote: >> >> On Friday 18 July 2008 15:53:06 Manoj Singh wrote: >> >>> >>> Hello All, >>> >>> I am developing the web site in PHP using MYSQL database. >>> >>> Can you please provide me some tips to write the optimized code. >>> >>> Best Regards, >>> Manoj Kumar Singh >>> >> >> Premature optimization as root of all evil. >> > > The Fallacy of Premature Optimization: > > http://www.acm.org/ubiquity/views/v7i24_fallacy.html > > So, let's define premature please > > -- > > Aschwin Wesselius > > /'What you would like to be done to you, do that to the other'/ > Before your project is completed and making money. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trailing Spaces Problem
Hi, I have a code here as the following: When I execute it, I get this error and output: PHP Notice: Undefined offset: 2 in /root/Desktop/test.php on line 8 PHP Notice: Undefined offset: 3 in /root/Desktop/test.php on line 8 PHP Notice: Undefined offset: 4 in /root/Desktop/test.php on line 8 1: 1 2: 0 70.208 61.613 1.424 3.689 61.404 0.000 0.000 0.000 0.000 Is there some way that I can have it so that it can print out: 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424 I tried using \s for trailing spaces, but It all gave me output of everything in the single line. Have I missed something here? Thanks in advance. Alice == Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trailing Spaces Problem
On Fri, Jul 18, 2008 at 11:41 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > Hi, > > Is there some way that I can have it so that it can print out: > > 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424 > > I tried using \s for trailing spaces, but It all gave me output of > everything in the single line. > Have I missed something here? > You're just removing every space there is, letting none for values separation. Just replace every "\s\s" with "\s" until there's no more "\s\s". Probably some regex would be better, but that's not my area :) Regards, Thiago > > Thanks in advance. > > Alice > == > Alice Wei > MIS 2009 > School of Library and Information Science > Indiana University Bloomington > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Thiago Henrique Pojda
Re: [PHP] PHP Development Team
At 9:48 AM -0400 7/18/08, Daniel Brown wrote: See, now this one-off kind of thing is no problem. I wish some of those other folks who pop in only to "contribute" links to their websites would learn from this. It was a well-written pitch to the General list, where it's more appropriate than other places. Granted, it burns me that they're located in the same time zones and can do the work cheaper than myself and my fellow Americans, but good for them. ;-P -- I wish them well -- but their choice of where to advertise provides reason to question their other choices. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
Alex Chamberlain wrote: Hi, Has anybody had any success implementing an OpenID server in PHP?? Alex Third result on a search in Google using openid server php returned this page. http://wiki.openid.net/Run_your_own_identity_server -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trailing Spaces Problem
Thiago H. Pojda wrote: On Fri, Jul 18, 2008 at 11:41 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: Hi, Is there some way that I can have it so that it can print out: 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424 I tried using \s for trailing spaces, but It all gave me output of everything in the single line. Have I missed something here? You're just removing every space there is, letting none for values separation. Just replace every "\s\s" with "\s" until there's no more "\s\s". Probably some regex would be better, but that's not my area :) Regards, Thiago Thanks in advance. Alice You probably need to use a regexp, so you can accomodate the different types of white space: $string="1 0 70.208 61.613 1.424 3.689 61.404 0.000 0.000 0.000 0.000 0.000"; $data = preg_split('/\s+/',$string); echo "1: ". $data[0] . " 2: " . $data[1] . " 3: " . $data[2] . " 4: " . $data[3] . " 5: " . $data[4] ?> Does that work for you? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Anyone use Zend framework
Does anyone use the Zend Framework? Is it fast? -- Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Anyone use Zend framework
On Fri, Jul 18, 2008 at 11:10 AM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Does anyone use the Zend Framework? Is it fast? I do for some things such as the mail & lucene search. In the future I plan on moving more of my custom code to use the ZF where possible. It isn't the fastest, but it offers versatility and consistency. The less code I write means the less code I maintain. :D Opcode caching will help a lot though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Trailing Spaces Problem
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Peter Ford [EMAIL PROTECTED] Sent: Friday, July 18, 2008 11:02 AM To: php-general@lists.php.net Subject: Re: [PHP] Trailing Spaces Problem Thiago H. Pojda wrote: > On Fri, Jul 18, 2008 at 11:41 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > >> Hi, > > > >> Is there some way that I can have it so that it can print out: >> >> 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424 >> >> I tried using \s for trailing spaces, but It all gave me output of >> everything in the single line. >> Have I missed something here? >> > > You're just removing every space there is, letting none for values > separation. > > Just replace every "\s\s" with "\s" until there's no more "\s\s". > > Probably some regex would be better, but that's not my area :) > > Regards, > Thiago > > >> Thanks in advance. >> >> Alice You probably need to use a regexp, so you can accomodate the different types of white space: Does that work for you? Thanks, this worked perfectly! -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: > > Do not use, template system, use inline php code for templates. Oh dear... you must subscribe to FUD 101. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] very very small CMS
Hello I am looking for a simple php CMS. Can anyone help? -- OOzy Ubuntu-Hardy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: very very small CMS
OOzy Pal wrote: Hello I am looking for a simple php CMS. Can anyone help? What should it do? -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Having trouble logging into a PHP Database program
Here is my authentication function: $loginQuery = "SELECT * FROM current WHERE loginName='".$user."' AND loginPassword='".$password."' LIMIT 0,1;"; $loginResult = mysqli_query($link1, $loginQuery) or die("Wrong data supplied or database error" .mysqli_error($link1)); $row1 = mysqli_fetch_assoc($loginResult); if($row1['adminLevel'] == "500"){ foreach (array_keys($_SESSION) as $key) unset($_SESSION[$key]); die('account disabled'); } if($_SESSION['userInfo']['loggedin'] ==TRUE) { return TRUE; }else{ if(is_array($row1)){ $_SESSION['userInfo'] = array( "userName" => $row1['loginName'], "loggedin" => TRUE, "table" => $row1['tableName'], "adminLevel" => $row1['adminLevel'], "authUser" => $row1['loginName'], "authCompany" => $row1['customerBusiness'], "authCustName" => $row1['customerName']); } else { //$_SESSION['userInfo'] =array("loggedin" => FALSE); die('authentication failed'); } } return TRUE; } ?> And what is happening is sometimes, even though the username & password match what is stored in the database, It only sets the loggedin value... Nothing else. Can anyone see where my error is? Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com [EMAIL PROTECTED]
Re: [PHP] Optimization of PHP Code
On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: >> >> Do not use, template system, use inline php code for templates. > > Oh dear... you must subscribe to FUD 101. ??? I use straight php files for my templates. My templates are very strict in what they allow, but that is just a coding guideline, not an enforced thing. Basically they're read only & don't contain any real logic. I allow function calls, but only for things that are reads. Writes need to happen inside the controller. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] very very small CMS
At 7:00 PM +0300 7/18/08, OOzy Pal wrote: Hello I am looking for a simple php CMS. Can anyone help? -- OOzy Ubuntu-Hardy A Content Management System manges content. If you can define what content you want to manage, then we can suggest a way to do that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SESSIONS QUESTION
Hi group, I'm still having trouble with sessions on a page and need help. I've been working with all sorts of configurations on this one but it doesn't seem to be working properly. Here's the scenario: I have a login.html page that thas two fields for user input i.e. a password (that is given to them) and an email address. Once they input the right password, it opens up a main.php page, that contains a few links to items. They click on a link, check out the item, hit the back button to return to the main.php page ... and now they have to log back in with a password which is not what I want. I need this main.php page to be available during a browser session so the user can click on the other items on that page, view them, hit the back button, view more and then maybe exit the browser.. I do not want them to have to log in with password everytime they hit the back button to go back to the main.php page to select another item. What's the sequence here. I was able to get the password going, protect the main.php page, sent the email etc. but can't get that password to remain on the main.php when they user tries to get back to that page. Really appreciate some input and coding. I am totally stumped! Thanks much REF -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Fri, 2008-07-18 at 12:35 -0400, Eric Butera wrote: > On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: > >> > >> Do not use, template system, use inline php code for templates. > > > > Oh dear... you must subscribe to FUD 101. > > ??? > > I use straight php files for my templates. My templates are very > strict in what they allow, but that is just a coding guideline, not an > enforced thing. Basically they're read only & don't contain any real > logic. I allow function calls, but only for things that are reads. > Writes need to happen inside the controller. I was responding to Sancar... there's a belief by some that template engines are bad. Probably because they've used a template engine that takes a run-time hit since it requires loading the template processor and any possible cached data. This is FUD, my own template engine compiles directly to the PHP file that will be requested by the browser (1). It is very convenient to pre-process static information at compile time rather than on every request (specific properties, content chunks, content relocation, etc). Additionally, it can compile to static HTML, CSS (2), JavaScript (3), or anything really-- in which case the PHP intepreter isn't even needed after compile. You can't do that with a "PHP as templating engine solution" since it always requires the PHP engine to run. So it's FUD. Cheers, Rob. (1) That's optional actually... you can use it like a traditional template engine too... but why would you. (2) For instance I break my CSS files into chunks when actually creating the stylesheets. The files represent specific groupings of related CSS and allow for embedded comments that are stripped from the final compiled CSS file. (3) I often use a JavaScript master template to pull in specific javascripts into a single JavaScript file for the browser while also at compile time normalizing whitespace and stripping comments. An obfuscator could be added too... but I don't bother with hiding my code :) -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Friday 18 July 2008 18:43:43 Robert Cummings wrote: > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: > > Do not use, template system, use inline php code for templates. > > Oh dear... you must subscribe to FUD 101. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP First of all, please remember php is template language for html. And template.php page.php we can use this directly as template and if we got opcode cache (like APC), we can store entire template file in the memory, no parsing overhead, no function call, absolute noting, direct output from memory. Did you got anything better ? Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Having trouble logging into a PHP Database program
Jason Pruim wrote: Here is my authentication function: // Keep in mind, PASSWORD has meaning in MySQL // Do your string sanitizing here // (e.g. - $user = mysqli_real_escape_string($_POST['user']);) $user = mysqli_real_escape_string($link1, $_POST['user']); $pass = mysqli_real_escape_string($link1, $_POST['pass']); $salt = "salt"; $salt1 = $salt . $pass; //$salt1 .= $pass; $password = md5("$salt1"); $loginQuery = "SELECT * FROM current WHERE loginName='".$user."' AND loginPassword='".$password."' LIMIT 0,1;"; $loginResult = mysqli_query($link1, $loginQuery) or die("Wrong data supplied or database error" .mysqli_error($link1)); $row1 = mysqli_fetch_assoc($loginResult); if($row1['adminLevel'] == "500"){ foreach (array_keys($_SESSION) as $key) unset($_SESSION[$key]); die('account disabled'); } // Why not move this before the query? Why query if we're already loggedin? if($_SESSION['userInfo']['loggedin'] ==TRUE) { echo 'ALREADY LOGGEDIN (MAYBE THIS WAS SET IN TESTING OR SOMETHING, SO WE RETURN AND NO OTHER SESSION VARS ARE SET'; return TRUE; }else{ if(is_array($row1)){ $_SESSION['userInfo'] = array( "userName" => $row1['loginName'], "loggedin" => TRUE, "table" => $row1['tableName'], "adminLevel" => $row1['adminLevel'], "authUser" => $row1['loginName'], "authCompany" => $row1['customerBusiness'], "authCustName" => $row1['customerName']); } else { //$_SESSION['userInfo'] =array("loggedin" => FALSE); die('authentication failed'); } } return TRUE; } ?> And what is happening is sometimes, even though the username & password match what is stored in the database, It only sets the loggedin value... Nothing else. Can anyone see where my error is? Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Fri, 2008-07-18 at 20:32 +0300, Sancar Saran wrote: > On Friday 18 July 2008 18:43:43 Robert Cummings wrote: > > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: > > > Do not use, template system, use inline php code for templates. > > > > Oh dear... you must subscribe to FUD 101. > > > > Cheers, > > Rob. > > -- > > http://www.interjinn.com > > Application and Templating Framework for PHP > > First of all, please remember php is template language for html. > > And > > template.php > > > > page.php > > $template['foo']= 'bar'; > > include('teplate.php'); > ?> > > we can use this directly as template and if we got opcode cache (like APC), > we can store entire template file in the memory, no parsing overhead, no > function call, absolute noting, direct output from memory. > > Did you got anything better ? Yes, see my post to Eric. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
On Fri, Jul 18, 2008 at 8:53 AM, tedd <[EMAIL PROTECTED]> wrote: > At 9:48 AM -0400 7/18/08, Daniel Brown wrote: > >>See, now this one-off kind of thing is no problem. I wish some of >> those other folks who pop in only to "contribute" links to their >> websites would learn from this. It was a well-written pitch to the >> General list, where it's more appropriate than other places. Granted, >> it burns me that they're located in the same time zones and can do the >> work cheaper than myself and my fellow Americans, but good for them. >> ;-P >> >> -- >> >> > > > I wish them well -- but their choice of where to advertise provides reason > to question their other choices. it would be nice if they contributed something to the group to sort of balance things out, but free advertising is the shit :D well, i suspect a lot of people on this list are competent or seeking to be competent enough to work on projects themselves. but then im sure there are also those on the list like me, who need more arms and more time, maybe clones of themselves to get everything done they undertake. honestly, a team of 15, cheap is tempting. only i wonder how good the work is... -nathan
[PHP] Pure PHP
Hello, I want to write some of my ideas about php performance and maintenance. Also you may consider this response to Robert's template systems arguments. I hope my english does not disturb too much. As a uneducated php developer, I have open mind to anything. I try lots of things. After so many projects, so many line of code here where I'm... 1-) Template systems Are usesless, they are cpu hungry, they are complex, they are bloated. Every template creator try to beat each other. And look that smarty. I wonder when they start to write their own sql interpeter. And of course I wrote one. Which can use sql, memcached and lots this that. Sure it was very good one. With memcache support it was very fast. So ? at end of the story, our html designers can't understand the system and start to wheening. Lots of code goes to junk... using inline php code for template is the best way. You can do what ever you want. Just use military grade dicipline yourself to do only read in template.php files. 2-) Using XML and other kind of txt datastructure for storing someting... Are nuts ? why you store that data in external data structure. Is PHP arrays arent powerfull enought to store someting. ? then guess what, if you use opcode cache (as APC). you dont need to spend any cycle to open, parse, check ect. (and I don't say anything exporting your data to 3rd party system. or importing data from 3rd party system) 3-) You may apply number 2 to for sql operations. If you got lots of read sql operations and if the data can store in php array. (I mean if you don't need to sql language for searching data) You may generate some kind of cache system, which produces php output combining with apc your speed up was enormus. 4-) OO programming paradigm.. I still don't believe full blown oo programming under php. And there where some areas to use php OO for fixin some design problems. Php does not have namespaces, because of this you may got variable or function name crashing. Also you can access php objects anywhere from your code. So ? With public static keywors. you can give your code a pseudo name space and you can access your data globally even doesn't write te everywhere like global $this, $that, $bleh; example class evo { public static $config = array(); // config array public static $lang= array(); // language array public static function get_module($o) { . $return $array; } } you can store data in your variables evo::$config['this'] = 'bleh'; and call them evo::$config['this']; anywhere in your code no globals no fuss no buzz. Of course there where lots of programmers around here to saying OO paradigm much more on that. I hope one the I found that much more :). for now all off them marketing buzzword for me. 5-) function options... function hede($name=hede,$this=true,$bleh=0){ } well it nice but what if I want to expand this function ? But I use that thing lots of location, shall I rewrite all of them... unh..!!!. A yes OO programming right ? but what about this. function hede($o){ } $o was an array we can store everthing what ever we want to use in the function. 6-) array in array out in the functions Well lets expand the number 5 function hede($o){ return $result; } $result was string containing our returns. But what if we want to return someting different ? So we have to create other function very similar to. And if we return data in array format, we can put anything in the array. with this we can even change behavior of the function for certain tasks function hede($o){ return $o; } Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
And one thing. > (1). It is very convenient to pre-process static information at compile > time rather than on every request (specific properties, content chunks, > content relocation, etc). Additionally, it can compile to static HTML, One of my sites using 3rd party as data source (via xml). Their data may change any time, so we have to parse template files in each request. What is your suggestion ? Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Optimization of PHP Code
On Fri, 2008-07-18 at 21:33 +0300, Sancar Saran wrote: > And one thing. > > > (1). It is very convenient to pre-process static information at compile > > time rather than on every request (specific properties, content chunks, > > content relocation, etc). Additionally, it can compile to static HTML, > > One of my sites using 3rd party as data source (via xml). > > Their data may change any time, so we have to parse template files in each > request. > > What is your suggestion ? I didn't say it had to be static. I said it can be either static or dynamic. it can house modules, render module data, render arbitrary data. Essentially you can make static what needs to be static and make dynamic what needs to be dynamic. But the template engine isn't like how smarty does things. My engine can produce a PHP file with appropriate PHP code to load modules and render data at run-time. The difference is, when this page is requested by the browser, the template engine is not part of the run-time process. Only the modules are that produce the dynamic data. Of course if you have no dynamic data, no modules need be loaded (such as for CSS). In fact the PHP engine need not be loaded either if it's a true static content file. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pure PHP
On Fri, 2008-07-18 at 21:28 +0300, Sancar Saran wrote: > Hello, > > I want to write some of my ideas about php performance and maintenance. Also > you may consider this response to Robert's template systems arguments. > > I hope my english does not disturb too much. > > As a uneducated php developer, I have open mind to anything. I try lots of > things. After so many projects, so many line of code here where I'm... > > 1-) Template systems > > Are usesless, they are cpu hungry, they are complex, they are bloated. Every > template creator try to beat each other. And look that smarty. I wonder when > they start to write their own sql interpeter. *lol* Everyone's mileage may vary. But you've just made an extremely broad and sweeping statement that cannot be true. If I elaborate on your statement's core argument... then we may as well be using C to create websites instead of PHP... I sure as hell don't want to do that, even though C is far more efficient than PHP with respect to processor efficiency. > And of course I wrote one. Which can use sql, memcached and lots this that. > Sure it was very good one. With memcache support it was very fast. Couldn't have been very fast if you're complaining about template engines sucking. > So ? at end of the story, our html designers can't understand the system and > start to wheening. Lots of code goes to junk... You argue they can't understand a template's syntax, but in the same post you argue for the use of PHP as a template engine... which implies the need to understand PHP. I don't buy it. Also, it strongly depends on who is producing the templates. Certainly some template solutions are very complex, some are very easy. > using inline php code for template is the best way. You can do what ever you > want. Best way for you maybe. I've used PHP as a template engine and some things are extremely convoluted to perform. My own template solution (which supports plug-ins) has a default XML tag system to facilitate content block or processors. Fortunately it's my own tag implementation that only requires the template tags themselves to be well-formed. This has the advantage over PHP in that I can punt block rendering to tag definitions with arbitrary parameters in whatever order is comfortable to the content person. PHP would require a function with specific parameter ordering and no missing parameters... or an array of configuration entries. Additionally, by using tags to facilitate some content structures, I can change these structures site-side on a whim and the tags are expanded at compile-time NOT at run-time. Although I can certainly include PHP code int he expansion to support run-time aspects if necessary. Additionally, using an accumulator tag accumulator output tag combinations I can target content in a page's content template to the page layout template with exquisite ease. Try doing that in PHP without using buffering and manual tracking of variables and buffers. Similarly I can choose to include modules in my content template and have the loading and processing of the module relocated to the beginning of the output PHP script, thus punting content processing till after all modules are loaded... which means if the module needs to perform a redirect for whatever reason it can do so before content output begins... or I can just leave the module to run where it is included in the content. Content/code relocation is extremely powerful. > Just use military grade dicipline yourself to do only read in template.php > files. My templates allow PHP if you want... but I've only done so in very rare cases where I'm wrapping a legacy system that was poorly designed. So I guess I get the best of both worlds... I can use all my template aspects AND use PHP if I absoluely must... right inside the template. This is the advantage to using a template solution that actually produces a PHP script. > 2-) Using XML and other kind of txt datastructure for storing someting... > > Are nuts ? why you store that data in external data structure. Is PHP arrays > arent powerfull enought to store someting. ? Sometimes you need to share data with non-PHP applications. Sometimes you wants something that can later be edited by hand. Sometimes XML is a fantastic solution and PHP serialize (or PHP script) is not. Sometimes. > then guess what, if you use opcode cache (as APC). you dont need to spend any > cycle to open, parse, check ect. Op-code cache won't help you when you need to load that same data structure in a python script. > (and I don't say anything exporting your data to 3rd party system. or > importing data from 3rd party system) Oh. Well sometimes you still want to edit or read the data manually. > 3-) You may apply number 2 to for sql operations. > If you got lots of read sql operations and if the data can store in php > array. > (I mean if you don't need to sql language for searching data) Depends, if you provide a configuration interface for a cl
Re: [PHP] very very small CMS
On 7/18/08, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > Hi OOzy, > I would like to get more details about that CMS. > > Thanks, > Nitsan > > On 18/07/2008, OOzy Pal <[EMAIL PROTECTED]> wrote: > > > > Hello > > I am looking for a simple php CMS. Can anyone help? > > > > -- > > OOzy > > Ubuntu-Hardy > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > ooops, sorry. The cms should manage small websites (mainly article type). -- OOzy Ubuntu-Gutsy (7.10) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: very very small CMS
I've got one that sounds like it's exactly what you are looking for. This site uses it extensively. http://www.restonrunners.org Just about every single page on the site was created using my php program "EditPage". Non-techies do their own thing. It is highly configurable and uses a simple file-based DB for the content. Requires php5. Here is part of the user instructions to give you an idea of the content user instructions. "Rendering of lines and paragraphs generally will be the same as they appear in the edit box. Titles, centering and bulletins are centered. "Tags" are special instructions for the user's browser and consist of starting and, generally [there are exceptions as noted], ending elements [e.g., Blue Text] EditPage's "tags" are described below. "Tag names can be lower or upper case. Two word tags can be connected with an underscore or a dash. [e.g. or ]" That's the good news. Bad news is that I'm doing a major redesign and it won't be ready for about a 3 or 4 weeks. If you can wait till then, just ask. Al. OOzy Pal wrote: Hello I am looking for a simple php CMS. Can anyone help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] very very small CMS
On Fri, Jul 18, 2008 at 10:00 AM, OOzy Pal <[EMAIL PROTECTED]> wrote: > Hello > I am looking for a simple php CMS. Can anyone help? check out cmsmatrix.org, you might find something there. -nathan
Re: [PHP] very very small CMS
On Fri, Jul 18, 2008 at 4:42 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, Jul 18, 2008 at 10:00 AM, OOzy Pal <[EMAIL PROTECTED]> wrote: > > > Hello > > I am looking for a simple php CMS. Can anyone help? > > > check out cmsmatrix.org, you might find something there. > > -nathan > or check out www.opensourcecms.com -- Bastien Cat, the other other white meat
[PHP] Re: very very small CMS
At 4:26 PM -0400 7/18/08, Al wrote: I've got one that sounds like it's exactly what you are looking for. This site uses it extensively. http://www.restonrunners.org Just about every single page on the site was created using my php program "EditPage". Non-techies do their own thing. It is highly configurable and uses a simple file-based DB for the content. Requires php5. Here is part of the user instructions to give you an idea of the content user instructions. "Rendering of lines and paragraphs generally will be the same as they appear in the edit box. Titles, centering and bulletins are centered. "Tags" are special instructions for the user's browser and consist of starting and, generally [there are exceptions as noted], ending elements [e.g., Blue Text] EditPage's "tags" are described below. "Tag names can be lower or upper case. Two word tags can be connected with an underscore or a dash. [e.g. or ]" That's the good news. Bad news is that I'm doing a major redesign and it won't be ready for about a 3 or 4 weeks. If you can wait till then, just ask. Al. Al: Here's a CMS I've been working on. http://www.webbytedd.com/a/easy-page-db The idea is to allow the user edit pages in situ. That specific layout is only one of several different types. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
At 12:23 PM -0600 7/18/08, Nathan Nobbe wrote: honestly, a team of 15, cheap is tempting. -- snip-- -nathan Tempting??? At what? The only number I found tempting was a three-sum. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSIONS QUESTION
At 9:59 AM -0700 7/18/08, R.C. wrote: What's the sequence here. I was able to get the password going, protect the main.php page, sent the email etc. but can't get that password to remain on the main.php when they user tries to get back to that page. Really appreciate some input and coding. I am totally stumped! Thanks much REF REF: Try this: http://www.webbytedd.com/b1/simple-session The code is there. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
On Fri, 2008-07-18 at 19:57 -0400, tedd wrote: > At 12:23 PM -0600 7/18/08, Nathan Nobbe wrote: > >honestly, a team of 15, cheap is tempting. -- snip-- > >-nathan > > > Tempting??? At what? > > The only number I found tempting was a three-sum. I like the purity of 1 + 1 + 1. Now that's sumthing! Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: very very small CMS
On Fri, 2008-07-18 at 19:40 -0400, tedd wrote: > At 4:26 PM -0400 7/18/08, Al wrote: > >I've got one that sounds like it's exactly what you are looking for. > > > >This site uses it extensively. http://www.restonrunners.org > > > >Just about every single page on the site was created using my php > >program "EditPage". Non-techies do their own thing. > > > >It is highly configurable and uses a simple file-based DB for the > >content. Requires php5. Here is part of the user instructions to > >give you an idea of the content user instructions. > > > >"Rendering of lines and paragraphs generally will be the same as > >they appear in the edit box. Titles, centering and bulletins are > >centered. > > > >"Tags" are special instructions for the user's browser and consist > >of starting and, generally [there are exceptions as noted], ending > >elements [e.g., Blue Text] EditPage's "tags" are > >described below. "Tag names can be lower or upper case. Two word > >tags can be connected with an underscore or a dash. [e.g. > >or ]" > > > >That's the good news. Bad news is that I'm doing a major redesign > >and it won't be ready for about a 3 or 4 weeks. If you can wait till > >then, just ask. > > > >Al. > > Al: > > Here's a CMS I've been working on. > > http://www.webbytedd.com/a/easy-page-db > > The idea is to allow the user edit pages in situ. > > That specific layout is only one of several different types. That's a really great layout ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] questions about using include() in php
i am doing seo for a website and this website uses a lot of php for which i need suggestions. this is how the website is set up. in the index.php file there is a flash banner at the top of the page and the center part is another file which is called using include("links.php") and the bottom part using include("footer.php") the footer has links such as = webdevelopment software development ... each of this has a query string= http://website.com/index.php?page=webdevelopmentand http://website.com/index.php?page=software ... etc this way every link in the website is calling index.php and a query string is being passed and the index.php looks for the name ex=webdevelopment and loads that particular page in the center section of the website. the main purpose of doing this was to load the flash file only 1 time and the rest of the time when the links from the footer are clicked only the center part changes and the flash file does not have to reload. due to this the entire website is having only 1 page index.php therefore using 1 tag 1 meta description and 1 meta keywords tag as the values of and tags are being displayed from index.php however from a seo and sem perspective ideally there should be different file name which means i can optimize the and tags for individual files. please advice a best solution to get around this as i would like to have different title and meta tag for individual pages like webdevelopment.php software.php etc which i am presently not able to due to include("") any help will be greatly appreciated. thanks.
Re: [PHP] questions about using include() in php
On Sat, 2008-07-19 at 11:57 +0530, Sudhakar wrote: > i am doing seo for a website and this website uses a lot of php for which i > need suggestions. this is how the website is set up. > > in the index.php file there is a flash banner at the top of the page and the > center part is another file which is called using include("links.php") and > the bottom part using include("footer.php") > the footer has links such as = webdevelopment software development ... each > of this has a query string= > http://website.com/index.php?page=webdevelopmentand > http://website.com/index.php?page=software ... etc > > this way every link in the website is calling index.php and a query string > is being passed and the index.php looks for the name ex=webdevelopment and > loads that particular page in the center section of the website. the main > purpose of doing this was to load the flash file only 1 time and the rest of > the time when the links from the footer are clicked only the center part > changes and the flash file does not have to reload. > > due to this the entire website is having only 1 page index.php therefore > using 1 tag 1 meta description and 1 meta keywords tag as the values > of and tags are being displayed from index.php > > however from a seo and sem perspective ideally there should be different > file name which means i can optimize the and tags for > individual files. > > please advice a best solution to get around this as i would like to have > different title and meta tag for individual pages like webdevelopment.php > software.php etc which i am presently not able to due to include("") > > any help will be greatly appreciated. File: index.php === File: webdevelopment.php File: header.php File: footer.php File: layout.php Menu... Ads ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php