Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Josh Kehn
, -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
- Considering you can brute force the entire keyspace for Triple DES in under a few hours (without specialized equipment) I don't think it would take long. Granted, I'm not an encryption expert. I look forward to hearing more. Thanks, -Josh Joshua Kehn | josh.k

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 way too much time. ;-) -- PHP

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Josh Kehn
them for the single quotes) and when I need to output control characters like \r or \n. It would be considered best practice to make consistent use of them, but it wouldn't be something I would loose sleep over. Regards, -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] the state of the PHP community

2010-07-29 Thread Josh Kehn
, visit: http://www.php.net/unsub.php Regards, -Josh

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

2007-11-12 Thread Josh McDowell
in it 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 General Mailing List

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 'G

[PHP] Uploading a file

2005-09-06 Thread Josh
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

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

[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

Re: [PHP] Meta HTTP refresh problem

2005-03-25 Thread Josh Whiting
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 instead of showing output as the result of a POST action). HTH /josh w

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 extension? I

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))) { ... } not the most elegant looking but it gets the job done. /josh w -- PHP General Mailing List (http

Re: [PHP] Re: Getting the process ID

2005-03-24 Thread Josh Whiting
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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 INPUT NAME = \kcompany[]\ TYPE = \hidden\ VALUE=\$var\; Then unserialize the variable on the receiving page. To this you might also add an MD5 hash to check for authenticity, depending on

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

Re: [PHP] warning question about mysql sessions concurrency

2005-03-16 Thread Josh Whiting
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 reading the

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 transaction

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 tables using ENGINE=innoDB (in older

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 serious flaw regarding concurrent requests

[PHP] warning question about mysql sessions concurrency

2005-03-05 Thread Josh Whiting
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

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 accesses

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 I looked

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 code I've found

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){ /* several dozen

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 desire

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

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 recompile,

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); $sql =

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

Re: [PHP] Persistent PHP web application?

2005-01-04 Thread Josh Whiting
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] Re: Persistent PHP web application?

2005-01-04 Thread Josh Whiting
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
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
. Regards, /josh w. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

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 directory

[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

[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

[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

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] 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

[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,

[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

[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,

[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 form elements, because it creates its own form, and when you nest html forms things get weird. In this function, I want to check if

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 php to get

[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

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

2004-10-08 Thread Josh Howe
-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 exactly what

[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] 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 configured

[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 -- PHP General Mailing List (http

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 PROTECTED] How would I get this to change? I didn't see anything

[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? ?xml version=1.0? php is trying to parse that. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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. You can do either by editing

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? ?xml version=1.0? php is trying to parse that. ?= ''.'?xml

[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] (Doug Parker)

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:[EMAIL

[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 ? then run it again with a space

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] That might be something

[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: 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 check

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

2004-08-07 Thread Josh Acecool M
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, Josh Acecool M wrote: Did you check the phpinfo on each server, make sure your server

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

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 haven't had a clue what was going on till

[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 html head meta http-equiv=Content-Type content=text/html;

[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 html

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; $this - The_Template_Sys = file_get_contents

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 -0700, Josh Acecool M [EMAIL

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
= preg_replace('/something/', file_get_contents(something.php), $text); eval(? . $text . ?) Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M [EMAIL PROTECTED] wrote: 5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE

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
You dont understan.. Say the template is: Blah {CONTENT} adasdasd I want to preg_replace(/{CONTENT}/, include(blah.php), $text); blah.php contains Hello! This is what appears Hello! Blah adasdasd Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh

[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 - Sub_Template = TRUE; Please respond to the list and not me personally. you say

[PHP] javascript type cast

2004-08-03 Thread Josh Close
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] 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 field and I need to add a number

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's why I'm asking here

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 most php users do

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
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 have to say that this list is one of the most curt

[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_Template_Sys; $this - The_Template_Sys

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
. 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 again, so you can stop whining. -Josh alex hogan

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 more

[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 Eval, and then to eval

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 \$variable = blah; I cant help

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 = blah; I cant help that a file works without

[PHP] Re: [tcphp] alternating highlights

2004-08-03 Thread Josh Close
?=$field1?/td /tr ? $flag = 0; } } ? 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

[PHP] multiple checkboxes

2004-08-02 Thread Josh Close
but then submitting them I only get the last value check. ? print_r($_POST); ? How would I get all the boxes check when grouping them by using the same name for all checkboxes in the name field? -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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 PROTECTED

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

2004-07-21 Thread Josh Close
comments in the manual and search the mailing list archives. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Book Required

2004-07-17 Thread Josh Close
- L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
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

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
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 19:39:09 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Josh Close

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 throughout. That's why I've always used

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
to if($var 0) but the problem is, what if $var was converted to $var = 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 What about the isset function? Or any of the following: http://us3.php.net

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) used to work for if($var != 0) or 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) used to work for if($var != 0) or if($var

[PHP] warning: function registration failed

2004-07-12 Thread Josh Close
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

[PHP] PHP / Email / ActionScript

2004-07-07 Thread Josh Eastgate
Hi, I have made a shopping kart for a web site, in flash...and I have it so when the shopping kart is submitted...all the order details (variables) are sent to a PHP file that sends the order to the businesses email. My main problem is with the PHP file. I dont know how to use IF THEN ELSE

[PHP] post without form

2004-07-07 Thread Josh Close
How can I post data without having it submitted from within a form? With get I can just add it to the url. Is there a php function for this? -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >