Re: [PHP] Perl style chomp()

2007-11-01 Thread mike
() ? seems unnecessary to reinvent the wheel. if you want an array one, just make it recurse like you did. - mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread Ford, Mike
session_register() them. (track_vars, mentioned previously, is a red herring -- it's been permanently enabled since 4.0.something.) Cheers! Mike Mike Ford, Electronic Information Services Adviser, JG125

RE: [PHP] REGEX: grouping of alternative patterns

2007-10-30 Thread Ford, Mike
*(`. *`|[0-9]*)?)?))\s*/i Since all the parts beyond the id and datatype are optional, I don't see how this can ever not match. Please define more accurately what you mean by doesn't match. Cheers! Mike - Mike Ford, Electronic

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: I've found simple examples on the web that work a simple XML file (song, title, etc) but I need one that will parse an XML file into elements of an array. And then, I need to reference these elements to validate against a database. The data

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: this works: $xml_data = file('xml_edwr2.xml'); var_dump($xml_data); I can get the var_dump to work for 1 sample, but I guess there are a many samples in one xml file which turns into something like this(so, there is no way for me to

Re: [PHP] How can I load this XML file into an array? (and. . . how do I reference the values?)

2007-10-26 Thread mike
On 10/26/07, John A DAVIS [EMAIL PROTECTED] wrote: simplexml won't work for our version of PHP. planning on upgrading once we get the new server then i guess if you need it now, it's probably easiest to look for a PEAR module. however... gophp5.org! :) -- PHP General Mailing List

Re: [PHP] Looking for a framework

2007-10-23 Thread mike
On 10/23/07, Larry Garfield [EMAIL PROTECTED] wrote: I don't think any really integrate with PHP better or worse than others, since all of them can only speak HTTP. I will say that in my professional PHP work I've standardized on jQuery because jQuery itself rocks, and doesn't try to turn

Re: [PHP] p-s-e-x-e-c

2007-10-18 Thread mike
On 10/18/07, Instruct ICC [EMAIL PROTECTED] wrote: When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. I also have a similar problem but reversed. It works in a webpage but not on the command

RE: [PHP] Array problem

2007-10-17 Thread Ford, Mike
=$comment_ids): echo Start of information for picture $pic_id; foreach ($comment_ids as $com_id): echo Comment $com_id for picture $pic_id; endforeach; endforeach; Cheers! Mike - Mike Ford, Electronic Information

Re: [PHP] Two MySQL instances in one server

2007-10-15 Thread mike
On 10/15/07, Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED] wrote: I have tried this once but PHP can only connect to one MySQL server because it can only read one socket file at a time. are you sure? I am using multiple datasources (not socket ones) but I see absolutely no reason

Re: [PHP] count vs mysql_num_rows

2007-10-08 Thread mike
On 10/8/07, Kevin Murphy [EMAIL PROTECTED] wrote: I've got a little function that just checks to see if something is in a mysql db. There are several ways to do this and was curious as to the best way. The following are 2 (simplified) versions that work just fine. If these are the best ways,

Re: [PHP] MySQL and SESSIONs

2007-10-08 Thread mike
On 10/8/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. This may not be best practice, but I think it's great to use - especially since I can use multiple functions with the same database connection w/o having to send the db link/resource. Store the connection in the GLOBALS variable - this

Re: [PHP] mySQL Results To XML

2007-10-06 Thread mike
On 10/6/07, CK [EMAIL PROTECTED] wrote: Hi, Here's the mission, creating a movie DB, I need the results returned from mySQL in an XML format for use with the FLASH Professional DataGrid. Any tips on formating mySQL results would be grand. Here's the structure of the DB, if needed. you

Re: [PHP] mySQL Results To XML -- my xmltag() functions

2007-10-06 Thread mike
On 10/6/07, Daevid Vincent [EMAIL PROTECTED] wrote: Here's the 'functions_xml.inc.php' file I use, it has served me well and handles I believe all tag cases, personally I'm a big fan of using the attributes as they're most easily parsed out in the PHP DOM functions: I made this at one point:

RE: [PHP] error messages

