Re: [PHP] Cut text from a string

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 7:54 am, Daniel Brown wrote: On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: preg_match('|^(.*)\\((.*)\\)$', $string, $parts); Lynch, he asked how to manipulate a string, not for you to draw him an ASCII topless dancer. ;-P Yeah, and I think I left out

Re: [PHP] Re: get domain component from email

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 4:26 am, Stut wrote: Completely agree. It's like banning someone from a pub based on the clothes they were wearing the last time you saw them. Yeah, one drunk abusive chick in a little black dress could get EVERY gal in a little black dress banned. That's pretty messed

Re: [PHP] get and post together

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 10:18 pm, Ray wrote: I've done something and I want to know if I should be ashamed :) I've set up a form with method=POST and target =page.php?foo=bar it works fine. $_POST[...] gives me the data I want and $_GET['foo']=='bar'. I freely admit it's an ugly kludge, but

Re: [PHP] Hidden include_path Fall Back?

2007-08-08 Thread Richard Lynch
The default of php.ini starts with '.' in the first place, I think, so unless you go out of your way to change it, you'll get '.' from a fresh install anyway. I personally would not rely on the behaviour of the code unless you can find Documentation on http://php.net that says it will work this

Re: [PHP] need mysql_ping when using mysql_pconnect?

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 3:05 am, [EMAIL PROTECTED] wrote: Quoting Richard Lynch [EMAIL PROTECTED]: Yes that is true. I only use mysql_ping in scripts with long idle times (up to one hour idle time), and then I noticed that the mysql connection goes down. Using mysql_ping will not just check

Re: [PHP] Articles or News Management Systems -- Full Message

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 2:58 am, Sancar Saran wrote: For example /category/subcat/subcat/documentTitle/document.xml /category/subcat/subcat/documentTitle/gfx1.jpg /category/subcat/subcat/documentTitle/gfx2.jpg /category/subcat/subcat/documentTitle/pdf1.pdf Or Shall I use full sql based

Re: [PHP] two confuse problems

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 1:43 am, [EMAIL PROTECTED] wrote: As the follow show: I want to meet a function that, 1,Click the brows bottom, and select one file, return the file name to the text area and the file¡¦s size to the $filesize. I don¡¦t how to make the browser bottom to achieve that.?

RE: [PHP] magic quotes

2007-08-08 Thread Richard Lynch
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:30 PM To: KVIGOR Cc: php-general@lists.php.net Subject: Re: [PHP] magic quotes On Tue, July 31, 2007 9:28 am, KVIGOR wrote: If magic quotes is on and I dont have access to the php.ini

RE: [PHP] magic quotes

2007-08-08 Thread Richard Lynch
On Thu, August 9, 2007 12:01 am, k3cheese wrote: I have an example, how using js can instantly remove chars you type. If I don't want quotes in the form fields the code in loop removes them. What's your take on this? My take: Problem #1: It doesn't work very well for fields that actually

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:57 pm, Dan wrote: I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something

Re: [PHP] ADODB Insert Question (Syntax)

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:34 pm, Graham Anderson wrote: What is the proper way to get the ADODB class to automatically add quotes to the below sql ? I'm guessing that the below fails because none of the variables get quoted with the method, qstr. $sql = insert into email (to_name, to_email,

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:19 pm, C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of

Re: [PHP] Empty super globals

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 10:02 am, Brian Dunning wrote: A friends asked me the following and I have no clue: There are variables in php called the super globals. Specifically the $_SERVER super globals are coming back as an empty array. The shopping cart that pixami supplied to us requires

