Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Josh Kehn
d{4} to match that basic pattern for all numbers though. Regards, -Josh ___ http://joshuakehn.com Sent from my iPod -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption/Decryption Question

2010-08-11 Thread Josh Kehn
on is not 123-45-6789. :-) > > -- > --- > http://sperling.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Tedd- Considering you can brute force the entire keyspace for Triple DE

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Josh Kehn
gt; Thanks for the help. > > --Rick > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Rick- It is generally accepted that you should use single quotes whenever possible. I only use double quotes when w

Re: [PHP] PHP The Anthem

2010-08-05 Thread Josh Kehn
That. That is awesome. I will be forwarding this to some perl people now. Regards, -Josh On Aug 5, 2010, at 7:57 PM, Daevid Vincent wrote: > http://www.youtube.com/watch?v=S8zhmiS-1kw > > http://shiflett.org/blog/2010/aug/php-anthem > > ...some people have wa

Re: [PHP] the state of the PHP community

2010-07-29 Thread Josh Kehn
it repos, memcached and scribe to name two. Some stuff I just can't be involved in (C / C++ dev is tricky when you work with Java / PHP). > > ps: please *do not* flame anybodies answers, that really wouldn't be fair. > > Best & Regards, > > Nathan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Regards, -Josh

[PHP] Hello, I have a php/apache question

2007-11-12 Thread Josh McDowell
and nothing comes up. Also when I restart apache I get this message: apache is running a threaded mpm, but your php module is not compiled to be threadsafe. You need to recompile php. preconfiguration failed. Any suggestions would be helpful, thank you for your time. -Josh -- PHP Genera

RE: [PHP] eval();

2005-10-30 Thread Josh McDonald
Keep in mind, eval()ing code you pull from the database will also raise the damage from a SQL injection attack or similar from a PITA restore-your-database to a much bigger PITA format-webserver. -Josh -- My name was Brian McGee I stayed up listening to Queen When I was seventeen Josh &#

[PHP] Uploading a file

2005-09-06 Thread Josh
oes anyone know of a work around for this? Cheers. Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] removing chars from string

2005-06-27 Thread Josh Olson
> I know that it is length, and I gave the correct length for an 11 character > string minus two characters. But as always, there is more than > one way to skin a mule. $string = '12345678901'; $jayString = substr($string, 0, 9); $kevinString = substr($string, 0, 8); echo $jayString; // echos

[PHP] Object Oriented PHP (5)

2005-06-24 Thread Josh Olson
PHP has inspired me to become a better programmer. I have been actively reading books as well as online content to try to become better at designing and programming object oriented web applications. My primary focus is PHP. Will you help a pragmatic programmer in training out by suggesting some w

Re: [PHP] Problem with arrays

2005-06-24 Thread Josh Olson
for ($i = 0; $i < count($array1); i++) $array1[$i][] = $array2[$i]; from kevin l'huillier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header("Location: page.php target=_parent")?????

2005-03-25 Thread Josh Whiting
> How should I formulate the header function to replace the current frameset > page with a new one? I have tried a combination of header("Location: > page.php target=_parent"); but I get an error message saying the page does > not exist. > > Also, can I save a frameset page with a .php extensio

Re: [PHP] Meta HTTP refresh problem