2007-10-05 Thread Ford, Mike
: ini_set(error_reporting, E_STRICT); Er, no, actually that's much *less* strict, as it won't display any of the E_ALL errors; I think you meant: ini_set(error_reporting, E_ALL E_STRICT); Cheers! Mike - Mike Ford

Re: [PHP] Disabling the built-in POST handler

2007-10-05 Thread mike
On 10/5/07, Stefanos Stamatis [EMAIL PROTECTED] wrote: Hello, I need to handle very large file uploads and push the data into a socket. Having php to write everything to a temporary file, then reading it again inside the script and pushing it into the socket is very inefficient and imposes

Re: [PHP] Empty Array?

2007-10-05 Thread mike
At 7:43 AM -0400 10/5/07, Dan Shirah wrote: Ah, what a lovely case of the Friday morning brain farts! I have a query that selects some data from a table based on the current ID selected. If the query does not return any results, I want it to continue to another query that will insert a

Re: [PHP] Connect PHP to Remote SQL Server?

2007-10-05 Thread mike
On 10/5/07, Jason Paschal [EMAIL PROTECTED] wrote: Apache and PHP 4.3.9 are on a *nix server and we don't have root access, HOWEVER we can have the tech support perform pretty much any action except re-compile PHP (for which they charge), but I'm hoping i could dynamically load extensions

Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-03 Thread mike
On 10/3/07, Greg Donald [EMAIL PROTECTED] wrote: cat fsockopen.php #!/usr/bin/env php ?php $fp = fsockopen( 'destiney.com', 80, $errno, $errstr, 30 ); if( !$fp ) { echo $errstr ($errno)\n; } else { $out = GET /rss HTTP/1.1\r\n; $out .= Host: destiney.com\r\n; $out .=

Re: [PHP] Alternate Colors in Rows

2007-10-03 Thread mike
On 10/3/07, Steve Marquez [EMAIL PROTECTED] wrote: Greetings, I am attempting to alternate the colors of the container DIV. Anyone know how to do this? you could always use javascript we've used something like this with success: http://www.sitepoint.com/article/background-colors-javascript

Re: [PHP] Mime Magic functions - how standard are they?

2007-10-03 Thread mike
On 10/3/07, Dave M G [EMAIL PROTECTED] wrote: So, ultimately, what I'm wondering is, what should I be using in order to determine file MIME types that will be the most commonly installed on servers with PHP? I wrote something that does system(file -iNr $file) which gives you the

Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-02 Thread mike
On 10/2/07, Mark [EMAIL PROTECTED] wrote: I'm currently fetching feeds about every hour (automatically in php) but sometimes there are no new updates in a feed for 2 hours. so no i wonder if it's possible to check the feed somehow to see if it changed since i last fetched it and if it's the

Re: [PHP] Re: languages and PHP

2007-09-27 Thread mike
On 9/27/07, Edward Vermillion [EMAIL PROTECTED] wrote: But what happens if you get data that's *not* UTF-8? Just because your html/form is set to UTF-8 doesn't mean that all your incoming data will be UTF-8. just my experience, but as long as it has the meta tag w/ utf-8 in it, the browser

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread mike
On 9/25/07, Nathan Nobbe [EMAIL PROTECTED] wrote: i try to stay away from it if i can. i think the same of SOAP. in my opinion a shower is the only place for soap. simple XML, REST, JSON, lighter weight things are what i prefer. even XML-RPC i can live without. my $0.02 -- PHP General

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-25 Thread mike
On 9/25/07, David Zentgraf [EMAIL PROTECTED] wrote: Hi, We need to work with a credit card checking company for an online store. The one we're looking at only offers an API implementation via PHP modules, or via SOAP protocol. Unfortunately our host is extremely restrictive right now and did

Re: [PHP] Regex æøå email validation?

2007-09-24 Thread mike
On 9/24/07, Per Jessen [EMAIL PROTECTED] wrote: Hi guys Im helping a friend with hes internet site, and I have found this regex email validation regex on the internet: var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a- z]{2,6}(?:\.[a-z]{2})?)$/i;

RE: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Ford, Mike
, or possibly even better the \b assertion which means word boundary. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley

Re: [PHP] Configure mail to use Gmail smtp

2007-09-16 Thread mike
i'm quite sure you can't with php's built-in mail() function. however more advanced modules should support it. look in PEAR, google for phpmailer, etc. i'm sure there's got to be some. worst case i think you have all the tools in PHP to make your own anyway. On 9/16/07, debussy007 [EMAIL

Re: [PHP] my paging task with PHP does not work. It uses cookie.

2007-09-14 Thread mike
except i think innodb does not have a full row count stored. anyway the design was meant for a simple one function call. it's worked great for small and data loads. On 9/14/07, Arvids Godjuks [EMAIL PROTECTED] wrote: Don't use SQL_CALC_FOUND ROWS on simple queries, when you have to run a

Re: [PHP] my paging task with PHP does not work. It uses cookie.

2007-09-13 Thread mike
); } if($totalitems = $options['itemsperpage']) { $html = ; } return Array($html,sprintf(%02d,$numpages),$totalitems,$results); } On 9/13/07, Patrik Hasibuan [EMAIL PROTECTED] wrote: Hi Mike, I am intrested for the solution you gave me. But I am confused of the way in implementing select

Re: [PHP] html to xml?

2007-09-12 Thread mike
On 9/12/07, Slith [EMAIL PROTECTED] wrote: i need to parse an html page for tabular data which i can then import into mysql so i thought converting the html to xml might be a feasible thing to do, however, other than using tidy from the command line i can't find a way to do this from php.

Re: [PHP] my paging task with PHP does not work. It uses cookie.

2007-09-12 Thread mike
On 9/12/07, Patrik Hasibuan [EMAIL PROTECTED] wrote: Dear my friends... I am trying to display the content of a table. Each page must content only 5 records maximum. Each page has Previous and Next buttons (made from anchor). I dump the primary of the working table and keep it in a

Re: [PHP] How to clean up extended charset or ASCII characters on form input?

2007-09-12 Thread mike
On 9/12/07, Eric Wood [EMAIL PROTECTED] wrote: I've searched of 21000 messages in this list and I don't quite understand how to best protect user input. Let's say you have a form that posts to itself just do see how messed up data can get: http://php.net/filter has great easy to use

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread mike
can i ask why you have anything to do with mod_php3 there? and if you don't plan on trying to use php4 and php5, then remove any looking for php4 too. IfModule mod_dir.c IfModule mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.php3 index.html

Re: [PHP] Getting line count of a text file

2007-09-12 Thread mike
On 9/12/07, Frank J. Schima [EMAIL PROTECTED] wrote: In PHP 5, I'm counting the number of lines in a text file using the following code: $myfile = file ( '/path/to/myfile.txt'); $count = count ($myfile); However, sometimes it fails with the following error: PHP

Re: [PHP] Getting line count of a text file

2007-09-12 Thread mike
personally i try to use as little shell commands as possible, especially stacked on top of each other in exec(). i'd just use explode, str_split, substr/strpos, etc. after i got it back. On 9/12/07, Wolf [EMAIL PROTECTED] wrote: Novel approach... But mine's less typing. :) never thought of

Re: [PHP] Getting line count of a text file

2007-09-12 Thread mike
On 9/12/07, Greg Donald [EMAIL PROTECTED] wrote: Why? Shell commands are a lot less likely to change than the current PHP function names. I'm aware the PHP function naming algorithm currently remains a secret, but without a doubt, someday someone _will_ crack it. I personally hope this

Re: [PHP] Getting line count of a text file

2007-09-12 Thread mike
On 9/12/07, Chris [EMAIL PROTECTED] wrote: bruce wrote: greg... actually, i was the one that said this. Sure they can - enable safe-mode and it causes all sorts of weirdness with running exec or system calls. not to mention shell commands expect to be in PATH, and if you hardcode in

Re: [PHP] Using a variable for include statement