Re: [PHP] Problems in php

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 8:09 am, racol wrote: I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 5:08 pm, Daniel Brown wrote: It's actually not so much for echo'ing as it is for processing the data in another manner that makes it dangerous not to do some sanitizing and checking such as database manipulation. This is wrong. Google for cross site scripting

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 2:48 pm, Tijnema wrote: On 8/7/07, Greg Donald [EMAIL PROTECTED] wrote: On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
book that everyone recomends, in EE it's http://www.amazon.com/Elements-Analysis-Electrical-Electronic-Engineering/dp/0070612854) for PHP security like there usually is for whatever field you're in. On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 7, 2007 4:57 pm, Dan wrote

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
Are you the only user? Is it authenticating you to keep all other users out? If some random 'net user can send POST data, and you just blindly spit it out, with no filtering and no escaping, then, yes, that is insecure. There are all manner of nasty things that can be done to this setup by

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:39 pm, Stut wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. +1 What you are trying to do has been tried many times before, to disastrous results. Step back and show

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:46 pm, Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? No. Every ccTLD country is free to sub-divide as the government of that country sees fit, so long as the sub-divisions

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 6:21 pm, Stut wrote: Kevin Waterson wrote: I would like to prevent registration of emails from certain domains that abuse a forum. eg: foo.uy7f564d8d6d.com These domains are registered by the thousands by spammers and because they use dyndns it is impossible to use an

Re: [PHP] need mysql_ping when using mysql_pconnect?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:58 am, [EMAIL PROTECTED] wrote: Just becasue you create a persistent connection it can still go down, can't it? So therefore using mysql_ping inside of scripts with plenty of idle time is useful? It can still go down, for sure. Using mysql_ping to see if it's still up

Re: [PHP] import Excel file into PostgreSQL

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 12:37 am, Alain Roger wrote: I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into

Re: [PHP] Re: Object reference into variable?

2007-08-07 Thread Richard Lynch
$tempobject *SHOULD* have been an object. Did you spell it right? Was $myobject an object in the first place? Start using var_dump() on all your data and see what's happening. On Tue, August 7, 2007 4:09 am, Sándor Tamás (GMail) wrote: I forgot to tell you that I have to use PHP4.2 because of

Re: [PHP] Thoughts about music library

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:13 pm, Børge Holen wrote: I'm building an web interface for my music collection. What I would like is some opinions on what to choose pro/cons: The first choice I took was to stream music directly to a player, i.e. I construct and export an m3u with php and open

Re: [PHP] Re: Thoughts about music library

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:20 am, Colin Guthrie wrote: Børge Holen wrote: On Monday 06 August 2007 23:39, Colin Guthrie wrote: Børge Holen wrote: I'm building an web interface for my music collection. I'd have a quick look at mp3act. It does pretty much what you want I think. yes, but

Re: [PHP] Re: How to implement a plugin system?

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:22 pm, Hamza Saglam wrote: I think I have a rough understanding of the whole process so I should start coding :) Many thanks to everyone for your suggestions. You may also want to look at how Drupal is doing it, as they seem to be bragging about their plugin

Re: [PHP] Saving

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 2:22 pm, Dan wrote: Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions and a couple properties variables. But now I need to be able to save the class to a file. Of course

Re: [PHP] Check if var has a date (timestamp or regular)

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 6:52 am, OOzy Pal wrote: How can I check an inputed date if it is a valid date and if it is in the form of a timestamp or regular date such as (22-07-2007 or 22/07/2007) Use the cool new filter extension to PHP or use PCRE. http://php.net/filter http://php.net/pcre

Re: [PHP] Error Handling question

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:41 am, debussy007 wrote: I am new to PHP and need some help for error handling. I read in the docs that i can handle the errors this way in my PhP: set_error_handler('errorHandler'); function errorHandler($errnum,$errmsg,$file,$lineno){ [...] } But does that

Re: [PHP] passthru

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:14 am, Payne wrote: Does anyone know way to passthru man pages so they don't show the ascii formating? The man command itself has a man page which describes how to format the output to your liking, with or without all kinds of formatting. man man -- Some people have

Re: [PHP] Check for well formed html

2007-08-07 Thread Richard Lynch
On Sun, August 5, 2007 6:16 am, tedd wrote: I have a client who wants to include html tags in his CMS. I know that I can limit what tags he can use, but how can I check if the text is well formed with the tags permitted before storing it in his CMS? http://php.net/tidy -- Some people have

Re: [PHP] Problems with file_get_contents() and local PHP file

