[PHP] Re: retrieve multiple select

2009-03-02 Thread Shawn McKenzie
PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option OPTION

[PHP] Re: retrieve multiple select

2009-03-02 Thread Shawn McKenzie
Shawn McKenzie wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option

Re: [PHP] retrieve multiple select

2009-03-02 Thread Shawn McKenzie
PJ wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option OPTION

Re: [PHP] retrieve multiple select

2009-03-02 Thread Shawn McKenzie
Michael A. Peters wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option

Re: [PHP] retrieve multiple select

2009-03-02 Thread Shawn McKenzie
Shawn McKenzie wrote: Michael A. Peters wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose

Re: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Shawn McKenzie
Nitsan Bin-Nun wrote: I have just been wondering for the 20 zillion time why does people always stick together 20 and zillion? you can't just use zillion times? is that not enough for you? Actually, instead of 20 zillion I would say 2 bazillion, or .2 gazillion. Now if I really wanted to

[PHP] vcl for php / delphi for php

2009-03-02 Thread Shawn McKenzie
Anyone ever used these? I've run across them in the past when searching and just saw them again today when I was searching for some stuff. The vcl for php framework lacks any kind of good docs/tutorial and the IDE looks like it is replicating a .net approach by using PHP/AJAX in the vcl stuff

Re: [PHP] retrieve multiple select

2009-03-02 Thread Shawn McKenzie
PJ wrote: Shawn McKenzie wrote: PJ wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose

Re: [PHP] Re: use strict or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Robert Cummings wrote: On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: --- Use FreeOpenSourceSoftwares, Stop

Re: [PHP] Re: use strict or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Stuart wrote: 2009/2/28 Shawn McKenzie nos...@mckenzies.net Robert Cummings wrote: On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: On Sat, 2009-02-28 at 00:02 +0600, 9el wrote

Re: [PHP] Re: use strict or similar in PHP?

2009-02-28 Thread Shawn McKenzie
Stuart wrote: 2009/3/1 Shawn McKenzie nos...@mckenzies.net Stuart wrote: 2009/2/28 Shawn McKenzie nos...@mckenzies.net Robert Cummings wrote: On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: On Sat, 2009-02-28 at 00:02

[PHP] Re: compiling php with libjpg64

2009-02-27 Thread Shawn McKenzie
Merlin Morgenstern wrote: Hi there, I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow it does not recognize the libjpg which is definatelly in place: server:/home/sw/php-5.2.9 # './configure' '--enable-fastcgi' '--with-mysql=/usr/local/mysql'

[PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-02-27 Thread Shawn McKenzie
Stan Stadelman wrote: Hello All: I'm trying to see how Web Edition databases are being used in your company for PHP-driven web-apps. Our strategy team thought that free and community editions would be dominant, but we interviewed Zend Framework developers using Oracle, IBM, Microsoft,

Re: [PHP] Re: compiling php with libjpg64

2009-02-27 Thread Shawn McKenzie
Ashley Sheridan wrote: On Fri, 2009-02-27 at 12:43 -0600, Shawn McKenzie wrote: Merlin Morgenstern wrote: Hi there, I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow it does not recognize the libjpg which is definatelly in place: server:/home/sw/php-5.2.9

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Shawn McKenzie
Hans Schultz wrote: Oh, I didn't mentioned that I tried that, I was thinking something like failing at compile time (like perl with use strict in programs)Thanks for reply, Hans --- On Thu, 2/26/09, Lewis Wright lewiswri...@gmail.com wrote: From: Lewis Wright lewiswri...@gmail.com

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Shawn McKenzie
Hans Schultz wrote: Thanks a lot for your info, I will check that IDE too. But those warning levels give me warning only when they encounter offending code? Are you telling me that it can be setup to fail entire script prior to any execution if there are errors in it? Can you please point me

Re: [PHP] Re: catch the error

2009-02-26 Thread Shawn McKenzie
Boyd, Todd M. wrote: Jesus Christ... everyone on this list must've had a long week, because you guys are going blind. :D In examples sent to you, people foolishly replaced your $db var with $db_connect ONLY FOR PART OF THE SCRIPT. You've defined your database connection as $db_connect in

[PHP] Re: verify text in field

2009-02-26 Thread Shawn McKenzie
PJ wrote: Is there a shorter way of determining if a field contains text? This works but I wonder if I can K.I.S.S. it? I really only need to know if there is or is not a field containing the text specified. I don't need to see it. ?php // Request the text $text = Joe of Egypt;

[PHP] Re: verify text in field

2009-02-26 Thread Shawn McKenzie
Shawn McKenzie wrote: PJ wrote: Is there a shorter way of determining if a field contains text? This works but I wonder if I can K.I.S.S. it? I really only need to know if there is or is not a field containing the text specified. I don't need to see it. ?php // Request the text

[PHP] Re: How do I remove an array element from within a recursive function?

2009-02-26 Thread Shawn McKenzie
Daevid Vincent wrote: I'm trying to remove [menu] == 'Login' from the array, but despite finding the element, it never removes. isn't that what the reference stuff is for? Yes, but foreach can't modify an array unless you use a reference in the foreach also. Try this: foreach($menuItems as

[PHP] Re: How do I remove an array element from within a recursive function?

2009-02-26 Thread Shawn McKenzie
Shawn McKenzie wrote: Daevid Vincent wrote: I'm trying to remove [menu] == 'Login' from the array, but despite finding the element, it never removes. isn't that what the reference stuff is for? Yes, but foreach can't modify an array unless you use a reference in the foreach also. Try

Re: [PHP] Is eAccelerator causing these memory leaks?

2009-02-25 Thread Shawn McKenzie
jpmad4it wrote: Hi everyone, I've installed eAccelerator 0.9.5.3 for PHP (installed as an Apache module). I have noticed that when I use my TYPO3 application, I am getting memory leak errors in Apache's error log. These errors only appear after I restart Apache, and not whilst I am

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Alice Wei wrote: Hi, I have a code as in the following: ?php $file = test.txt; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); if ((preg_match(/0/,$data)) || (preg_match(/\\s\/,$data)) || (preg_match(/\\s\/,$data))) {

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Alice Wei wrote: Hi, I have a code as in the following: ?php $file = test.txt; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); if ((preg_match(/0/,$data)) || (preg_match(/\\s\/,$data)) || (preg_match

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: Alice Wei wrote: Hi, I have a code as in the following: ?php $file = test.txt; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); if ((preg_match(/0/,$data)) || (preg_match(/\\s\/,$data

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-24 Thread Shawn McKenzie
Jochem Maas wrote: I read that you already got your script performance up, but I'd still like to suggest that you shouldn't be reading in a complete 18Mb file (especially given that you don't know in advance whether some day(s) this size might be much larger). instead you should be opening

Re: [PHP] Re: multiple choice dropdown box puzzle

2009-02-23 Thread Shawn McKenzie
Bob McConnell wrote: From: PJ Here's my test page and, so far, nothing works... Please expound on nothing works What do you see in the browser? What do you see in the server logs? ? I strongly recommend changing all of these to ?php per the XHTML specs. That will reduce the

[PHP] Re: File Write Operation Slows to a Crawl....

2009-02-23 Thread Shawn McKenzie
fschnit...@execulink.com wrote: Hi: Newbie here. This is my first attempt at PHP scripting. I'm trying to find an alternative to Lotus Domino's domlog.nsf for logging web transactions. Domino does create an Apache compatible text file of the web transactions, and this is what I’m trying to

[PHP] Re: File Write Operation Slows to a Crawl....

2009-02-23 Thread Shawn McKenzie
Shawn McKenzie wrote: fschnit...@execulink.com wrote: Hi: Newbie here. This is my first attempt at PHP scripting. I'm trying to find an alternative to Lotus Domino's domlog.nsf for logging web transactions. Domino does create an Apache compatible text file of the web transactions

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread Shawn McKenzie
fschnit...@execulink.com wrote: Thanks Paul and Shawn: I can't answer the Why's in your posts, as this is literally my first attempt at PHP, but I will investigate your response and refine my code accordingly. What I did find is that by replacing the following code: $fhandle =

[PHP] Re: adding whitespace to a timestamp

2009-02-21 Thread Shawn McKenzie
Eric Sherman wrote: I hoping to add a space between the date and the time in this: $thedate = date('M jS g:i A', $postTIME); i.e, between* jS* and *g:i* I've looked around but can't find anything. Thanks Eric Sherman Multi Media Information There is already a space there! --

Re: [PHP] Accessors

2009-02-19 Thread Shawn McKenzie
Also, i know php is an interpreted language. But wouldn't it be possible to write a virtual machine for php and compile byte code... I know, php is not Java or Actionscript :-P but it could be an add on feature. i guess the eval wouldn't work then would it? Although eval could still be

Re: [PHP] Re: Secure File Paths, File System - (simplified question)

2009-02-19 Thread Shawn McKenzie
Daniel Kolbo wrote: Shawn McKenzie wrote: Daniel Kolbo wrote: Hello PHPers, I am quite ignorant about file system security. I was hoping you all could help me understand things. How does one restrict php script from going (reading, writing) files in the file system? As I see

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-18 Thread Shawn McKenzie
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote: Robert Cummings wrote: I think what you all are missing is that physics is just a framework for reality. I think you are missing that reality is just a

Re: [PHP] function array problem

2009-02-18 Thread Shawn McKenzie
Thodoris wrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' = '', 'errors' = Array())) { // code here displays the form } The function is used

Re: [PHP] Full versus relative URLs

2009-02-18 Thread Shawn McKenzie
PJ wrote: Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Dotan Cohen wrote: So put it all in one place: ?php include path.inc; printa href=\$path/dir/file.php\; ? Full URLs don't break when users

Re: [PHP] Which file Included me?

2009-02-18 Thread Shawn McKenzie
Michael A. Peters wrote: Ed Curtis wrote: Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript

Re: [PHP] Which file Included me?

2009-02-18 Thread Shawn McKenzie
Dotan Cohen wrote: http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean) I do not understand the exploit. How is he spoofing any $_SERVER variables? The attack description doesn't make

Re: [PHP] Which file Included me?

2009-02-18 Thread Shawn McKenzie
Michael A. Peters wrote: Dotan Cohen wrote: http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean) I do not understand the exploit. How is he spoofing any $_SERVER variables? The attack

[PHP] Re: Secure File Paths, File System

2009-02-18 Thread Shawn McKenzie
Daniel Kolbo wrote: Hello PHPers, I am quite ignorant about file system security. I was hoping you all could help me understand things. How does one restrict php script from going (reading, writing) files in the file system? As I see it, a php programmer could change the include_path,

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Shawn McKenzie
Virgilio Quilario wrote: Recently we had some serious discussion on local boards. I prefer calling PHP as Web Framework of C and C++ if you had a time for this fruitless discussion. Please send your opinions. PHP is a server side scripting language for the Web using a C like language

Re: [PHP] Opinions Please, Describing PHP as Web Framework of Cand C++

2009-02-17 Thread Shawn McKenzie
Robert Cummings wrote: On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: Virgilio Quilario wrote: Recently we had some serious discussion on local boards.

Re: [PHP] function array problem

2009-02-17 Thread Shawn McKenzie
Andrew Ballard wrote: On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've had a bit of a problem with a function I'm using for a form. Essentially, the function looks like this: function addEvent($values = Array('name' = '', 'venue' = '', 'description' =

Re: [PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-16 Thread Shawn McKenzie
tedd wrote: At 9:56 AM +0100 2/16/09, Jochem Maas wrote: for any reasonable number of items my tests show tedd's version pisses on McKenzies from a great height (note that I actually optimized Mckenzies variant by halfing the number of calls to strtotime()). ROTFLOL. -- I seldom say

[PHP] Re: Sorting times (SOLVED before tedds crappy SOLVED)

2009-02-15 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: tedd wrote: Hi gang: Anyone have/know a routine that will sort an array of times? For example, a function that would take an array like this: time[0] ~ '1:30pm' time[1] ~ '7:30am' time[2] ~ '12:30pm' and order it to: time[0] ~ '7:30am

Re: [PHP] Sorting times (SOLVED)

2009-02-15 Thread Shawn McKenzie
tedd wrote: At 9:31 PM -0600 2/14/09, Shawn McKenzie wrote: Yeah, hif I had known that you wanted a function where you loop through your array twice, that would have done it. Bravo. Shawn: I don't see another way. You go through the array converting string to time (seconds), sort

[PHP] Re: Sorting times

2009-02-14 Thread Shawn McKenzie
tedd wrote: Hi gang: Anyone have/know a routine that will sort an array of times? For example, a function that would take an array like this: time[0] ~ '1:30pm' time[1] ~ '7:30am' time[2] ~ '12:30pm' and order it to: time[0] ~ '7:30am' time[1] ~ '12:30pm' time[2] ~ '1:30pm'

Re: [PHP] Sorting times

2009-02-14 Thread Shawn McKenzie
John Corry wrote: 1. convert the string representation of times to timestamps using strtotime() 2. sort the timestamps 3. display the timestamps as strings using date('format', timestamp) Would that work? John Corry email: jco...@gmail.com On Feb 14, 2009, at 4:07 PM, tedd

[PHP] Re: Sorting times

2009-02-14 Thread Shawn McKenzie
Shawn McKenzie wrote: tedd wrote: Hi gang: Anyone have/know a routine that will sort an array of times? For example, a function that would take an array like this: time[0] ~ '1:30pm' time[1] ~ '7:30am' time[2] ~ '12:30pm' and order it to: time[0] ~ '7:30am' time[1] ~ '12:30pm' time

Re: [PHP] Sorting times (SOLVED)

2009-02-14 Thread Shawn McKenzie
tedd wrote: At 4:15 PM -0500 2/14/09, John Corry wrote: 1. convert the string representation of times to timestamps using strtotime() 2. sort the timestamps 3. display the timestamps as strings using date('format', timestamp) Would that work? John Corry email: jco...@gmail.com John:

[PHP] Re: Simple open source CMS as a starting point

2009-02-13 Thread Shawn McKenzie
dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on it. It would be of great help if it

[PHP] Re: Help with MySQL

2009-02-13 Thread Shawn McKenzie
James Colannino wrote: Hey everyone. I've been reading the list for a long time, but have only really posted to the mailing list a few times. I just had a quick question about MySQL. I'm not sure if this is exactly relevant to PHP, but it is for a PHP application I'm writing, so hopefully

Re: [PHP] list all constitute group of array ?

2009-02-13 Thread Shawn McKenzie
Robert Cummings wrote: On Sat, 2009-02-14 at 07:41 +0800, LKSunny wrote: ? $a = array(a, b, c, d); /* how to list: abcd abc ab ac ad bcd bc bd cd a b c d who have idea ? thank you very much !! */ ? This looks like homework. Use recursion. Cheers, Rob. Well, I don't

Re: [PHP] list all constitute group of array ?

2009-02-13 Thread Shawn McKenzie
Shawn McKenzie wrote: Robert Cummings wrote: On Sat, 2009-02-14 at 07:41 +0800, LKSunny wrote: ? $a = array(a, b, c, d); /* how to list: abcd abc ab ac ad bcd bc bd cd a b c d who have idea ? thank you very much !! */ ? This looks like homework. Use recursion. Cheers

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Shawn McKenzie
惠新宸 wrote: Jochem Maas wrote: Clancy schreef: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0)

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Shawn McKenzie
Michael A. Peters wrote: Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web interface to change settings, store the settings

Re: [PHP] error on usingjar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Shawn McKenzie
Manupriya wrote: Hi, We are using PHP 5.0, Java Script and Apace HTTP Server. For Mozilla security reason, we have created a signed jar of all the js files being used in our application. We have put this jar in the js folder itself. We have successfully installed the certificate. Now

Re: [PHP] error onusingjar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Shawn McKenzie
file? Thanks, Manu Shawn McKenzie wrote: Manupriya wrote: Hi, We are using PHP 5.0, Java Script and Apace HTTP Server. For Mozilla security reason, we have created a signed jar of all the js files being used in our application. We have put this jar in the js folder itself. We

[PHP] Re: Extract result from a https remote server response

2009-02-12 Thread Shawn McKenzie
m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.comcust_id=123546password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it . An idea ? PS: The server

[PHP] Re: Extract result from a https remote server response

2009-02-12 Thread Shawn McKenzie
Shawn McKenzie wrote: m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.comcust_id=123546password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process

[PHP] Re: webapp to drive/monitor a bunch of system processes

2009-02-11 Thread Shawn McKenzie
bruce wrote: hi... i've got a project (goal) where i'm looking for a webbased app that drives/runs/monitors different linux/system processes. i'm basically looking for different apps that i can look at to get ideas/see their layout/structure. i'm going to have to create a similar app to run

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Shawn McKenzie
Dan Shirah wrote: Alrighty, so I went a different route... I created my own ActiveX DLL...one that I know I can register. Starting out really simple: //My VB code Public Function hello() As String hello = Hello World! End Function //My PHP code ?php function Hello() {

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Shawn McKenzie
Dan Shirah wrote: It doesn't appear that your function accepts a parameter. What does this do: //VB Public Function hello(ByVal name As String) As String hello = Hello name ! End Function //PHP echo $new_com-hello(Dan); -- Thanks! -Shawn http://www.spidean.com Shawn I

Re: [PHP] APC problem with PHP

2009-02-10 Thread Shawn McKenzie
Jamie Krasnoo wrote: Ok, so I removed zend_optimizer and activated apc. Guess what ... no cores produced. So it is zend_optimizer. I searched around the archives and there seems to be a consensus that it really doesn't do much or maybe even not anything at all. So it's gone. I would have

Re: [PHP] Securing suexec PHP against local attacks by the webserveruser

2009-02-09 Thread Shawn McKenzie
Jochem Maas wrote: Andrew schreef: Hi, As an example of the attack... $ whoami www-data isn't the whole point of suexec/PHP/FastCGI that the local user has no access to the www-data account ... suexec switches to the users account from the webserver account not the other way

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
R B wrote: Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i detect with PHP the complete name of the new

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
Shawn McKenzie wrote: R B wrote: Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i detect with PHP

[PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: R B wrote: Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread Shawn McKenzie
R B wrote: I´m looking that i have another problem: I´m making a software to install in any server. The software needs a database, so i want to create a script install.php to create the database when this script is executed. At this point of the instalation, i don´t know none of the

Re: [PHP] PHP usage stats

2009-02-09 Thread Shawn McKenzie
Daniel Brown wrote: On Mon, Feb 9, 2009 at 14:39, Andrew Ballard aball...@gmail.com wrote: For what it's worth, you missed .do, .dll, .exe, and I'm sure others (yes, I've seen web sites running what I assume to be compiled web applications with all of these extensions) as well as anything

[PHP] Re: DOCUMENT_ROOT errors

2009-02-09 Thread Shawn McKenzie
Marc Fromm wrote: I updated fedora core from FC5 to TC6, thus httpd and php were updated in the process. My pages worked with no errors before the upgrade. My php pages are no not displaying and generating this error in the httpd logs PHP Notice: Undefined variable: DOCUMENT_ROOT in

[PHP] Re: DOCUMENT_ROOT errors

2009-02-09 Thread Shawn McKenzie
Shawn McKenzie wrote: Marc Fromm wrote: I updated fedora core from FC5 to TC6, thus httpd and php were updated in the process. My pages worked with no errors before the upgrade. My php pages are no not displaying and generating this error in the httpd logs PHP Notice: Undefined variable

Re: [PHP] Garbage Collection

2009-02-06 Thread Shawn McKenzie
Frank Stanovcak wrote: Boyd, Todd M. tmbo...@ccis.edu wrote in message news:33bde0b2c17eef46acbe00537cf2a19003cb4...@exchcluster.ccis.edu... -Original Message- From: tedd [mailto:t...@sperling.com] Sent: Thursday, February 05, 2009 10:07 AM To: php-general@lists.php.net Subject:

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Shawn McKenzie
bruce wrote: hmmm... tried your preg__match/regex... i get: 0 - 1145 total 1 - 1145 2 - l i would have thought that the 2nd array item should have had total... Probably want this: '#(\d+)(.+)#' -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List

Re: [PHP] Clarity needed

2009-02-06 Thread Shawn McKenzie
***FACT WARNING*** Jochem Maas wrote: ***RANT WARNING*** Shawn McKenzie schreef: Jochem Maas wrote: Daniel Brown schreef: On Thu, Feb 5, 2009 at 07:56, Jochem Maas joc...@iamjochem.com wrote: and the answer to you Q, like everyone else said: yup :-) PS - given you unlimited resources

Re: [PHP] Clarity needed OT

2009-02-06 Thread Shawn McKenzie
Frank Stanovcak wrote: Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0902061020v793d22b9x1430872c2170b...@mail.gmail.com... On Fri, Feb 6, 2009 at 1:13 PM, tedd tedd.sperl...@gmail.com wrote: At 1:55 AM +0100 2/6/09, Jochem Maas wrote: that tedd's unlimited educational

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread Shawn McKenzie
Nathan Rixham wrote: tedd wrote: At 7:35 PM +0100 2/6/09, Jochem Maas wrote: Socialist Doctrine? the community orm? Here's a group of people under treat of loss of life tell their government that everyone is created equal and you say that what they said is a Socialist Doctrine? A

Re: [PHP] Email configuration

2009-02-06 Thread Shawn McKenzie
Ashley Sheridan wrote: On Fri, 2009-02-06 at 16:30 +0200, Thodoris wrote: 2009/2/6 Thodoris t...@kinetix.gr: 2009/2/5 Thodoris t...@kinetix.gr: I think that the OP mentioned the word fedora somewhere above... Oh sorry, I'm so stupid... Anyways, if you want to send mail to large

Re: [PHP] Clarity needed OT

2009-02-06 Thread Shawn McKenzie
Ashley Sheridan wrote: On Fri, 2009-02-06 at 13:13 -0500, tedd wrote: At 1:55 AM +0100 2/6/09, Jochem Maas wrote: that tedd's unlimited educational resources (tutors/courses) might go someway to undoing all the harm Fox News inflicts on the masses. Or to provide clarity to those who think

Re: [PHP] Email configuration

2009-02-06 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Ever heard of RBL or DNSBL? I use it on my email server and so do many lol snap, just sent same message at same time - tis so easy to jump on ash's back cos he's always so sure he's right lolol Hmmm... So Ashley is a him? -- Thanks! -Shawn http

Re: [PHP] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header(Location: http://domain/?somevar=somevalue;) That would, by definition, allow the user to see it. If you

Re: [PHP] Is it possible to send POST vars through aheaderredirect?

2009-02-05 Thread Shawn McKenzie
tedd wrote: At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: tedd wrote: At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header(Location: http://domain/?somevar=somevalue

Re: RES: [PHP] Bad words [SQL, database, txt, whatever]

2009-02-05 Thread Shawn McKenzie
Ashley Sheridan wrote: On Wed, 2009-02-04 at 18:34 -0200, Jônatas Zechim wrote: Thank you, but i thought one of you had the .sql or .txt, .xls, etc. I had already find that results. But it's ok now.. zechim -Mensagem original- De: Andrew Ballard [mailto:aball...@gmail.com]

Re: [PHP] Clarity needed

2009-02-05 Thread Shawn McKenzie
Jochem Maas wrote: Daniel Brown schreef: On Thu, Feb 5, 2009 at 07:56, Jochem Maas joc...@iamjochem.com wrote: and the answer to you Q, like everyone else said: yup :-) PS - given you unlimited resources you might consider doing a charitable donation to FoxNews aficionados :-) Or

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Shawn McKenzie
German Geek wrote: I've thought about this problem before but couldn't think of a solution either. How does func_get_args() solve this? You could make a wrapper function without that. How would u (php) know which parameter u mean in a particular case? I think it would just be useful to

Re: [PHP] calculate the time that day ends

2009-02-04 Thread Shawn McKenzie
Lupus Michaelis wrote: Shawn McKenzie a écrit : STFW That's not so fair. If Thodoris ask about day end, it is obvious he's wrong with the word. Wrong because he isn't mastering english. So, without the good word (sunset), he can't find. So please don't bash us when we appear silly

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread Shawn McKenzie
Stuart wrote: 2009/2/4 Jônatas Zechim zechim@gmail.com: Try curl 1) I really wish people would look at other replies to a post before sending their own. Duplicates are rarely useful. 2) CURL cannot perform a header redirect as the OP is asking for, so the more useful response is to

Re: [PHP] Passing an undetermined amount of arguments by reference

2009-02-04 Thread Shawn McKenzie
Jay Moore wrote: Jim Lucas wrote: Jay Moore wrote: Greetings list. Say I have a function that escapes a string before being passed to MySQL like so: function escape($id, $string) { $string } Use an array as an alternate method of sending/returning data to the second argument.

[PHP] Re: Clarity needed

2009-02-04 Thread Shawn McKenzie
tedd wrote: Hi gang: I need some fog removed. I have a problem where I have an unlimited number of tutors teaching an unlimited number of courses. When I call upon a tutor, I want to see all the courses they teach. In my old days, I would just set up a linked list of courses and attach

Re: [PHP] Passing an undetermined amount of arguments by reference

2009-02-04 Thread Shawn McKenzie
Jim Lucas wrote: Jay Moore wrote: Shawn McKenzie wrote: Jay Moore wrote: Jim Lucas wrote: Jay Moore wrote: Greetings list. Say I have a function that escapes a string before being passed to MySQL like so: function escape($id, $string) { $string } Use an array as an alternate

[PHP] Re: calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Thodoris wrote: Hi gang, I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. I'm not sure that I understand, but I'm pretty sure that every day ends on 23:59:59. -- Thanks! -Shawn

[PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Shawn McKenzie
Wickland, Leif wrote: I would expect that if I turn on output buffering, echo something, throw an exception, and catch the exception, nothing will have been actually output.. That doesn't seem to be the case. Throwing an exception seems to defeat output buffering. In the following

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Thodoris wrote: 2009/2/3 Thodoris t...@kinetix.gr: I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there may be some exceptions ;-)

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Shawn McKenzie wrote: Thodoris wrote: 2009/2/3 Thodoris t...@kinetix.gr: I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there may

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Shawn McKenzie wrote: Shawn McKenzie wrote: Thodoris wrote: 2009/2/3 Thodoris t...@kinetix.gr: I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end

Re: [PHP] Visibility of class constant

2009-02-03 Thread Shawn McKenzie
Chris Scott wrote: You cannot access a class constant just by the constant name. See http://docs.php.net/manual/en/language.oop5.paamayim-nekudotayim.php. Holy crap! Why can't it just be :: or double colon! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List

[PHP] Re: Matching

2009-01-31 Thread Shawn McKenzie
Ron Piggott wrote: How do I determine the value oftx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951Tst=Completedamt=0.01 My desired answer is: 8UM53005HH344951T I am trying to capture the serial number which follows tx= and ends immediately before the

Re: [PHP] Re: frameworks

2009-01-31 Thread Shawn McKenzie
Eric Butera wrote: On Fri, Jan 30, 2009 at 7:14 PM, Kevin Waterson ke...@phpro.org wrote: On Fri, 2009-01-30 at 18:03 -0600, Shawn McKenzie wrote: From what I could tell, this was the best RAD, however if you prefer to lay everything out your own way and do things your own way then probably

Re: [PHP] Re: frameworks

2009-01-31 Thread Shawn McKenzie
Eric Butera wrote: On Sat, Jan 31, 2009 at 12:06 PM, Shawn McKenzie nos...@mckenzies.net wrote: Eric Butera wrote: On Fri, Jan 30, 2009 at 7:14 PM, Kevin Waterson ke...@phpro.org wrote: On Fri, 2009-01-30 at 18:03 -0600, Shawn McKenzie wrote: From what I could

[PHP] Re: help with end of line charater

2009-01-30 Thread Shawn McKenzie
Adam Williams wrote: I have staff inputting email addresses into a textarea named $list on a form and when they click submit, my php script sorts the email addresses and writes to disk. The problem is, lets say they enter the email addresses b...@mdah.state.ms.usstaff hits enter

<    1   2   3   4   5   6   7   8   9   10   >