2007-09-11 Thread mike
you can definately use variables for filenames. i do it all the time. it's not like XSLT or other languages where it has to be included at the start or you're screwed. On 9/11/07, Jeff Benetti [EMAIL PROTECTED] wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, Jason Pruim [EMAIL PROTECTED] wrote: echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being empty.

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, brian [EMAIL PROTECTED] wrote: e: (my personal opinion) Using echo() to spit out HTML will lead to *much* heartache and gnashing of teeth. Put a closing PHP tag (?) in there and let the parser spit out the markup without echo(). i think this is quite opposite. i prefer echo'ing

Re: [PHP] Converting PHP code to C#?

2007-09-08 Thread mike
i'm pretty sure the IV mattered in our stuff. and remember i used CBC i think not EBC, and it worked fine. not sure if you want to try that and make it work for you or not without any warnings :) On 9/8/07, Symbian [EMAIL PROTECTED] wrote: mike-22 wrote: just hard code the IV in both

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread mike
On 9/8/07, Greg Donald [EMAIL PROTECTED] wrote: I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc syntax while doing so. My scripts usually only have a single ?php opening tag and never require any closing ? tags. Code that contains short open tags or instances of ?= is

Re: [PHP] Converting PHP code to C#?

2007-09-07 Thread mike
On 9/7/07, Symbian [EMAIL PROTECTED] wrote: Hi, I'm not sure if this is the right place to post this, I have some decryption routines that use mcrypt that I need to decrypt in .NET, does anyone know how why I cant get this to work? I've done it in reverse - something encrypted in .NET and

Re: [PHP] Converting PHP code to C#?

2007-09-07 Thread mike
On 9/7/07, Symbian [EMAIL PROTECTED] wrote: I'm unable to workout how to get the same IV as the one generated by the PHP script is random. The thing is that we cant change the PHP script as its readily being used now. Maybe I should look at the encryption routine and reverse that first? just

Re: [PHP] Preventing Access to Private Files

2007-09-06 Thread mike
On 9/6/07, Stephen [EMAIL PROTECTED] wrote: I understand how to use PHP with MySQL to have a members table to validate passwords. And to limit the generation of member pages to members only. But what about photographs? If someone knows the complete URL they could view it directly, unless the

Re: [PHP] How to show proper time to users from around the world

2007-08-29 Thread mike
On 8/29/07, Hemanth [EMAIL PROTECTED] wrote: Hi friends, Is there a solution to showing the proper time and date at user browsers and also recording proper USER times in the database operations in mysql if you have the opportunity to have them input the time, you can then use

RE: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-29 Thread Ford, Mike
'), ini_get('session.cookie_domain')); Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley

[PHP] date formatting

2007-08-29 Thread Mike Ryan
I would like to have my users input the date formate as mm-dd- mysql wants the data to come down as -mm-dd. The question I have is how do I convert from the mm-dd- to -mm-dd so that I can write it out to the database? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] why?

2007-08-28 Thread mike
On 8/28/07, Jay Blanchard [EMAIL PROTECTED] wrote: Since PHP cannot read registry settings (neither can JavaScript) on the client that is out. Windows is aware of the logged in user, but exactly where that 'session' information is kept is a mystery to most of us. So PHP cannot be aware of a

Re: [PHP] why?

2007-08-28 Thread mike
On 8/28/07, Stut [EMAIL PROTECTED] wrote: In addition the OP is running IIS so this is all kinda less than helpful to him. yeah, i didn't say this would, but it should be able to be ported to a PHP module by someone i would think. i mean if someone can do it in Perl or C (especially C) why

Re: [PHP] A simple PHP script to generate a Pie Chart based on SQL query

2007-08-27 Thread mike
Hello All, I am looking for a simple PHP script that can generate Pie Chart based on SQL query resultset. I don't want a reporting system, as we are already using Crystal Reports for that. Any suggestions? one word is all you need: jpgraph -- PHP General Mailing List

Re: [PHP] why?

2007-08-27 Thread mike
On 8/27/07, Jay Blanchard [EMAIL PROTECTED] wrote: Are you trying to do single sign-on? This would be one of the holy grails of the PHP on Linux, Windows clients operations. This is available with .Net and with legacy ASP/Jscript apps but not with PHPeven on windows there's an apache

Re: [PHP] help with session