2005-03-25 Thread Josh Whiting
some browsers force a waiting period before the refresh happens (as a usability feature), and (2) the user can use back/forward without running into the "this page contains POST data, do you want to resend it?" alert, which I avoid in my designs like the plague (always using a redirect i

Re: [PHP] Re: Getting the process ID

2005-03-24 Thread Josh Whiting
en to suggestions on how to do this. What is the best way? do you have access to a database? why not just manage the transaction on the database level? transactions, locking, etc. are a core part of what databases do for a living. it's not a problem best solved with PHP. /josh w --

Re: [PHP] OR statement

2005-03-24 Thread Josh Whiting
> This work fine, however, I would like to add to the criteria above. I would > like to say: > > if ($audio == "Cool" or "junk" or "funky"){ > > ... > if (in_array($audio,array("Cool","junk","funky"))) { ... }

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread Josh Whiting
> >Please can someone tell me how you pass arrays between PHP pages. > > $var = serialize($testArray); > echo ""; > > Then unserialize the variable on the receiving page. To this you might also add an MD5 hash to check for authenticity, depending on what you're doing with that incoming data that

Re: [PHP] Different approach?

2005-03-21 Thread Josh Whiting
On Thu, Mar 17, 2005 at 11:01:44AM -0500, John Taylor-Johnston wrote: > Hi, > > I've read: > > > http://dev.mysql.com/doc/mysql/en/create-table.html > > Would anyone code/approach this differently? [...] > $sql = "INSERT INTO $table > (StudentNumber,Exercise1,Exercise2) values > ('$StudentNumber','

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-16 Thread Josh Whiting
K 4. select * from sessions where id=$sess_id Do stuff ... To close it: 1. update sessions set content='...' 2. select release_lock("my_prefix_".$sess_id) I don't have all the details covered yet but I think that is just what I needed. Thanks!! /Josh W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-12 Thread Josh Whiting
On Fri, Mar 11, 2005 at 09:57:46AM -0800, Richard Lynch wrote: > > well the trouble is not in the writing at the end of the request, which > > would likely only be a single query and therefore not need a transaction > > in itself. the trouble is the lack of locking out other requests from > > readi

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-10 Thread Josh Whiting
On Wed, Mar 09, 2005 at 02:52:52PM -0800, Richard Lynch wrote: > > Agreed, initially I thought of that but I also need to use transactions > > in my business logic and MySQL doesn't support nested transactions, so > > I'd have to open a separate connection to the DB to handle the session > > transa

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-08 Thread Josh Whiting
On Tue, Mar 08, 2005 at 10:38:28AM -0800, Richard Lynch wrote: > Josh Whiting wrote: > > SO, does anyone have some code that uses MySQL to replace PHP's native > > session storage that also correctly handles this concurrency problem? > > Create your MySQL session tabl

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-06 Thread Josh Whiting
On Sun, Mar 06, 2005 at 02:27:53PM +, Chris Smith wrote: > Josh Whiting wrote: > >I've been trying to switch to MySQL-based session storage instead of the > >native PHP session storage. In doing so, I've run into a lot of code on > >the web that exhibits a se

[PHP] warning & question about mysql sessions & concurrency

2005-03-05 Thread Josh Whiting
cenario be warned! I'm surprised so much bad code is going around for this task... Many thanks in advance, Josh Whiting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Search Engine Friendly URLs

2005-01-15 Thread Josh
I am converting a site to use includes instead of a Dreamweaver template. I want the URLs to look like this: www.my-site1234.com/contact instead of www.my-site1234.com/default.php?p=contact. I found some tutorials on editing the .htaccess file but where do I find it on the server? -- PHP Genera

Re: [PHP] Preventing execution without inclusion

2005-01-14 Thread Josh Whiting
> as per PHP5 example > > 1 (the preferred way): user accesses > http://www.example.org/index.php?function=Join, this loads the class > NewUser and begins its implementation. Because of the __autoload, it > includes class.join.php, in order to utilize the class. > > 2 (the wrong way): user acc

Re: [PHP] On large application organization [long and possibly boring]

2005-01-08 Thread Josh Whiting
> Josh, I am interested in what you mean by "but there may be a better > overall approach." (which was in reference to my original question which was: why are you using a big switch?) The reason I say that is because, though I'm no expert on application design, in my own

Re: [PHP] Persistent PHP web application?

2005-01-08 Thread Josh Whiting
On Thu, Jan 06, 2005 at 08:41:57PM -0500, Jason Barnett wrote: > >Does "not up to date" mean the code isn't working with current releases > >of php 4 or 5? I'd be interested in giving it a try. > > I believe this is the case. AFAIK the APC library doesn't support PHP5 > or at least it didn't when

Re: [PHP] Persistent PHP web application?

2005-01-07 Thread Josh Whiting
> > Call me crazy or ignorant, i'm both, but would it be possible to build > > an extension that, in its MINIT hook as you suggest, actually runs a > > separate PHP script that contains global definitions, then makes those > > definitions available to later scripts? this is basically my original >

Re: [PHP] On large application organization [long and possibly boring]

2005-01-07 Thread Josh Whiting
> If I have a large app what is the difference, other than having a very > large file, of doing this > > switch($action){ > /* several dozen cases to follow */ > case "foo": > writing out all of the code > break; > } > > and this > > switch($action){ > /* se

Re: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] SELECT probrem

2005-01-06 Thread Josh Whiting
> Hello Phpu, > > Thursday, January 6, 2005, 10:42:15 AM, you wrote: > > P> I have an array, for ex: $products=array(1, 2, 5 , 7) > P> I want to select all products from the database that has the ids of > products. > P> I use this but doesn't work: > > $product_ids = implode(',', $products); >

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Josh Whiting
> I think I understand where you're coming from. I've had a similar > problem and the best solution I've found is eAccelerator (previously > known as Turck MMCache). What EA does is keep the bytecodes PHP compiles > inshared memory so next time you need that script PHP doesn't need to > recompi

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Josh Whiting
> Anything you do in the MINIT hook is basically free, so it would be > trivial to load the data for the array from somewhere. Like a database, > an xml file, etc. So you wouldn't need to hardcode a complex array > structure in your MINIT hook, just have this generic little extension > that c

Re: [PHP] apache 1 vs 2 w/php

2005-01-05 Thread Josh Whiting
> I am undecided whether to upgrade to apache 2 (currently running 1.3.33) > I've heard some bad stuff (some good maybe) about using apache 2 with php.. > does anyone have an opinions? a somewhat interesting discussion on the subject was recently on slashdot, i suggest reading at least the blog en

Re: [PHP] Re: Persistent PHP web application?

2005-01-04 Thread Josh Whiting
t throw more loadbalanced servers at the application rather than cut the application init time with a solution like this... or at least that is how I'm starting to see it. Not to say you're suggestions are in vain, if anything they're helping me to see the bigger picture. Regards, /josh w. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Persistent PHP web application?

2005-01-04 Thread Josh Whiting
ut together a summary. Incidentally I did end up doing some comparison of cached code and uncached code because I unwittingly had the accelerator turned off for while until I realized it :) > Hope that helps... Almost feel like I ought to invoice you at this point :-) :) Thanks for the pro bono consulting, you have indeed helped! Regards, /josh w. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Persistent PHP web application?

2005-01-04 Thread Josh Whiting
/implementation of the suggestion? Any good links/tutorials/examples/books for this? Thanks! /josh w. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Persistent PHP web application?

2005-01-04 Thread Josh Whiting
in. It is encouraging to hear that it is easier than I expect, and I will look into it further. Based on the responses from the list I've gotten, this seems like the most promising "total" solution. Any outstanding books/articles on the topic, considering I'm not a C programmer? Thanks again /josh w. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Total Server Sessions

2005-01-03 Thread Josh Whiting
> $num_sessions = count(glob(session_save_path() . '/sess_*')); > echo "There are about {$num_sessions} active sessions."; > > It will be fairly active so long as your garbage collection is triggered > fairly often. it is worth noting that this doesn't work if you are using the recursive directo

[PHP] Persistent PHP web application?

2005-01-03 Thread Josh Whiting
Dear list, My web application (an online classifieds server) requires a set of fairly large global arrays which contain vital information that most all the page scripts rely upon for information such as the category list, which fields belong to each category, and so on. Additionally, there are a l

[PHP] Uncompressing files on server

2004-12-19 Thread Josh
I have some PHP files from a content management system. I uploaded the compressed files to the server, but how do I un-compress them now? I am using Filezilla. Can it be done, or do I have to uncompress the file on my computer and then upload? thanks -- PHP General Mailing List (http://www.ph

[PHP] Miami PHP groups?

2004-12-16 Thread Josh
Any computer groups or resources for learning PHP in the Miami area? I am new here ... trying to learn PHP... would like to meet other people doing the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread Josh
$70 for a domain name registration? A domain name only costs $6 or $7 US dollars per year... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 5 to PHP4 - Apache2Triad

2004-12-13 Thread Josh
I installed PHP5 with MySQL and Apace 2, along with a lot of other stuff as part of Apache2Triad. But I want to replace PHP5 with PHP4 because some of the things I am testing on my computer require PHP4. Can anyone tell me how to do this or where I can find information on how to do it? I thought

[PHP] user password managment

2004-12-10 Thread Josh Howe
Does anybody have any tips or links for creating a system for managing user's passwords. I want to make it so that when a user is created, an email is sent with a link that allows them to set their password. The link should only work for a set amount of time. I have ideas for implementing someth

[PHP] session question

2004-12-07 Thread Josh Howe
Hi, I've looked at the php session documentation, and it doesn't look like there's any way to run code when a session expires. I'd like to do some cleanup when a user's session expires, is there any way to trap this? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] getting the phsyical path

2004-12-03 Thread Josh Howe
Hi, Sorry if this is a dumb question. Is there a way in php to get the physical path the document root of my website? I want to open a file in the root of my web server, i.e. "/", but I won't always know what the physical path to the web root is, and it will vary depending on the machine the

[PHP] classes and variable scope

2004-12-01 Thread Josh Howe
Hi all, If I have the following code: $some_global_variable; Class foo { Function test() { set_global(); echo $some_global_variable; } Function set_global () { $some_global_variable = "abcd"; echo $some_global_variable; } } The first echo state

[PHP] bubble sort crashing apache

2004-11-16 Thread Josh Howe
I've implemented my own bubble sort function that is crashing apache. Can somebody either help me out with the bubble sort or help me figure out a way to solve my problem with php's built in sorting functions? This is my problem. I'm writing my own class for displaying html tables. Right now, the

RE: [PHP] http response

2004-11-13 Thread Josh Howe
That's perfect, thanks Rob. -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, November 13, 2004 10:48 AM To: Josh Howe Cc: PHP-General Subject: Re: [PHP] http response On Sat, 2004-11-13 at 10:38, Josh Howe wrote: > > Is it possible in p

[PHP] http response

2004-11-13 Thread Josh Howe
Is it possible in php to get a hold of the response stream and see what has been sent already? I have a global php function, but it can't be called inside html elements, because it creates its own form, and when you nest html forms things get weird. In this function, I want to check if there is

RE: [PHP] Re: sending mail -- nullmailer

2004-10-08 Thread Josh Howe
hanks -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 12:59 PM To: Josh Howe Cc: [EMAIL PROTECTED] Subject: [PHP] Re: sending mail -- nullmailer Hello, On 10/08/2004 01:35 PM, Josh Howe wrote: > Ok, so I came across nullmailer, which seems to do exac

[PHP] sending mail -- nullmailer

2004-10-08 Thread Josh Howe
Ok, so I came across nullmailer, which seems to do exactly what I want - forward mail to an existing smtp server. But it isn't working. I'm using the mail() php function, and the mails aren't arriving. The same code works fine on a windows machine pointing to the same smtp server. Does anybody h

RE: [PHP] sending mail

2004-10-07 Thread Josh Howe
I'm sorry, I don't know what and MTA is. Can I configure PHP to use any smtp server? -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 5:58 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] sending mail > > > Do I need to have sendmail configur

[PHP] sending mail

2004-10-07 Thread Josh Howe
Do I need to have sendmail configured on my linux box to send mail via PHP? Thanks!

Re: [PHP] mail() from addess problems

2004-09-07 Thread Josh Close
Thanks. -Josh On Tue, 07 Sep 2004 16:55:24 -0500, Greg Donald <[EMAIL PROTECTED]> wrote: > > > On Tue, 2004-09-07 at 16:52, Josh Close wrote: > > When I'm using mail() to send an email, the user is always > > > > From: "Apache" <[EMAIL PR

[PHP] mail() from addess problems

2004-09-07 Thread Josh Close
When I'm using mail() to send an email, the user is always From: "Apache" <[EMAIL PROTECTED]> How would I get this to change? I didn't see anything in php.ini or httpd.conf. I've found it's not possible to do a header rewrite with postfix either. -Josh

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
I'll do something similar to this. I don't want to have to turn short tags off :P -Josh On Wed, 1 Sep 2004 12:21:29 -0700, Michal Migurski <[EMAIL PROTECTED]> wrote: > > > > How do I get an xml tag to work with a php script? > > > > > > > &

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
I was hoping there was another way around it. if not, I could do that I guess. -Josh On Wed, 1 Sep 2004 14:06:18 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > The simplest answer is to either turn off short tags or change the short tag > which php uses. > > Yo

[PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
How do I get an xml tag to work with a php script? php is trying to parse that. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: writing source code to file

2004-08-17 Thread Josh Acecool M
file_get_contents("http://www.yoursite.com/script.php";); using http:// causes it to get the html source. "Hannes Magnusson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.php.net/manual/en/ref.outcontrol.php > > On Mon, 16 Aug 2004 10:35:42 -0400 > [EMAIL PROTECTED] (Dou

Re: [PHP] System Tray Icon

2004-08-16 Thread Josh Acecool M
Hmm, Simply make a RSS feed or something, md5 the last changed date of all files combined every say 30 mins and put that in the rss file, have the systray icon program look at that file every 5 mins or so, if the file has changed, flash.. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMA

[PHP] base64_decode an image, works on blank page, not on page where text is..

2004-08-09 Thread Josh Acecool M
If I try to base64_decode an image which was encoded with base64_encode on a blank page, it works, if I try on a page with stuff already on it, it just shows me the source code to the image... Example: Run this code as a blank page, no spaces before or after the PS: phpBB2 somehow got it to wor

Re: [PHP] Local version works - production breaks [SOLVED]

2004-08-08 Thread Josh Acecool M
Glad to hear turning reg globals off made it work :-) I had suspected that because people often use the same variables for different things and with globals on, well it can overwrite other vars. "Josh Acecool M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Try adding if (!function_exists("function_name")) { function function_name ($blah) { // Function Code } } for each function. That will fix the redeclare problem which happens if you call your cards.php file in more than 1 file.. "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
MAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh, > > Aside from the differences in php versions, the only difference is thta the > local version has register_globals=off. > > I'm really stumped. > > Andre > > On Sunday 08 August 2004 06:07 am, J

[PHP] Re: Security Code w/o Image PHP

2004-08-07 Thread Josh Acecool M
You could make a few randomly named images (more = better security but wont be very secure since the names can be put in a spam bot...) make them show up, each name has a specific number etc... "Eugene Voznesensky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How to generate and ch

[PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Did you check the phpinfo on each server, make sure your server settings are same as local? "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have re-written a very basic website to use sessions (switching to https) > for login to special areas of a site. After

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 3:10 AM Subject: IMPORTANT: Please Verify Your Message > >

[PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Josh Acecool M
Stop E-Mailing me. http://www.acecoolco.com/legal.php - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 06, 2004 2:10 AM Subject: IMPORTANT: Please Verify Your Message > > > > > Verify Email > > > > > Hello [EMAIL PROTECTED] , > > [EMAIL P

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-06 Thread Josh Acecool M
I dont have magic_quotes etc on, so when I use file_get_contents the EXACT, yes, EXACT file gets placed. "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Josh Acecool M: > > You dont understan.. > > Not anymore. Honestly I ha

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
ews:[EMAIL PROTECTED] > * Thus wrote Josh Acecool M: > > > > but, I am doing this. > > > > $text = file_get_contents('templateFile.php'); > > $text = preg_replace('/something/', file_get_contents("something.php"), > > $text); >

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
_get_contents('templateFile.php'); $text = preg_replace('/something/', file_get_contents("something.php"), $text); eval("?>" . $text . " wrote in message news:[EMAIL PROTECTED] > On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M > <[EMAIL PROT

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text you want to replace gets deleted and the INCLUDE includes on the top of the page... "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 5 Aug 2004 09:51:10 -0

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
from the included file wont get parsed or anything, and the variables set to it by the first file, or the class dont work at all. "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > >>> var $The_Template_Sys; > &

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread Josh Acecool M
Any ideas? "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > > var $The_Template_Sys; > > > > $this -> The_Template_Sys = file_get_contents("$The_Template_File"); > > > > $this -&g

[PHP] Re: [tcphp] alternating highlights

2004-08-03 Thread Josh Close
This is very simple actually That was very quick, but I hope it helps. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Another note: I code for globals off. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M > <[EMAIL PROTECTED]> wrote: > > It has a preg_match in there that looks for \$variable = bla

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
supposed to me.) And using buffer is 8x slower than eval. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 3 Aug 2004 12:11:02 -0700, Josh Acecool M > <[EMAIL PROTECTED]> wrote: > > It has a preg_match in there that looks for

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
Also, variables do not get passed correctly from the engine to the evaluated pages. "Josh Acecool M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It has a preg_match in there that looks for \$variable = blah; > > I cant help that a file works without

Re: [PHP] javascript type cast OT

2004-08-03 Thread Josh Close
On Tue, 3 Aug 2004 15:30:20 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following tid-bit > of information : > > However there is a difference between list courtesy and blatant > > aggression. I understand that there are going to be mo

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
gt; Don't make things worse by whining. Not trying to whine for you. I was just surprised that people would take several hours out of their day to complain about this, instead of just saying it's OT and to not post OT. I won't happen ag

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-03 Thread Josh Acecool M
It has a preg_match in there that looks for \$variable = blah; I cant help that a file works without Eval, and then to eval it, it messes it up... "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > > var $The_Te

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
I have to say is, sorry I asked. I really wasn't worth it. -Josh On Tue, 03 Aug 2004 13:09:19 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > I have been on a number of lists over the years, as what ever technology > I'm using at the time has demanded. > > I would h

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Wow, no need to be an ass. I just wanted a little help and this list is usually pretty friendly and willing to help. but I guess not. On Wed, 4 Aug 2004 01:01:47 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Wednesday 04 August 2004 00:38, Josh Close wrote: > > Yes, but

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Yes, but most php users do some web programming and might have come across this before. -Josh On Tue, 3 Aug 2004 12:34:40 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 12:28, Josh Close wrote: > > P.S. I'm doing this in a php page... that&#

[PHP] Re: javascript type cast

2004-08-03 Thread Josh Close
...I found you can do var*1 to get it to type cast. Thanks. -Josh On Tue, 3 Aug 2004 11:28:16 -0500, Josh Close <[EMAIL PROTECTED]> wrote: > Is there any way to do a typecast in javascript? I know you can in > 2.0, but that won't work here. > > I have an input fi

[PHP] javascript type cast

2004-08-03 Thread Josh Close
added to one, but it just concatenates it instead. How can I add (or sum) the two values? P.S. I'm doing this in a php page... that's why I'm asking here. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple checkboxes

2004-08-02 Thread Josh Close
me for all checkboxes in the name field? -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] freeTDS

2004-07-27 Thread Josh Close
Well, they're going to have to install php with mssql support also ./configure --with-mssql --with-freetds there are examples in the freetds.conf file of what you need to do. Basically just telling it where to connect. -Josh On Tue, 27 Jul 2004 16:49:37 -0400, John Nichel <[EMAIL P

Re: [PHP] Re: how to use session?

2004-07-21 Thread Josh Close
y sent > (output > > > started at c:\inetpub\wwwroot\diary\index.php:7) in > > > c:\inetpub\wwwroot\diary\reg_session.php on line 11 > > > > > > > > > If I don't want to use session cookie , how to set it? > > > thanks. > > >

Re: [PHP] Re: Book Required

2004-07-17 Thread Josh Close
; much of the PHP chapters actually made it in the final manuscript. > > > > -- > Lester Caine > - > L.S.Caine Electronic Services > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
That sounds about right. It pretty much described the behavior between the two versions. Thanks for the info. On Tue, 13 Jul 2004 18:44:06 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > * Thus wrote Josh Close: > >> if($var) > >> > &

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
That sounds about right. It pretty much described the behavior between the two versions. Thanks for the info. On Tue, 13 Jul 2004 18:44:06 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > * Thus wrote Josh Close: > >> if($var) > >> > &

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
ecking the value of a variable has changed. > > > > ex: > > > > if($var){ /* do something */ } > > > > doesn't work anymore. I've had to change code to > > > > if($var > 0) > > > > but the problem is, what if $var was converted to

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I think I'll just have to typecast everything, that should always work then. On Tue, 13 Jul 2004 15:47:40 -0400, Adam Bregenzer <[EMAIL PROTECTED]> wrote: > On Tue, 2004-07-13 at 15:35, Josh Close wrote: > > The problem is, if 0 gets changed to "0" somewhere t

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
intless 'cause it doesn't matter. I just want to know if the value != 0. The problem is, if 0 gets changed to "0" somewhere throughout. That's why I've always used if($var) because it's usually not cared what the type is, but it seems to now. On Tue, 13 Jul 2004

[PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
quot;0" instead of $var = 0 somewhere throughout the code that I didn't know about? Is there a way to be sure what's going on here? -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] warning: function registration failed

2004-07-12 Thread Josh Close
How do I fix this? Is it because gentoo now has both the mssql and freetds flags? -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Malicious SQL

2004-07-07 Thread Josh Close
It may escape a quote, but injections would still be possible in other ways. It gets passed in as \' but then used normally as ' when it's the the variable. -Josh On Wed, 7 Jul 2004 10:31:17 -0700, Brian Dunning <[EMAIL PROTECTED]> wrote: > I have a question abou

Re: [PHP] post without

2004-07-07 Thread Josh Close
o the next page, then that page will return to the $return_url. I think passing via $_SESSION vars or cookies would be easier then doing actual socket posts. If there is an easier way than session or cookies to do this, I'd like to know. -Josh On Wed, 07 Jul 2004 09:55:56 -0400, Jason Pasch

  1   2   3   >