Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 8:27 AM, Joseph Thayne wrote: > > Actually, the syntax is just fine.  I personally would prefer it the way you > mention, but there actually is nothing wrong with the syntax. > >> The ,'$date1'"." is not correct syntax, change it to ,'".$date."' My personal preference thes

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 9:31 AM, Jochem Maas wrote: > Op 2/11/10 10:51 PM, James McLean schreef: >> My personal preference these days is to use Curly braces around >> variables in strings such as this, I always find excessive string >> concatenation such as is often used when

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 9:31 AM, Joseph Thayne wrote: > As for the backticks, they are required because of MySQL, not because of > phpMyAdmin.  The issue was not that phpMyAdmin uses backticks, it is that > MySQL pretty much requires them when naming a field the same as an internal > function to m

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread James McLean
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer wrote: > OK... external function... that would explain why I could not locate it. > > Let me get right to the problem I am having with this code as someone may be > able to help directly. > > I have a link on a page that opens a contact form.  The link i

Re: [PHP] Mail Function In PHP

2010-03-08 Thread james . stojan
Any volume of mail sent direct to mx records is a red flag for anti spammers and without an smtp spf dkim and rdns you are wasting your time. The logic is that only people sending spam would be sending direct to mx like that. Fair or not that is just how life works. Oh and most mail servers do c

Re: [PHP] Revision control?

2010-03-09 Thread James McLean
the entire file for each instance of binary data, rather than storing the changes as it would with a Text file. Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread james stojan
Double check your code I came up with the same solution as Ash did and it worked fine in Wamp. On Mon, Mar 15, 2010 at 3:30 PM, Ashley Sheridan wrote: > On Mon, 2010-03-15 at 15:35 -0400, Al Rider wrote: > > > > > > > On 3/15/2010 3:11 PM, Ashley Sheridan wrote: > > > > > On Mon, 2010-03-15 at 15

[PHP] MySQL: Return Number of Matched Rows

2010-03-25 Thread James Colannino
o get something done with as few SQL queries as possible. Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL: Return Number of Matched Rows

2010-03-25 Thread James Colannino
lts you're looking for, but it might. > Yeah, the extra select is what I was hoping to avoid :-P The MySQL client will return both the number of rows matched and the number of rows affected by the query; I was hoping perhaps the PHP API offered a way for me to do the same. Ah well... Th

Re: [PHP] var_dump( (0 == 'heading') ) == TRUE ?!

2010-05-14 Thread James Colannino
nt a valid integer, so it appears on the right hand side as just 0, which is equal to the left hand side. James Daevid Vincent wrote: > Can someone explain why an integer 0 compared to a string evaluates to > boolean true?? > > var_dump( (0 == 'heading') ); > > Yet,

[PHP] Question about logins and locking

2010-06-22 Thread James Colannino
he user logs in and when the user logs out? I'm just looking for some conceptual ideas. Thanks everyone! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about logins and locking

2010-06-22 Thread James Colannino
#x27;s system is compromised in some way or not. It > all depends on what kind of application, service, user level access, and the > strict security you require. Thanks Tommy. That was very helpful, and some of it is similar to how I was thinking of doing it. James -- PHP General M

[PHP] Unexpected behaviour from define()

2010-06-24 Thread James Long
Perhaps I am missing something basic here. Why does the LOG_WARNING constant take on a value of 4, when it is defined with a value of 1? Thank you! Jim $ cat bug.php $ php bug.php LOG_NORMAL 0 LOG_WARNING 4 LOG_ERROR 2 $ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Re: Unexpected behaviour from define()

2010-06-24 Thread James Long
On Thu, Jun 24, 2010 at 02:41:51PM -0700, James Long wrote: > Perhaps I am missing something basic here. > > Why does the LOG_WARNING constant take on a value of 4, when > it is defined with a value of 1? > > Thank you! > > Jim Answering my own question here LOG_WA

Re: [PHP] Unexpected behaviour from define()

2010-06-25 Thread James Long
k for 'display_errors = 1' in php.ini since I was seeing error messages for other errors. Thanks again. Jim On Fri, Jun 25, 2010 at 10:38:39AM +0100, Richard Quadling wrote: > On 24 June 2010 22:41, James Long wrote: > error_reporting(-1); > ini_set('display_errors',

Re: [PHP] Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other?

2010-10-13 Thread James Diamond
Hey Mike, I use zend eclipse, love it. What I love about it is what I love about any IDE, code complete, project configurations, customizable preferences of the editor, etc. I have used Eclipse (Pre-Zend), Zend Eclipse, Zend Studio, Komodo, and Easyclipse. James On Oct 13, 2010, at 12:58

[PHP] Setting allow_url_fopen

2012-05-26 Thread James Moe
()." It did not work. :-( $oldval = ini_set("allow_url_fopen", 1); The remote call is made after the above statement. Clearly there is more to it than I expected. What is the correct way to allow URL fopen on the fly? - -- James Moe moe dot james at sohnen-moe dot com 520.743

[PHP] Exception Handling

2012-06-01 Thread James Colannino
27;t. I have to do catch (Database_Exception $var) to make it work. I've been reading that Exception should be sufficient, since every exception object is a child class of Exception. Did this perhaps change in 5.4? I think it was working properly in 5.3, but I'm not sure. Any clarification w

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:30, ma...@behnke.biz wrote: James Colannino hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework that throws a "Database_Exception" obje

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 08:08, James Colannino wrote: On 06/01/12 07:30, ma...@behnke.biz wrote: James Colannino hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework tha

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:32, Mackintosh, Mike wrote: Hi James, You would have to catch Database_Exception. It is also good practice to also always catch exception afterwards. Hey Mike, Thanks for the reply! I saw this comment in the documentation (http://www.php.net/manual/en

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
try it out tonight to confirm. Thanks! James

Re: [PHP] else if vs switch

2012-06-15 Thread James Yerge
April >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> > If a database solution isn't desired, check out the parse_ini_file() function. You can create a simple INI file containing the nec

[PHP] SOAP and Php question about authentication

2012-07-16 Thread James Newman
I'm having a few authentication issues and I'm not sure if it's my code or the web service I'm connecting to. The code below shows what I'm working with not sire if I'm going about it the right way. This is the error I get! Fatal error: Uncaught SoapFault exception: [soap:Client] System.Web.Serv

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread James Newman
agement on the client side as authentication has probably > already happened, but the author doesn't know how to handle the response > to the authentication correctly. > > --Curtis > > Matijn > Woudt wrote: > > Op 17 jul. 2012 05:23 schreef "James > Newman" &g

Re: [PHP] Creating drop-down menus

2012-07-17 Thread James Newman
Just to put my 2cents in, you might want to try jQuery if you're going to go down the AJAX road. James. On Wed, Jul 18, 2012 at 1:59 AM, Ramiro Barrantes < ram...@precisionbioassay.com> wrote: > Thanks to everyone for their help, AJAX is the way to go. > > Daevid, it'

[PHP] How to catch an exception using SoapClient.

2012-08-06 Thread James Newman
I was wondering how I'd catch an exception using SoapClient. $data = array( 'Particular'=>'Payment for stuff', 'Email' =>'e mail address', 'CardNumber'=>'0000, 'CardType' =>'MC', &#x

[PHP] Re: htaccess question

2013-04-10 Thread James Moe
On 04/09/2013 11:07 AM, Al wrote: > I know it's not a php question, but I can't readily find the answer > elsewhere. > Try <http://www.apache.org/foundation/mailinglists.html>. -- James Moe jmm-list at sohnen-moe dot com -- PHP General Mailing List (http://www

Re: [PHP] undef func

2013-05-10 Thread James Yerge
On 05/10/2013 06:08 PM, Gabriel Ricci wrote: > pear isntall php-dev > > > Att. > > Gabriel Ricci > > > Website > Follow @gabrielricci > Facebook profile , GitHub > prof

[PHP] DOMDocument depth limit

2011-02-16 Thread James Devine
Is there any way to pass LIBXML_PARSEHUGE to DOMDocument::loadHTML ? I'm trying to load an in-memory html document and I'm hitting this limit, DOMDocument::load and DOMDocument::loadXML both look like they accept options but DOMDocument::loadHTML does not. -- PHP General Mailing List (http://www.

[PHP] Connection Handling - unreliable at best?

2011-02-18 Thread James Green
hin Apache. Can anyone explain what I've seeing? I've tried this using Lighttpd/Windows too. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Connection Handling - unreliable at best?

2011-02-20 Thread James Green
Hm. Commented out the line & re-tested. Absolutely no change whatsoever :( Even made it false. I'm really hoping I've been an idiot on this one. Makes no sense otherwise but this is where I am. Hope to hear further suggestions. James On 20 February 2011 03:05, Daniel Brown w

[PHP] Upload size limit stays at 8MB

2011-05-05 Thread James Moe
Hello, apache v2.2.15 (Linux/SUSE) phpv5.3.3 linux v2.6.34.7-0.7-desktop #1 SMP I updated to change upload_max_filesize = 2M to upload_max_filesize = 60M. php_info() shows the changed value; "echo ini_get(upload_max_filesize)" shows the changed value. Yet when I attempt an upload,

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: > The desired result is. > > Array > ( > [0] = > "On the"; > [1] = > "course or in the"; > [2] = > "of colver"; > ); > > I am just not sure the delimiter can be an array in the Explode function. > > > > > > > Richard L. Busk

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: > The desired result is. > > Array > ( > [0] = > "On the"; > [1] = > "course or in the"; > [2] = > "of colver"; > ); > > I am just not sure the delimiter can be an array in the Explode function. > > > > > > > Richard L. Busk

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 09:09 PM, ad...@buskirkgraphics.com wrote: > That is exactly it. > Thanks James I knew it was simple just forgot how it was done. > > > > > > Richard L. Buskirk > > -Original Message- > From: James Yerge [mailto:ja...@nixsecurity.org] >

[PHP] mysqli_query() returns NULL?

2011-06-17 Thread James Colannino
integer), instead of false I get a return value of NULL. Does anyone know why? Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread James Colannino
> results of the query. But in that case it would return boolean true rather than NULL, right? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Top Posting

2011-07-05 Thread James Moe
want to? > I suspect one reason top posting is popular is that responders do not have to think about tidying up, just spit out a reply and move on. The result is a message that grows in size with every reply containing every useless bit since the thread began. It becomes quite a mess. - -- James

Re: [PHP] Form Already Filled Out

2011-08-03 Thread James Yerge
On 08/05/2011 12:43 AM, wil prim wrote: > Hello, S i created a simple login system, and I am using sessions > Everything > seems to work fine, however; when I upload my files to my server and type my > domain name my index.php page comes up and the form is automatically filled > out > with

[PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
using the answer as the key. If it matches the unencrypted version stored in the database, you know you have the correct answer, and use it to decrypt the user's password and send it to the email the user has setup for their account. James -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
is allowed access existing passwords ;) Good point. I think I'll go that route instead. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
On 08/16/11 02:08, Richard Quadling wrote: > Take a look at https://code.google.com/p/loginsystem-rd/ > > Whilst it is just a login system, the techniques here could be adapted > and probably learned from (if you are new to security). Ah, that looks interesting. Thanks for the

Re: [PHP] mysqli sql question

2011-08-31 Thread James Yerge
On 08/31/2011 05:23 AM, Peet Grobler wrote: > Is it possible to get the actual sql that is being used to query or > update the database? > > E.g > $sth = $dbh->prepare ("update table set field=?, field2=? where id=?); > mysqli_bind_param ($sth, 'ssi', 'text1', 'text2', 10); > $sth->execute(); > > S

Re: [PHP] REQUEST and COOKIE

2011-09-06 Thread James Yerge
okie was sent by the server, the COOKIE header is going to be evident in the REQUEST headers. Therefore, the only way a bug is going to be introduced and security breached is by the author of the code ;) http://us.php.net/manual/en/reserved.variables.request.php The PHP team even makes mention that the contents of $_REQUEST cannot be trusted. James

Re: [PHP] dev to production server

2011-09-07 Thread James Yerge
27;ve integrated the YUI Compressor into their build process is simply minifies all CSS and JavaScript. Anyway, enough about that, just an example of what can be done. There's always the option of compiling everything from source as well :) James

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread James Yerge
On 09/13/2011 08:40 PM, Jim Lucas wrote: > On 9/13/2011 5:23 PM, tamouse mailing lists wrote: >> On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings >> wrote: >>> I'm a big fan of editors that work in the terminal. >> You'll get my emacs when you pry it out of my cold dead hands. >> > +1 > > mg too

[PHP] Re: XML enabled but not working

2011-09-16 Thread James Moe
ort" > libXML support => active > Perhaps you need to install libxml[2]? -- James Moe jmm-list at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help Wth PHP

2011-10-09 Thread James Yerge
On 10/09/2011 08:41 PM, Rod Lindgren wrote: > I have a hosting account and am trying to get a friend's website up and > running. We downloaded his existing site from his current host and uploaded > it to my host. It is currently under a subdomain, www.egypt.aragren.com >

[PHP] Critical Error

2012-03-28 Thread Karl James
o do with the primary key, right? Now keep in mind as some of you I do not claim to be a know php very well. Just beginning stages. I wanted to send a screen shot but don't want to get email bounced. Any help would be appreciated. <mailto:karlja...@tampabay.rr.com> Karl James

[PHP] PHP ISSUE!!!

2012-04-01 Thread Karl James
to fix issues like this yet. <mailto:karlja...@tampabay.rr.com> Karl James

[PHP] Adding Rows In PHPMYADMIN

2012-04-02 Thread Karl James
TABLE+%60product%60+DROP+PRIMARY+KEY&zero_rows=The+primar y+key+has+been+dropped&phpMyAdmin=0b5ebd941a4bbe87db1e38f60fd10dadec30e8e7> Description: Drop product_id <mailto:karlja...@tampabay.rr.com> Karl Jame

[PHP] Fatal Error Handling

2005-02-09 Thread James Taylor
Hi, I have a set of functions which are potentially dangerous in terms of memory hogging, and need to protect from memory overflow - this is I want to detect when the memory overflow occurs. The manual says that eval() will return false on a fatal error, so I thought I could do something like

Re: [PHP] Fatal Error Handling

2005-02-09 Thread James Taylor
Richard Lynch wrote: James Taylor wrote: So finally quit that music thing and got a real job? :-) [Sorry. I'm sure you've heard them all, but I couldn't resist...] /me adds Richard Lynch onto the list of those who must die when the revolution comes... I have a set of func

Re: [PHP] Fatal Error Handling

2005-02-10 Thread James Taylor
-bash-2.05b$ php test.php Content-type: text/html X-Powered-By: PHP/4.3.10 Memory Limit: 32K Memory Used: 13432 Error (1024) in /www/l-i-e.com/web/test.php:12 - Test -bash-2.05b$ Note a complete lack of "Made it" nor an error message trapped by my error handler when the RAM runs out. :-( This

[PHP] Re: Many forms in one php file

2005-02-15 Thread James Taylor
Nsk wrote: Hi I want to create a single php file which will be able to display multiple html forms. Like this: Form1 -> Form2 -> Form3. After the user completes and submits Form1, the script will process it and display a different form. etc... I am new to php, I would need some detailed instruc

[PHP] Re: Image Creation

2005-02-15 Thread James Taylor
Dude - that works fine! can you check your code - make sure you havnt got any white space at all before the php starts in ANY file, and then check that you've got ALL erros being reported (because you might have the error cant send headers, output allready sent at line x) which will prenvent th

[PHP] Re: Image Creation

2005-02-16 Thread James Taylor
Ahh now it becomes clear, you where trying to place the image inline. There is a way with base64 encoding, but it isnt supported by many browsers - you can actually say data:image/png,base64;[...]";> where the [...] is the base64 encoded image, so you would need to wrap an ob start and ob end a

[PHP] [Pear] go-pear.php

2005-02-23 Thread James Nunnerley
Hi, I'm having two problems: Firstly, the new update of go-pear.php I believe is not working. Does anyone know when a new "fixed" one is being released? Also, I'm having problems signing up to the pear.php.net lists - again, anyone any ideas? Cheers Nunners

[PHP] Improving a MySQL Search

2005-02-28 Thread James Nunnerley
o to run a cron which transfers between the live and archive. Can anyone suggest some quick easy methods for speeding up the search? Cheers James

[PHP] Current dilema for Novice

2005-02-28 Thread James Marcinek
to multiple virtual hosts so I can't do that. The security must provide protection from somebody trying to get in from a subdirectory >From my limited knowledge of PHP, I would think that creating a solution to support this would take some time. But like I said I sure don't know ever

[PHP] Variable Replacement

2005-03-02 Thread James Williams
Hey guys, I'm coding a forum right now and I just decided that I needed to code some variable replacement to create a simple template system. This is the code I have but it doesn't work |http://php.net/file>("tpl/hea

Re: [PHP] cache engine

2005-03-05 Thread James Williams
Mark Charette wrote: Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to

[PHP] unexplainable - page generation time class

2005-03-05 Thread James Williams
Howdy! I've made a class which simply determines the page generation time of a php script... After pretty much an hour of straight examining the code and trying tons of different things, no good has come of it, however I can't find an error... anywhere. class page_gen { // // PR

Re: [PHP] Re: How can i calculate total process time?

2005-03-06 Thread James Williams
Eli wrote: On top use this: On the end use this: ".round($endtime-$starttime,3)." sec"; ?> If you want a nice object oriented solution that's easy to use over and over again which does pretty much the same thing, give this class a whirl. class page_gen { // // PRIVATE - DO NOT MODIFY // v

Re: [PHP] Newbie question: qutoes?

2005-03-06 Thread James Williams
rory walsh wrote: Can anyone tell me if there is a difference between double quotes and single quotes? Cheers, Rory. What's up Rory... actually there *is* a difference. Double quotes are parsed by the php engine, meaning it goes through and finds variables and stuff which it can parse, ex. prin

RE: [PHP] Improving a MySQL Search

2005-03-07 Thread James Nunnerley
;', `interface` varchar(255) NOT NULL default '', `old_device` varchar(255) NOT NULL default '', `old_distance` varchar(255) NOT NULL default '', `old_dst` varchar(255) NOT NULL default '', `new_device` varchar(2

Re: [PHP] software catalog

2005-03-08 Thread James Williams
What's up Ryan, I do believe that the cart software you choose should for the most part be independent upon what exactly your selling. There are a few big shopping cart solutions that work for selling anything and I'm sure there are features and / or plugins that will allow you to do discounts

Re: [PHP] a new it company

2005-03-09 Thread James Williams
I agree entirely... *down with bansalsetech.com* Ryan A wrote: here here - I thought It was kind of humourous, I also bare in mind that these guys in the far east are just trying to make their way in the world too, they are at a disadvantage with the language also. besides which there is a quite a

Re: [PHP] Ad software

2005-03-15 Thread James Williams
Ryan A wrote: Hey, I am looking for a software that just lists adverts... eg: Like ebay but without the bidding Requirements are simple, so simple that i am sure something like this exists and i dont have to write it myself: 0.They must register first then... 1.offer the person to put in his ad det

Re: [PHP] New Website for PHP Coders.. www,lifenit.com

2005-03-18 Thread James Williams
God damn it this is really startin to piss me off... On 3/17/2005 8:22:17 PM, freshersworld .com ([EMAIL PROTECTED]) wrote: Hi All, This is a very interesting website. Visit www.lifenit.com Also I can refer one more sebsite for you.. www.merchantii.com Hope these were Useful. Rgds, Fresherswo

[PHP] PHP MYSQL table locking

2005-03-24 Thread james tu
, but I'm curious if there is anything I can do to mitigate this situation. -- -James Tu --- ESI Design 111 Fifth Avenue 12th floor New York, NY 10003 (212) 989-3993 ext. 357 (212) 673-4061 (fax) --- -- PHP General Mailing List

Re: [PHP] Re: Illegal string offset error in array

2005-03-27 Thread James Kaufman
On Mon, Mar 28, 2005 at 11:29:28AM +1200, Jasper Bryant-Greene wrote: > Rasmus Lerdorf wrote: > >>>Jasper Bryant-Greene wrote: > You can't access string offsets with square brackets [] in PHP5. You > need to use curly braces {} instead. > >>> > >>>Not sure where you got that idea. This is

[PHP] POST variables from a link...and popup new window

2005-03-29 Thread james tu
Hi: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. Is there a way to do this? -- -James -- PHP General Ma

Re: [PHP] Include file

2005-03-29 Thread James Pancoast
Try it with double quotes instead: include( "../includes/$include" ); That way works for me. And I also hope you're cleansing or filtering $include in some way. On Tue, 29 Mar 2005 19:41:15 -0600, Marquez Design <[EMAIL PROTECTED]> wrote: > Does anyone know how to include a variable page? The

[PHP] Session Question

2005-04-01 Thread James Sherwood
event? Thank you in advance, James

[PHP] PHP inside .htacess protected file

2005-04-05 Thread james tu
HP scripts in the directory. How would I go about doing this? Can I create a subfolder to put the PHP scripts in and put another .htaccess in that folder to override the protection? Thanks. -- -James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] plug-in forum

2005-04-06 Thread James Williams
Ryan A wrote: Hi, a client wants me to add a forum to his existing site...which is not a problem, the problem is he wants it to work off his existing site eg: once someone logs in to the main site they dont have to relogin or create new accounts in the forum section a one login gets you total s

Re: [PHP] plug-in forum

2005-04-06 Thread James Williams
Ryan A wrote: Hey James, I've actually decided to go with FudForum as it has a lot of features and everything that this project requires...and some that it does not :-), but since its open source and free I cant really complain, once i get paid I plan to donate a few bucks to support the pr

[PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
thank-you! Cheers! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
Richard Lynch wrote: On Wed, April 6, 2005 7:04 pm, James Williams said: Hey fellas, I'm makin a forum right now and as a sub project, I'm making a template engine / class. Right now all it does is variable replacement, however I am curious as to how I can implement support for lo

Re: [PHP] language files

2005-04-06 Thread James Williams
Ryan A wrote: Hey, I was just wondering which is the best/most efficient way of having language files for a site? eg: if $lang=english then it should include lang.en.inc.php if $lang=swedish then it should include lang.se.inc.php etc One way I did it before was to have an array like so: $lang_en[0]

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
, you'd have to have some sort of declaration in your code that sets apart code blocks you want replaced, invent some sort of system of replacing that code on demand, then write that code that implements your system. a little difficult, and out of my scope, i'm sure. unless i spent two we

[PHP] Question about clients

2005-04-07 Thread karl james
. Yes I do realize I am talking to the competition... :-) But any advise for a newbie would be greatly appreciated. If you want you can email me directly at the url donw below. Thank you very much in advance. Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -- PHP General Mailing

Re: [PHP] Creating intelligent forms

2005-04-14 Thread James Kaufman
On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote: > Hello, all - > > I had some questions regarding the creation of "intelligent" forms - > forms that take data, and then parse it for errors, "real" data, etc etc. > > The first idea I had was to make a function to display the form. When > t

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread James Williams
> No > > You don't declare variables in PHP. You just start using them. > > Perhaps you mean assign? Since your example of > > var = variableName; > > is actually an assignment in Javascript. > > In PHP you simply do: > > $one_var = $another_var; > > -Rasmus You are however, when deali

Re: [PHP] Fastest templating mechanism

2005-05-08 Thread James Williams
> Hi everyone, > > Thanks for your replies. I Think I haven't been very clear about what I > really need. First of all, I don't need an existing templating system, > because I am working on my own templating system. > And regarding Satyam's post. This looks a lot like what I'm developing > right n

[PHP] A couple questions about templating

2005-05-09 Thread James Williams
Hey fellas, sorry to infest the list with another question about a templating engine, but I am looking for some professional opinions here... I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable replacement, and have made two versions. The fir

Re: [PHP] A couple questions about templating

2005-05-09 Thread James Williams
On 5/9/05, Rory Browne <[EMAIL PROTECTED]> wrote: > > I made a second one, which reads the file into an array, > > changes the variables the same way, but instead compiles the finished > > product into a compile directory and then reads the compiled file back > > to the page. the benefit to this b

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread James Williams
Okay well I see I have reopened the can of worms lol. > This has all been done before, and I'm assuming that the James knows, > and has seen that before, since he used the same common method names, > as is in many php templating systems. $class->assign has been used in > a

Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread James Williams
Well, I made it work now, and I even got a cache built in there (kindof stupid though, I need to make it smarter.) I figured out to use the assign function to add the curly brackets, thank-you. I'll look into the file_*_contents() functions, thanks. On 5/11/05, Rory Browne <[EMAIL PROTECTED]> w

Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread James Williams
I took a look at those functions, and file_put_contents() is only php5... this needs to work w/ php4 so that's not an option. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySql injections (related question)

2005-05-11 Thread James Williams
On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > Is mysql_real_escape_string *DIFFERENT* in some incredibly huge secure way > that I want to stop working on all my current projects to go re-write the > 10,000,000 lines of code? 2 words: Search & Replace. -- PHP General Mailing List (http://

Re: [PHP] beginner needs help!

2005-05-12 Thread James Williams
On 5/12/05, Clinton, Rochelle A <[EMAIL PROTECTED]> wrote: > Dear Much Needed Advisor, > > I am definitely a PHP novice and making some code changes to a PHP > script. > > I need to change a declared output file to include the date as an > extension. > > My file is declared at the beginning of t

Re: [PHP] beginner needs help!

2005-05-12 Thread James Williams
hmmm, well... If I could see the code I could probably fix it for you, the problem is everything changes depending on the context it's used and how the class is setup. For example, it's poor practice to assign values to vars when you declare them... It is recommended you assign them inside the cla

Re: [PHP] MySql injections (related question)

2005-05-12 Thread James Williams
e: > On Wed, May 11, 2005 8:27 pm, James Williams said: > > On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > >> Is mysql_real_escape_string *DIFFERENT* in some incredibly huge secure > >> way > >> that I want to stop working on all my current proj

Re: [PHP] sleep function

2005-05-12 Thread James Williams
On 5/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I want to create a script that displays all names from a database once per > second. > A part of the script look like this. > > for ($i=0; $i<$total_names; $i++) > { > echo "name"; > sleep (1); > } > > The sc

Re: [PHP] MySql injections (related question)

2005-05-12 Thread James Williams
I couldn't tell you the technicals of it, but just from the php documentation: " This function must always (with few exceptions) be used to make data safe before sending a query to MySQL." On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, May 12, 2005 12:39

Re: [PHP] sleep function

2005-05-12 Thread James Williams
I just tried a couple of output_buffering on a test script I made and it won't work... It simply waits for 10 seconds then displays everything... Kinda sucks. On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said: > > I want to create a scrip

Re: [PHP] sleep function

2005-05-12 Thread James Williams
Okay... the difference is between Apache + PHP for windows, and Apache + PHP for unix... it works on linux / unix... but not on windows... check it out. http://www.jamwil.com/misc/flush.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    5   6   7   8   9   10   11   12   13   14   >