2007-08-26 Thread mike
On 8/26/07, Jason Cartledge [EMAIL PROTECTED] wrote: I would replace $_REQUEST with $_GET or $_POST (as appropriate) if ( !empty($_REQUEST['gender']) ) { $registrationGender=$_REQUEST['gender']; } else { Personally I would use

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
On 8/26/07, Richard Lynch [EMAIL PROTECTED] wrote: This is *SO* not correct at all! $_REQUEST[] is merely array_merge($_GET, $_POST, $_COOKIE); Yes and it mimics being lazy - allowing overriding values from $_POST vs. $_GET vs. $_COOKIE depending on what the programmer wants to trust It

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-26 Thread mike
I'll say it again: regsiter_globals has *NOTHING* to do with $_REQUEST. Zero. Zilch. Nada. Zip. To me it allows for the same [lazy] behavior. Period. I've had other people agree. Say what you want about it. No, it only relies on one Designer who wants their request to look like a FORM

Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/23/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
of collecting data and sending the key/value pairs in POST or GET... IMHO the HTML portion should already be known before someone steps into the realm of PHP and server-side programming) - mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/24/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hi.. in the settings, session.use_cookies is turned ON but session.trans_sid is turned OFF. do i need to enable this as well? by doing this can i disable the register_globals? - suamya You need to make sure session_start() is called on

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread mike
during an RCx before a gold build or something. Any loss of functionality due to them should be a configuration option to turn on/off but otherwise everyone would benefit from security, memory leak, and other patches... - mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread mike
On 8/22/07, M. Sokolewicz [EMAIL PROTECTED] wrote: because such options slow down the execution of every PHP script, even though disabled. compile time options wouldn't be much of a slowdown. and in my mind, with CPU power being quite cheap, i could see it being more valuable to have more

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread mike
On 8/22/07, Chris [EMAIL PROTECTED] wrote: That's a completely wrong assumption. PhpBB has had a lot of vulnerabilities in the past, as has php-nuke and other popular packages. They've been around for years and not written by newbie's as far as I know - but I don't have any link to either

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread mike
On 8/22/07, Chris [EMAIL PROTECTED] wrote: I'm agreeing with the ideas behind Grasp Suhosin - I'm just disagreeing with Daevid's comment about them only being for 'newbie' installations. oh, most definately. i consider myself a very tight coder - but i'd prefer to have them in my PHP install

[PHP] keeping fields moving forward

2007-08-21 Thread Mike Ryan
I am creating a series of forms that collect information this covers 3 screens before I want to write it out to the database. when I go from one screen to the next I have tried hidden and readonly input boxes but the data in the hidden and readonly fields from screen one do not make it to the

Re: [PHP] keeping fields moving forward

2007-08-21 Thread Mike Ryan
Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Ryan wrote: I am creating a series of forms that collect information this covers 3 screens before I want to write it out to the database. when I go from one screen to the next I have tried hidden and readonly input

Re: [PHP] php/mysql - getting ID of query

2007-08-21 Thread mike
mysql_insert_id() mysqli_insert_id() http://us.php.net/mysql is your friend :) http://us.php.net/mysqli too! On 8/21/07, John Pillion [EMAIL PROTECTED] wrote: This is as much a mysql question as it is php. What is the most reliable way to retrieve an auto_increment key/id for a query you

[PHP] Re: keeping fields moving forward

2007-08-21 Thread Mike Ryan
I think I have it fixed I had some code wrong in my input hidden variable this worked and did the job for me I am an old time type of programmer who is not very good with the object oriented programming and have not taken the time to learn some new tricks. one day I will. Mike Ryan [EMAIL

RE: [PHP] magic quotes

2007-08-09 Thread Ford, Mike
take care of the damn magic quotes... Why might this not work? Because, by the time your script starts executing, any magic_quotes_gpc processing has already been applied. As such, it only makes sense to set this option in php.ini, httpd.conf or .htaccess (or equivalents). Cheers! Mike

RE: [PHP] Hidden include_path Fall Back?

2007-08-08 Thread Ford, Mike
to always look for files in the calling files' own directory. Isn't this what's documented here: http://php.net/include/? Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James

RE: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Ford, Mike
for Invalid use of either sentence or redundant. (The sentence would be tautological; redundant, the phrase). Nah then, 'appen tha mistook thissen -- this 'ere English can get 'un reet taffled up! Cheers! Mike - Mike Ford, Electronic

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

2007-08-05 Thread Mike
for what should be done to fix this. I considered just converting the file into a function that returns the image, but I cannot find out how to return an image (Or convert the image to a string of bytes as the original code expected it to be). Any help is greatly appreciated. :) -Mike Original code

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