2007-08-07 Thread Richard Lynch
On Sun, August 5, 2007 1:37 am, Mike wrote: Hey. My server is running PHP 4(Not actually my server so I don't know the exact version) and I'm having trouble with getting an image from a PHP file. Use ?php phpinfo();? to find out exactly what you've got. The problem is that originally this

Re: [PHP] Rejecting File Upload

2007-08-07 Thread Richard Lynch
On Sat, August 4, 2007 11:48 pm, php mail wrote: How do I prior check file's size in server side before the upload process begin ? You don't. I don't think you can even do that with JavaScript, but if it can be done at all, it's gonna be with JS. -- Some people have a gift link here. Know

Re: [PHP] Downloading PHP 521

2007-08-07 Thread Richard Lynch
On Fri, August 3, 2007 10:47 am, WyleySam wrote: Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. Did you try the links on this page: http://www.php.net/releases/ -- Some people

Re: [PHP] Premature Ajax-ulation

2007-08-07 Thread Richard Lynch
On Fri, August 3, 2007 8:39 am, Jay Blanchard wrote: One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send

Re: [PHP] output the schema

2007-08-07 Thread Richard Lynch
On Fri, August 3, 2007 6:34 am, Richard Heyes wrote: I reword my last post. I want to take the result and generate the field info to the screen e.g Well, if you're using MySQL you could use either DESC table; or SHOW CREATE But you can't really generate the schema from a result set.

Re: [PHP] function - action

2007-08-07 Thread Richard Lynch
On Fri, August 3, 2007 1:38 am, Ralph Kutschera wrote: I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function

Re: [PHP] About PHP/MYSQL Pagination

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 8:12 pm, Kelvin Park wrote: I just couldn't find it anywhere, google or yahoo. I know how to make first, previous, last, and next links for php/mysql pagination. How do you list page numbers in the middle, between previous and next? (ex. first previous | 1 2 3 4 5 |

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-07 Thread Richard Lynch
Add another page asking the user to CONFIRM the amount that you think you got. On Thu, August 2, 2007 3:07 pm, Dan Shirah wrote: Greetins all, In my form I have an area where the user enters in the payment amount: input type=Text value= size=20 maxlength=16 name=payment_amount This is all

Re: [PHP] PDO::ATTR_TIMEOUT script specific?

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 1:49 pm, Ken Tozier wrote: I have a script that needs to get ad information from two different sources, a primary and fallback. The primary source is a high traffic (and poorly designed/unpartitioned MSSQL database) with millions of records that gets locked up when

Re: [PHP] Cut text from a string

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 9:43 am, Don Don wrote: hi all, am trying to cut some texts from a serries of string values e.g. this is how we do (50 cents feat. the game) give it to me (nelly feat timerland) let me hold you (bow wow feat omarion) i want to cut off the text between the comas and

Re: [PHP] [pcre] backreferences to all matches of a repeated subexpression

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 10:05 pm, Jack Bates wrote: I'm trying to pull all the components out of strings structured like: word followed by any number of ( dot word or square bracketed string ) This is an example: foo.bar[ab.cd].baz From the above example, I want: array('foo', 'bar', 'ab.cd',

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 10:48 am, Ben Ramsey wrote: On 8/2/07 11:45 AM, Tijnema wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: So, what are we doing wrong with chmod() that is causing us to get the wrong results? Keep in mind that we are running the PHP script as the same user who

Re: [PHP] Question about passing date in sql...

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 5:00 pm, Michael Preslar wrote: I know it has to do with date='`date +%Y%m%d`', because if I remove it works. Are you trying to use perl's back tic operator in php here? Close. He's trying to use the shell's back tick operator in MySQL. I think. It would actually

RE: [PHP] addSlashes Question

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 3:27 pm, Jay Blanchard wrote: [snip] $first = '.addslashes($_POST['firstname']).'; $last = '.addslashes($_POST['lastname']).'; $email = '.addslashes($_POST['email']).'; $address = '.addslashes($_POST['address']).'; $city =

Re: [PHP] Validating Email Conditional

2007-08-07 Thread Richard Lynch
You added or lost a parenthesis somewhere in there... if (getmxrr($domaintld,$mxrecords)) That part right there finishes off the if (test) part. Then you've got starting off the statement where you are sort of supposed to be doing something more like $valid = true; or have { } On Wed, August

RE: [PHP] Validating Email Conditional

2007-08-07 Thread Richard Lynch
You could also consider: http://www.php.net/manual/en/function.imap-rfc822-parse-adrlist.php Assuming that the PHP/IMAP Developers who wrote that function actually know what they are doing and did the regex right... :-) This saves trying to send out a billion confirmation emails to totally bogus

Re: [PHP] Loss of precision in intval()

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 11:52 am, Mark Summers wrote: This sort of thing really isn't helpful... ?php $a = 75.82 * 100; echo intval($a); ? What did you get? What did you expect? Do you have ANY idea how floats are actually represented internally in every computer language? [*] If you

Re: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :)

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 7:49 am, Jason Pruim wrote: I have a php script that I am attempting to run from the CLI to connect to a MySQL database and update a field. but when I run it with this command: php cronjob.php it prints out the script on screen but doesn't process it... Running:

Re: [PHP] I am confused to mysql_query.

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 1:23 am, Patrik Hasibuan wrote: This sql string produces proper output in my MySQL-Query: select image_src from products where product_id='10'; the output is: gambarproduk/0/10/1.jpg But my php code does not produce anything. Please tell me what is my mistake. ===

Re: [PHP] subtitute of mysql_error()

2007-08-07 Thread Richard Lynch
Whatever made you think mysql_error() wasn't working, that was wrong. Because mysql_error() works just fine. On Wed, August 1, 2007 1:09 am, Patrik Hasibuan wrote: Dear my friends What is the substitute of mysql_error() ? This line of my code does not work anymore:

Re: [PHP] $_POST- Vars - Back-Button

2007-08-07 Thread Richard Lynch
On Wed, August 1, 2007 6:18 am, Christian Hänsel wrote: this might be a noob- question, but I simply do not care anymore. After a few hours of fiddling with this @/**%$ (screaming AAa), I would like to ask you. So what I have is this: I have a search engine for a car market, which

Re: [PHP] DOMDocument - loadHTML() cuts off html input

2007-08-07 Thread Richard Lynch
Are there any funky characters or unusual attributes/values in the 31st option -- the one right after the last one that works? I'm reasonably certain there is no limitation anywhere near 30 in any RFC for the number of options in a SELECT list. Though 330 is a lot for a normal user who has NO

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 9:55 pm, Daniel Brown wrote: On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 7, 2007 5:08 pm, Daniel Brown wrote: It's actually not so much for echo'ing as it is for processing the data in another manner that makes it dangerous not to do some

Re: [PHP] Reading registry values

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 4:54 pm, \Crash\ Dummy wrote: To answer everyone's curiosity as to why I want to access the registry, I am working on my home computer with a dynamic IP, and I need to know what it is so I can modify my httpd.conf (or hosts) file, if necessary. LOL Take a look at whats

Re: [PHP] headers-excel file-bad data

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 12:32 pm, blackwater dev wrote: I have an excel file that I am generating. If I copy over the generated file and then open it in excel, it works fine, if I try to let the user download it using the headers below, when I then open it excel complains that it is an

RE: [PHP] Unexpected values in an associative array

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 11:06 am, Instruct ICC wrote: What is $value and what is this supposed to do: case'integer': $value += 0; This is a silly hack in

Re: [PHP] magic quotes

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 9:28 am, KVIGOR wrote: If magic quotes is on and I dont have access to the php.ini. Is there any way I can strip quotes from the form field with out using AJAX? Best: Use .htaccess to turn magic_quotes off. Okay: Use something like if (ini_get('magic_quotes_gpc')) $data

[PHP] Job Postings

2007-08-07 Thread Richard Lynch
While I'm sure we all [*] appreciate job postings from enterprising individuals. Could those of you who are posting these things please be considerate and have the subject contain: [Job] and, if it's not tele-commute, a LOCATION such as: [Job] Senior PHP Role (London, England) Thousands of

Re: [PHP] Objects

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 8:40 am, Eric Butera wrote: On 7/31/07, Nathan Nobbe [EMAIL PROTECTED] wrote: i feel sorry for Richard; if youd ever seen a successful implementation of design patterns in the wild well you would probly feel like i do... gotta have em :) This post is a result of

Re: [PHP] Array difficulty

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 8:27 am, Carlton Whitehead wrote: I have an array like this: $chance = array(lowercase = 27, uppercase = 62, integer = 46); The values for each of the keys are randomly generated. I want to find the key name of the one which has the highest value. Currently, I'm doing

Re: [PHP] if inside an echo.

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 6:10 am, Hulf wrote: for ($value = 0; $value = 2000; $value += 100) { echo option value=\$value\ if ($min_rent==$value) {echo selected=selected } $value/option; You could slap a ?: tertiary operator in there: echo option value=\$value\, ($min_rent==$value ?

Re: [PHP] Blooging Portal

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 3:27 am, Christian Hänsel wrote: this is not generally a PHP question, but either way I'm gonna ask :oP Does any of you know a decent Blooging Portal software? Of course, it should be OpenSource ;o) What I wanna do is: I want to give people the ability to create their

Re: [PHP] Bizarre array create error

2007-07-31 Thread Richard Lynch
On Sun, July 29, 2007 5:49 pm, Ken Tozier wrote: I'm trying to assign two fields of an object returned from a MySQL query and have stumbled upon the most bizarre PHP bug where I can't create two arrays in succession. Here's the MySQL query with two dummy fields to be filled in later select

Re: [PHP] Objects

2007-07-31 Thread Richard Lynch
On Sun, July 29, 2007 12:45 pm, Nathan Nobbe wrote: one of the hardest parts about using design patterns in reality is you have to be able to recognize a certain problem and then you can begin to understand how to apply a particular pattern or set of patterns to your solution. Or, in my

Re: [PHP] Dealing with ImageMagick from PHP

2007-07-31 Thread Richard Lynch
On Sun, July 29, 2007 12:49 am, Eric Holt (PHP List) wrote: Right now, I call ImageMagick from a exec call in PHP. When I first Now, after that long rambling... My question is this: Would I see a big speed improvement by using the ImageMagick extension built into PHP (MagicWand, is it

Re: [PHP] PHP Rating system

2007-07-31 Thread Richard Lynch
On Sun, July 29, 2007 1:41 pm, Chris Carter wrote: I am trying for a php rating code that can utilized for a restaurant requirement. First of all I am not sure if there is database that is obvious with rating system. In case it is or even if its not, is there some site and code available

Re: [PHP] audio recorder

2007-07-30 Thread Richard Lynch
On 7/31/07, John Pillion [EMAIL PROTECTED] wrote: Not exactly a php question. but I'm doing the project in php, so does that count? ;-) A client of mine wants a simple audio recorder for users to record a short clip/message for other users. anyone recommend any simple audio

RE: [PHP] Reading registry values

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 1:32 pm, Jay Blanchard wrote: [snip] I want to convert some ASP pages to PHP to go along with a transition from IIS to Apache. One of the ASP script functions involves reading data from the Windows registry. How does one read from the registry with PHP? [/snip] PHP

Re: [PHP] Re: Changing URLs from Relative to Absolute

2007-07-30 Thread Richard Lynch
Tom Chubb wrote: Dear list, I was recently trying to write a script where a user copy and pastes their HTML code to display something on a listings site and tried to find a way to change the URL of an image from relative to absolute. For example img src=images/1.jpg becomes img = src=

Re: [PHP] $HTTP_POST_FILES always produces empty value.

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 7:00 am, Patrik Hasibuan wrote: I don't understand why $HTTP_POST_FILES always produces empty value. php.ini might have long names turned off. Try just $_FILES -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist.

Re: [PHP] Wordpress Theme Switcher plugin redirect modification

2007-07-30 Thread Richard Lynch
On Mon, July 30, 2007 4:48 am, Erik Gyepes wrote: I would like to modify the Theme Switcher Plugin for Wordpress (http://dev.wp-plugins.org/wiki/ThemeSwitcher). When I currently request the page to switch the theme (for example: mydomain.com/?wptheme=My+Theme) I'm redirected to the index.php,

Re: [PHP] PDO_SQLite Transactions

2007-07-28 Thread Richard Lynch
I suspect that you are trying to update the record you just inserted. That may just not be possible in the transaction model, for whatever internal purposes. It also seems kind of backwards to me at least. Why not just do the file move and error checking before you even bother to insert, and

Re: [PHP] Rules of Engagement

2007-07-28 Thread Richard Lynch
On Sat, July 28, 2007 7:28 pm, Daniel Brown wrote: Can we update the filters on the list to have the reply-to address header marked to the php-general address? This is a religious question of mailing list management, and there are always going to be large sized contingents on each side of

Re: [PHP] Rules of Engagement

2007-07-28 Thread Richard Lynch
On Sat, July 28, 2007 11:37 pm, Larry Garfield wrote: Amen! A public discussion list (such as this one) really should have Reply-To set correctly. All of the arguments against Reply-To headers apply only to the 1% of the population still using mail clients written in the early 90s. The

Re: [PHP] Comment modes behavior in HTML and PHP

2007-07-28 Thread Richard Lynch
On Sat, July 28, 2007 9:40 am, C.R.Vegelin wrote: I have a PHP script, as follows: !-- ?php echo should this be echoed ?; ? -- As expected, the browser shows nothing, but when I view Source in the browser, I see: !-- start HTML comment should this be echoed ?--

Re: [PHP] Hide the real URL

2007-07-28 Thread Richard Lynch
On Fri, July 27, 2007 10:17 pm, Eric Butera wrote: We have our own dedicated server that we host client sites on. If I were to back out into the root then I would be at the level of all the other sites. It just doesn't make sense in my case. It's pretty trivial to add one more layer of

Re: [PHP] Profile / Debug w/o server modification?

2007-07-28 Thread Richard Lynch
On Fri, July 27, 2007 10:01 pm, Instruct ICC wrote: From: Richard Lynch [EMAIL PROTECTED] But xdebug and apd are probably moot. BTW, I'm not using separate development and production machines. Right there is your first problem. Solve that first. If you mean get a dev box. You don't know

Re: [PHP] Pirate PHP books online?

2007-07-28 Thread Richard Lynch
On Fri, July 27, 2007 6:28 pm, Larry Garfield wrote: On Friday 27 July 2007, Richard Lynch wrote: If indirectly affecting the market so that prices change counts as stealing, then Coke and Pepsi build their business models around stealing from each other. Apache/PHP/MySQL are then stealing

Re: [PHP] Creating a text file

2007-07-27 Thread Richard Lynch
On Mon, July 23, 2007 8:10 am, Daniel Brown wrote: On 7/20/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, July 19, 2007 8:33 am, Daniel Brown wrote: extract($_POST); You might as well just turn register_globals back ON (bad!) because you've just done a work-around on $_POST

Re: [PHP] How to skipping the range of values from each element of array??

2007-07-27 Thread Richard Lynch
On Sat, July 21, 2007 3:19 am, Jim Lucas wrote: sivasakthi wrote: Hi All, I have an array like that below, array( 'test %ts.%03tu %6tr %a %Ss/%03Hs %st %rm %ru %un %Sh/%A %mt %rv %st', 'squid %ts.%03tu %6tr %a %Ss/%03Hs %st %rm %ru %un %Sh/%A %mt %ea %st %st

Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Richard Lynch
On Wed, July 25, 2007 5:15 am, David Powers wrote: Richard Lynch wrote: At no point did I intend to sound unsympathetic to your plight! I only wanted to make it clear that 99.9% of musicians are in the same boat with you, despite what you read in the newspapers. Understood. I simply

Re: [PHP] Find file version

2007-07-27 Thread Richard Lynch
On Wed, July 25, 2007 12:26 am, Matt Carlson wrote: I've been recently toying with the idea of creating a php script to emulate the function of File Hippo's program checker (checks certain programs for their version, and then uploads to file hippo to compare with what it is released to show a

Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Richard Lynch
On Mon, July 23, 2007 6:00 am, David Powers wrote: The Harry Potter books have sold an estimated 325 million copies. Even if the author gets only 10 cents a book, that adds up to $32.5 million. I'm sure she gets a lot more than 10 cents a book, but it's the number of books sold that makes the

Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Richard Lynch
On Mon, July 23, 2007 4:41 am, Sancar Saran wrote: Those publishers ripping the authors then they blame the pirates... Real steal was %95 of book prices Do feel free to start your own publishing company and print up some books at prices you consider more fair. -- Some people have a gift

Re: [PHP] Notice warnings and performance

2007-07-27 Thread Richard Lynch
On Wed, July 25, 2007 3:39 am, Erfan Shirazi wrote: The site I'm working on has a lot of notice warnings, thousands. And they are all about: (Notice: Undefined variable..) I was wondering if I set the php.ini file to not log these in file or display them, does all of these notice warnings

Re: [PHP] About XML XSLT

2007-07-27 Thread Richard Lynch
On Sat, July 21, 2007 12:17 am, Kelvin Park wrote: I'm trying to make a web site that it entirely XML/XSLT/PHP driven, without MYSQL. However, since I need to reuse the database from my last web site, I had to parse XML with PHP and save it as a file (e.g. xmlFile.xml) in my htdocs folder

Re: [PHP] No is_date() function?

2007-07-27 Thread Richard Lynch
On Wed, July 25, 2007 8:55 am, Ken Tozier wrote: I wrote a serialization function to turn arbitrary PHP variables into Macintosh plist compatible XML but see that there is no is_date tester as there is for bool, object, array etc. Is there a relatively simple (and robust) way to detect if a

Re: [PHP] problem with install php 5.2.3 on apache 2.2.4 in windows xp sp2

2007-07-27 Thread Richard Lynch
On Fri, July 20, 2007 7:57 pm, arvin lee wrote: system: windows xp sp 2 apache: apache_2.2.4-win32-x86-no_ssl PHP: php-5.2.3-win32-installer.msi i try to install php on my computer so that i can finish my homework, but after download these files nightmare begins. Install apache with

Re: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 3:21 pm, John A DAVIS wrote: We have various labs that submit coliform sample results in an ASCII file, quoted/comma delimited. We are being asked to encrypt this file for internet transfer. We are also being asked to create a secure process by which to transfer this

Re: [PHP] PHP has encountered an access violation

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 3:15 pm, Eric Lommatsch wrote: We are in the process of configuring PHP version 5.2.3 to run on IIS so that we can install some PHP applications on this server. When we attempt to open pages on this server we are getting error messages like PHP has encountered an

Re: [PHP] Multiple session

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 8:55 am, Erfan Shirazi wrote: I have a problem which I need some help with. I have a e-commerce site were the user must log in in order to use some of the functions. But I only want 1 active session for each user, so the user should not be able to have 2 browsers opened

Re: [PHP] Authentication

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 12:51 pm, Dan Shirah wrote: I looked on PHP.net but I couldn't not find anything suitable to answer my question. Within PHP, is there a way to pull the name of the user that is currently logged into the PC? That data is not transmitted, by design, in an HTTP request.

Re: [PHP] import spreadsheet

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if

Re: [PHP] Re: The Official OT Name Tedd's Grandson Thread

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 7:35 am, Tijnema wrote: It's quite logical that it is done this way, if you understand how a mailing lists works ;) When you send a email to the mailing list, you send it without [PHP], and so Gmail thinks that's the message title. Once it arrives at the mailing list

Re: [PHP] PHP and Java: accessing Java classes from PHP

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 10:31 am, Holografix wrote: I need to access some custom and native Java classes from php. I've tried the steps form php manual and php-javabridge from sf but I always get an apache crash. I don't need to run servlets and it's impossible to start servlet engine in the

Re: [PHP] Hide the real URL

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have things outside of your actual web site. You can disallow traffic with Apache fairly easily if you're paranoid of such things. I used to do this. Until one day I

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 11:01 am, Tom Ray [Lists] wrote: I would have to agree with you Chris, there a many legitimate reasons for having HTML mail. I was trying to be a nice guy and send both the plain text version and the html version out but like I said, I couldn't get it to stop displaying

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