2007-08-05 Thread Mike
Hah, it works! I had to fiddle around a few other errors but that did the trick! Thank you so much. :) -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-08-03 Thread Ford, Mike
On 02 August 2007 17:45, Daniel Brown wrote: Well, you're pleasant today, Mike. H'mmm. I guess that was a little crabby. Sorry. All I can say is that it was practically the last thing I did before going home at the end of a particularly frustrating day Cheers! Mike

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

2007-08-02 Thread Ford, Mike
of these are entirely correct -- you *need* the leading zeros to make the numeric literals be octal: chmod 00755 file.php chmod 01777 file.php chmod('file.php',00755); chmod('file.php',01777); Cheers! Mike - Mike Ford

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

2007-07-26 Thread Ford, Mike
it is... ;) Bottom line, the [PHP] marker *is* there on every message, and if you're not seeing it it's 'cos your client is (for whatever reason) stripping it. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125

RE: [PHP] About DREAMWEAVER

2007-07-06 Thread Ford, Mike
On 05 July 2007 20:19, Dan Shirah wrote: There is a Find and Replace function in Dreamweaver, but it is very specific and will only find specific words/tags. Not at all true. Dreamweaver has a fully-functional regexp search in both Text and Source Code modes. Cheers! Mike

[PHP] working with a pdf file and a mysql query

2007-06-22 Thread Mike Ryan
I have created a pdf form with php that prints out one record using php_show_xy statements but when I try to print out a query with multiple lines of data I get an error that reads Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' in

[PHP] pdf and send to printer question

2007-06-19 Thread Mike Ryan
I am trying to get a query to run and outputed to a pdf file I get the following error Fatal error: Call to undefined function pdf_begin_document() in my php.ini I have php_cpdf.dll and php_pdf.dll enabled am I missing something.? also is there a way to send the document I create to the printer

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread MIKE YRABEDRA
); echo $ret.\n; ? -- Mike Yrabedra B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate images of register definitions

2007-06-18 Thread Mike Frysinger
On 6/9/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, June 9, 2007 4:27 pm, Mike Frysinger wrote: anyone know of some software to generate images like this: http://wh0rd.org/register.png idea is i have a list of registers and their bit meanings, and i want to automatically generate

[PHP] Php script diagnostic app?

2007-06-17 Thread MIKE YRABEDRA
I was wondering if there was some kind of application that would process a php script, logging any functions (or classes) it encounters along the way. Logging times and memory use. I am trying to figure out what in a script slows it down so much. Any ideas? -- Mike Yrabedra B^) -- PHP

RE: Re[6]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Ford, Mike
! ;) - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730

[PHP] generate images of register definitions

2007-06-09 Thread Mike Frysinger
use someone else's work than start from scratch -mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php_ldap.dll and PHP 4.4.7

2007-06-05 Thread Mike Walsh
' - The specified module could not be found. in Unknown on line 0 All of the other extensions are loaded just fine. Anyone know what is causing this? The extension is where it is supposed to be. Mike -- Mike Walsh - mike underscore walsh at mindspring dot com -- PHP General Mailing List (http

RE: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Ford, Mike
() with the appropriate value immediately before every session_start(). For example, for the files in A you could use: session_name('SESSID_A'); session_start(); whilst those in B would have: session_name('SESSID_B'); session_start(); Cheers! Mike

[PHP] problems in WHERE statment

2007-05-23 Thread Mike Ryan
I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * FROM `job listing` WHERE open =$today LIMIT 0 , 30

[PHP] format date field

2007-05-23 Thread Mike Ryan
I am reading in a date field from a mysql database the field on the screen shows up as 2007-05-01 on the screen I would like the field to show 05-01-2007 currently I am issueing the following command print $row['open']; how can I format this field??? while I am at it how can I accept the date

[PHP] date format from a database date field

2007-05-23 Thread Mike Ryan
Sorry I am a bit of a newbie with php and hope this has not been aswered a million times, but here it goes I have a date base with a couple of date fields when I pull up and display the fields it show 2007-05-21. the question I have is how to convert the field to 05-21-2007? Currently the

Re: [PHP] [Linux] PHP and SQL Server

2007-05-21 Thread Mike Smith
On 5/21/07, David BERCOT [EMAIL PROTECTED] wrote: Hi Mike, Le Mon, 21 May 2007 10:24:52 -0400, Mike Smith [EMAIL PROTECTED] a écrit : David, Is MSDE running in mixed mode authentication? I believe by default it only uses Windows authentication. If you're not sure you can readup on how

RE: [PHP] Re: session cookies enabled?

2007-05-10 Thread Ford, Mike
On 09 May 2007 16:36, [EMAIL PROTECTED] wrote: Ford, Mike writes: You can also set up php.ini and use the built-in sessions with http://php.net/session_start so that PHP will take care of this for you. That is what I was intending to do. How do I find out if whether

RE: [PHP] Re: session cookies enabled?

2007-05-09 Thread Ford, Mike
=sessionid', which is what is appended to the URL (or inserted in forms as a hidden value) to propagate the session-id. Cheers! Mike Mike Ford, Electronic Information Services Adviser, JG125, The Headingley

Re: [PHP] Articles system

2007-05-08 Thread Mike Shanley
to claim your free laptop!? -- ~Mike Shanley~ ~you are almost there~ ~no, wait. you are there!~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Feisty Fawn and apt-get

2007-05-05 Thread Mike Shanley
Davi wrote: First: use aptitude instead apt-get... =] Second: use an debian-list to debian's questions instead an php-list... =] Third: Go Feisty!!! -- ~Mike Shanley~ ~you are almost there~ ~no, wait. you are there!~ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Open source web Catalog ?

2007-04-25 Thread Mike Shanley
etc? Thanks! Joey -- ~Mike Shanley~ ~you are almost there~ ~no, wait. you are there!~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to get var name and value from function?

2007-04-19 Thread Ford, Mike
On 19 April 2007 04:36, Richard Lynch wrote: On Wed, April 18, 2007 4:57 am, Ford, Mike wrote: On 17 April 2007 01:18, Richard Lynch wrote: Or is it explicitly stated in the manual somewhere I'm not seeing that one can put things in $GLOBALS directly? [shrug] http://uk2.php.net

RE: [PHP] how to get var name and value from function?

2007-04-18 Thread Ford, Mike
On 17 April 2007 01:18, Richard Lynch wrote: On Mon, April 16, 2007 12:10 pm, Ford, Mike wrote: No, not just another array (although I agree about the function being pretty useless!) -- $GLOBALS is a superglobal array that contains a reference to every variable defined in the global scope

RE: [PHP] how to get var name and value from function?

2007-04-16 Thread Ford, Mike
elsewhere. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6

RE: [PHP] how to get var name and value from function?

2007-04-16 Thread Ford, Mike
On 16 April 2007 16:18, Tijnema ! wrote: On 4/16/07, Ford, Mike [EMAIL PROTECTED] wrote: On 14 April 2007 13:16, Afan Pasalic wrote: Tijnema ! wrote: On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote: function value2var($array, $print=0) { foreach ($_POST as $key

Re: [PHP] Submitting as POST. Why?

2007-04-06 Thread Mike Shanley
that people don't change anything, then go with GET. barophobia wrote: My Peeps, I only know of one reason to submit a form as POST and that is because you can submit more data in one shot. What other reasons are there? Chris. -- Mike Shanley ~you are almost there~ A new eye opens

[PHP] Using /index.php/this/that/343/3 style links but having a prob!

2007-04-05 Thread Mike Shanley
))); unset($CALL[0],$CALL[(array_search('index.php',$CALL))]); $CALL = array_values($CALL); and all that does is hand me the info to call my pages... Thanks -- Mike Shanley ~you are almost there~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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