Re: [PHP] Find file version

2007-07-26 Thread Matt Carlson
Message From: Richard Lynch <[EMAIL PROTECTED]> To: Matt Carlson <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Friday, July 27, 2007 12:52:08 AM Subject: Re: [PHP] Find file version On Wed, July 25, 2007 12:26 am, Matt Carlson wrote: > I've been recently toying with th

[PHP] Find file version

2007-07-24 Thread Matt Carlson
it a brick wall though. I know binary files have version information available, but can't find anything for php to read this. Has anyone run across something like this in the past? Anyone have any hints of where to go to start reading this info? Thanks Matt -- PHP General Mailing List (htt

Re: [PHP] Sessions VS MySQL

2007-05-30 Thread Matt Fielding
As far as scalability goes, there's actually a game we're referencing a lot to help us make it work at the get go called Kingdom of Loathing ( http://www.kingdomofloathing.com ). This game seems to have on average around 1,000-1,500 users on at any given time. I've noticed when visiting the page a

[PHP] Sessions VS MySQL

2007-05-30 Thread Matt Fielding
I've recently begun work on a web-based RPG game with some friends, and have recently been thinking about the best solution for loading and saving persistent variables like player life/stats and other information. I am both familiar with sessions and mysql for saving and loading variables, and tha

Re: [PHP] should I be looking to eliminate all notices?

2007-04-21 Thread Matt Carlson
I really have to agree here. I have gone through a mature open source project over the last month or so, and removed EVERY notice. It honestly took all of about 2 hours to actually fix the notices. It really isn't hard to eliminate them, and if you are coding something the may be released, yo

[PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Matt
; } else { fwrite($fp, "Test\n"); echo fread($fp, 26); fclose($fp); } ?> Any ideas how I can achieve this? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Matt Carlson
I am running into the same problem. A very VERY basic thing that I worked on for importing yielded this: preg_match_all('/.*?(?:\$lang([^=]*)=(.*?); *$.*?)+/ms', file_get_contents("localization/enUS.php"), $parsed); It wasn't the best, but it worked 90% of the time. Maybe this can help you on

[PHP] Question on Portfoilo's

2007-04-09 Thread Matt Carlson
So i've been meaning to start a portfolio of some code, so that when I apply for a job, and they want code samples, I have something to show them. Unfortunately, at this time, most of my work is inside of a much larger application, or in code that belongs to my current employer (not a php job,

[PHP] Google-Yahoo venture and PHP

2007-03-31 Thread Matt Kay
will be getting our desktop as a service, and MS have the same goal. PHP will only be a small part of this if Zend decide to throw thier lot in also. Matt

Re: [PHP] Where is phpm

2007-03-29 Thread Matt Carlson
I don't know how much of it I have left. I know that I hacked it up quite a bit when I created an irc bot with the php reference manual. Unfortunately, there really isn't an easy way to get function information as such from inside of php, without parsing php's website. The phpdoc stuff wasn't

[PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Matt Arnilo S. Baluyos (Mailing Lists)
64.70/phpinfo.php - if you notice short_open_tag is set to "On". But when you access a PHP page at http://202.171.164.70/admin/login.php and try to view the source, the short open tag is not escaped. Any reason why this isn't working as expected? Regards, Matt -- Stand before it and t

[PHP] Re: SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/26/07, Matt Arnilo S. Baluyos (Mailing Lists) <[EMAIL PROTECTED]> wrote: Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script

[PHP] SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
-lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 I tried to check if it was missing a package but I see that libtool-ltdl is already installed on the server. Anyone know what could be wrong here? Regards, Matt -- Stand before it and there is no beginning. Follow it and t

[PHP] Integer question

2007-03-22 Thread Matt Carlson
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How do you handle numbers that large, while maintaining p

[PHP] Integer question

2007-03-22 Thread Matt Carlson
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How do you handle numbers that large, while maintaining p

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
---- From: Matt Carlson <[EMAIL PROTECTED]> To: Jonathan Kahan <[EMAIL PROTECTED]>; php Lists Sent: Tuesday, March 13, 2007 5:12:03 PM Subject: Re: [PHP] 2 errors I can not understand I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NE

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NEVER be < $s if $s = 3. I think you want $d<=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan <[EMAIL PROTECTED]> To: php Lists Sent: Tuesday, March 13, 2007

Re: [PHP] Variable variables and references

2007-03-10 Thread Matt Carlson
I've used variable variables probably 5 times in 2 years. They are great when you need them, but don't usually have a day-to-day use for them. Here is some sample code of the last time I used it. if(isset($$key)) { print($$key); continue;

[PHP] PHP Documentation in XML

2007-02-27 Thread Matt Carlson
Does anyone know where I could find PHP Documentation in XML or in an SQL dump? I'm trying to write an IRC bot that can retrieve information on php functions, and am realizing this would be the easiest way. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] array issues

2007-02-26 Thread Matt Carlson
If i'm understanding you correctly, you have something like a flat file, and hopefully it is artist[tab]artist[tab] with the title being something like artist1title[tab]artist2title[tab], etc. If so, use explode. $artists = explode("\t", $stringofartists); $songs = explode("\t", $stringoftitles

[PHP] Classified Ads Script

2007-02-19 Thread Matt Arnilo S. Baluyos (Mailing Lists)
to what they're using and what they think of it. Best Regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another hand wringer

2007-02-18 Thread Matt Zandstra
Looks to me as if you're treating $flen as an array in one place and as a value in another: String here: $flen = $_POST['flen'];// length of text field group, shows to be the Array here: for($i = 0; $i < count($flen); $i++) Remove the count() and you'll probably get what you

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Matt Carlson
Having learned Bridge when I was younger, I feel PHP is alot easier to learn as it is "constant" in a way. Depending on cards you are holding, cards your partner is holding, and your oponents bidding, depends how you should bid. Quite a bit of variablity in there. - Original Message

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Matt Carlson
It will never receive a base name due to the way the data is structured before being passed into the function. I appreciate everyone's input on this. It's been tough for us to develop what we did (since it's such an odd case), and it's good to see other possible methods to do this in a better

Re: [PHP] Server Stall

2007-02-05 Thread Matt Carlson
If you have cURL installed, you could use Curl to get the file, and manipulate the contents that way. Here is the standard function I use for grabbing a remote page. function doRequest($method, $url, $vars = '', $headers = '0') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);

[PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Matt Carlson
Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\\'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' => array('Addons' => array('' => )));). We came up with a very ugly hack to do it

Re: [PHP] Re: Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 1/8/07, Ville Mattila <[EMAIL PROTECTED]> wrote: Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti: > What's the easiest way to go about this? Specifically, what's the > easiest way to read a file from the server and send it as an email > attachment. I woul

[PHP] Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
r and send it to an email. What's the easiest way to go about this? Specifically, what's the easiest way to read a file from the server and send it as an email attachment. Best Regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the an

Re: [PHP] Highjack?

2006-11-13 Thread Matt Carlson
With register_globals on, the globals super array ($_POST, $_GET, $_REQUEST) are automatically populated into variables. With that in mind www.example.com/index.php?path=remoteexplot.com/ would then yield include('remoteexplit.com/foo'); thus including ANY code they wish. - Original Me

Re: [PHP] Re: php.ini

2006-11-09 Thread Matt
Adding the line: PHPINIDir "c:/php/" to my Apache configuration file has worked for me on Windows installs, assuming that you are using Apache. On 11/9/06, zerof <[EMAIL PROTECTED]> wrote: Alain Roger escreveu: > Hi, > > everytime i install PHP, my "php.ini" must be installed in "C:\windows\"

RE: [PHP] PHP Zip Question

2006-11-07 Thread Matt Street
ll of this is that my code is now working and I can finish off my tests. Thanks again Matt -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 06 November 2006 21:02 To: Matt Street Cc: 'php-general@lists.php.net' Subject: RE: [PHP] PHP Zip Question On Mon, Nov

RE: [PHP] PHP Zip Question

2006-11-06 Thread Matt Street
tarts PK!!! Anyone any ideas??? Thanks in advance Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Matt Beechey
o be lacking more in HTML and Browser server relationships - I'm basing things on my background in Basic programming as a kid - you do Print "Hello world" and it does that instantly to the screen - little different with browsers! Matt "Myron Turner" <[EMAIL PROTECTED]&

[PHP] Problem with EXEC and PASSTHRU

2006-10-25 Thread Matt Beechey
he service has restarted at which point they are returned to index.php - its as if the exec and the sleep and the refresh to index.php are all kind of running concurently. Can someone PLEASE tell me what I'm doing wrong - or shed light on how I should do this. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Zip Question

2006-10-24 Thread Matt Street
e.''; } zip_close($zip); to the bottom of my page it correctly displays, on screen, the 3 files I expect to be in the zip file. Any help would be very gratefully received as this is driving me mad!!! Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FTP Copy

2006-09-19 Thread Matt Palermo
upload it to a different place (takes a long time). Is there an FTP that will just copy the file/folder from the FTP server without the need to download/upload it somewhere else? Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-03 Thread Matt Todd
In my experience with the other frameworks (primarily Wasp, CakePHP, Symfony, eZ Components, and Zend Framework), I've found that I was not satisfied with the quantity of low-quality code they advocate. I have a high standard for code quality, readability, maintainability, and (more generally) sem

[PHP] Organizing a group project

2006-06-19 Thread Matt Palermo
with and learn from other developers as well. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wath�s wrong?

2006-05-26 Thread Matt Carlson
I think that one of the issues is that when you assign a variable using "" instead of '', it will auto-replace your variable names inline. I don't know, but I think you should be escaping the $ before the <. --- Jo�o C�ndido de Souza Neto <[EMAIL PROTECTED]> wrote: > Hi everyone. > > I ha

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Matt
Just in case you ever need to check the configure line again in the future, you can get at it (even if you've built through the FreeBSD ports) through a phpinfo page. The third section on that page is labeled "Configure Command" and lists all the options used during the build. M

[PHP] Handling illegal byte sequences in UTF-8 strings

2006-04-21 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello list, We have recently upgraded our database to PostgreSQL 8.1.x which handles UTF-8 more strictly than previous versions. The new version will not allow illegal byte sequences when inserting data. This has caused some errors in our system which inputs data. Basically, what the system does

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-21 Thread Matt Todd
You guys make me laugh... :) (And I really actually mean that in a nice way... that last bit was quite funny. And yes, size does matter... some don't like it _too_ big.) But, I digress. I'm OK with taking this off-list... though I'd rather publicly reply. Yeah, I meant procedural, not functiona

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-19 Thread Matt Todd
There's nothing wrong with staying true to the philosophy at all, I just think that it may well be detrimental in the end. And that is what I said in the (toilet)paper, that there will be (emphasis on the eventuality, not on the present actuality) a time that PHP will become the old stuff because i

[PHP] Re: no offense to Rasmus... are you kidding me

2006-04-19 Thread Matt Todd
Yes, I absolutely agree that Rasmus is awesome and his accomplishments are far and beyond amazing, but I'm saying that I think that Rasmus is motivated to stay true to PHP's philosophies and not be willing to rethink them: that is what I meant by that. In no way am I saying that Rasmus doesn't DES

Re: [PHP] microsoft PHP ?

2006-04-03 Thread Matt Richards
I wonder how long this is gonna go on for, its ironic that the name 'Microsoft' seems to spread through this mailing list just like it spreads through peoples computers ... humm another thing that implies the same rule is a virus ! derm derm drm... Ryan A wrote: Hey, Just as long

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Matt Richards
oops forgot the first .. oh well! :( Matt Richards wrote: quote: Joe Wollard wrote: Just as long as everyone knows that everything I said was all in good fun. Next time I'll be sure to use just to be sure nothing is taken the wrong way ;-) Joe Wollard wrote: Just as long as eve

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Matt Richards
quote: Joe Wollard wrote: Just as long as everyone knows that everything I said was all in good fun. Next time I'll be sure to use just to be sure nothing is taken the wrong way ;-) Joe Wollard wrote: Just as long as everyone knows that everything I said was all in good fun. Next time I'

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Matt Richards
Zouari Fourat: lol, bet you feel silly now :) Stut wrote: Zouari Fourat wrote: :) Gerry not that funny ;) I was affraid :o from the news Rule #1 on the Internet... Never trust any news without a link to an official source Rule #2 on the Internet... Never trust anything you read on April 1st

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/29/06, Ray Hauge <[EMAIL PROTECTED]> wrote: > Chris Shiflett has written a number of good articles on the matter. You can > find them at: > > http://shiflett.org/articles > > The articles in particular would be: > > Security Corner: Cross-Site Request Forgeries > Security Corner: Data Filterin

[PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, Would anyone know a PHP script that can sanitize variables to prevent XSS and SQL injection? Thanks and best regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List

Re: [PHP] Re: is there a guide for pda friendly web pages

2006-03-21 Thread Matt Richards
> Rick Lim wrote: >> is there a guide for pda friendly web pages. > Yeah there is one. lol, would you like to tell us where its located please? > > -- > Smileys rule (cX.x)C --o(^_^o) > Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubs

Re: [PHP] HOW update time and date-fields to mysql....

2006-02-28 Thread matt stone
l .= ", insertDate='" . $dat . "'"; > $sql .= ", insertTime='" . time() . "'"; > $sql .= " WHERE IDForum=" . safeQuote($idForum); > $querys = mysql_query($sql); Use NOW() for both your date and time fields if the fields have been set up as that. MySQL will then add the date and time according to whatever those values are on your db machine. Cheers Matt

Re: [PHP] How secure is this?

2006-02-23 Thread matt stone
vascript consoles outputs: Error: document.getElementById(update[0]) has no properties Source File: http://www.xn--ovg.com/aja/test.js Line: 35 Cheers Matt

[PHP] Beta Testers Wanted

2006-02-22 Thread Matt Palermo
I have available at http://sweetphp.com and they have become very successful because of all your help. Thanks, Matt Palermo [EMAIL PROTECTED] http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] define() or $variable for application settings?

2006-02-09 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 2/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > bare in mind though that define() is horribly slow (to paraphrase > Rasmus) which may be the reason many projects choose to use variables > instead. see here: Thanks Chris and Jochem! That should've been my follow up question - which is, if defi

[PHP] define() or $variable for application settings?

2006-02-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
ns on this one. Thanks and best regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Application Vuln. Testing

2006-02-07 Thread Matt Stone
gt; code auditing which *specificly searches PHP code for SQL, XSS type of > attacks or vulnerabilities? TIA. > http://www.parosproxy.org/index.shtml doesn't audit source code but if you can dump your code on a test box you can test it from another machine. Cheers Matt -- PHP

[PHP] Re: Custom Usort Function

2006-01-24 Thread Matt Palermo
Any ideas on how to accomplish this? ""Matt Palermo"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm try to sort a list of items using a usort function. Basically, I want > it to sort in this order: > > Numbers (0-9) > Letters

[PHP] Custom Usort Function

2006-01-23 Thread Matt Palermo
get these results? Please let me know. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] most reliable way to test if using https

2006-01-13 Thread Matt
James Benson wrote: What is the most reliable way to test if a connection is already using the https protocol, is their a PHP constant or something builtin already? Thanks, James Something like? if (isset($_SERVER["HTTPS"]) && 'on' == $_SERVER["HTTPS"]) {// ssl } else { // non-ssl } -- P

[PHP] worked around STDIN problem from before

2006-01-07 Thread matt V
hmm, it seems php -a likes to complain heh, so I decided to do my little STDIN tests in an actual script and not interactively and turned off error reporting..things are all happy again in "matt land" lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] thought stdin was supposed to default open

2006-01-07 Thread matt V
de, or is STDIN not opened by default in php4.4 this is on slackware linux version 10.2 running php -v 4.4 matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-20 Thread Matt
Install the "php5-session" port from your ports tree to enable sessions. It's located in "/usr/ports/www/php5-session" on a default install with the port tree. On 12/19/05, John Nichel <[EMAIL PROTECTED]> wrote: > Jose Borquez wrote: > > John Nichel wrote: > > > >> Jose Borquez wrote: > >> > >>

[PHP] duplicate filenames but different .extention

2005-12-18 Thread matt VanDeWalle
verything is ignored any ideas? matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] asked too soon, nevermind

2005-12-18 Thread matt VanDeWalle
I just figured out my own answer to the previous post so i guess just ignore the question :p i'll learn to try things first one of these days lol matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] spaces in directory names

2005-12-18 Thread matt VanDeWalle
i am trying to read a directory from a cd made in windows with a 3-word or longer directory name like the one shown above, but how do i deal with a oddly named directory like that in linux/php? I know spaces don't work when changing directories so would i have to escape the space or what? m

Re: [PHP] Need help with modifying values

2005-12-18 Thread Matt Stone
There's a big difference between the first and second scripts your using. The second one isn't using a while loop so will only return the first row in the recordset. See below. HTH Cheers Matt - Original Message - From: "Anasta" <[EMAIL PROTECTED]> To: Sent:

Re: [PHP] Blocking Values From an External Source

2005-12-16 Thread Matt Stone
ield. Who needs a bot to post that info when a single click on a form can see your script used to spam a stack of recipients? To put it another way, is it worth validating the source of your input if you're not going to validate the input itself? HTH Cheers Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread matt
> On Dec 12, 2005, at 8:21 PM, Ray wrote: >> Hello, >> Thanks Matt, I appreciate your help. your solution is a lot easier >> than mine. >> It's also nice to understand what was happening. I was introduced to >> PHP >> after that type of globals

RE: [PHP] Re: R: [PHP] Date Function Questions

2005-12-11 Thread Matt Babineau
System Time > Is the system time through Linux, Apache or through the php.ini file? > > > > On 12/11/05, Sebastian En3pY Zdrojewski <[EMAIL PROTECTED]> wrote: > > > > afaik it's the system time. > > > > Cheers > > > > En3pY > > > > > > Sebastian Konstanty Zdrojewski > > > > _

RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-11 Thread Matt Babineau
Register globals is no longer ON I believe. That is why it happened. To fix this: Foreach($_POST as $key => $value) ${$key} = $value; That will convert all of your post variables to local variables. :) Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] h

[PHP] quickly discovered why refresh isn't nice

2005-12-10 Thread matt VanDeWalle
hello, I just found out why one reason for a meta refresh is a bad idea, it does exactly that, it refreshes the page every 3 or 2 or 0 seconds which basically is constant..so maybe the header idea is better in this case. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] simple-ish question but something i never knew

2005-12-10 Thread matt VanDeWalle
s it was doing what i told it, not what i wanted though :p matt On Sat, 10 Dec 2005, Robert Cummings wrote: On Sat, 2005-12-10 at 02:55, Michael Hulse wrote: On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote: Its been my experience that meta tags work better. header("Refresh: 0; URL=https:/

Re: [PHP] simple-ish question but something i never knew

2005-12-10 Thread matt VanDeWalle
s i'm a moron at times :p and its not my usual time to be up but maybe that has something to do with it anyway i will do some reading when my mind is switched on lol matt On Sat, 10 Dec 2005, Robert Cummings wrote: On Sat, 2005-12-10 at 03:01, Aaron Koning wrote: My experience was with

[PHP] simple-ish question but something i never knew

2005-12-09 Thread matt VanDeWalle
could have probably done this "switch on the fly" like some pages do but I was told that requires java and i don't have or want to use java lol matt if possible i want to keep my webpages java free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need session_start() to recall session data.

2005-12-03 Thread Matt Monaco
PROTECTED] > On Sat, Dec 03, 2005 at 01:28:21PM -0500, Matt Monaco wrote: >> I have the following two methods as part of a class I'm using to >> transport >> data between pages. >> >> static function pack($object) >> { >> if (sessio

[PHP] need session_start() to recall session data.

2005-12-03 Thread Matt Monaco
I have the following two methods as part of a class I'm using to transport data between pages. static function pack($object) { if (session_id() == "") { session_start(); } $class = get_class($object); $_SESSION["cmsSessionArray"][$class] = seri

Re: [PHP] Determine object type

2005-12-02 Thread Matt Monaco
Hah, I was looking in the object aggregation functions, that really deserved a RTFM "Ray Hauge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That would be get_class( [obj] ); > > http://us3.php.net/manual/en/function.get-class.php > > Matt Monaco

[PHP] Determine object type

2005-12-02 Thread Matt Monaco
Is there a function or method to determine the class an object was defined from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit Form Values To Parent

2005-12-02 Thread Matt Monaco
is valid just as with any other link. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I get the form values submitted from an iframe where the target is > the parent window? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] weird error, cookies??

2005-12-01 Thread Matt Monaco
Check your http access file to verify what david and jochem have said, you should see lines upon lines of access for the pages in question. "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Angelo Zanetti wrote: >> Hi guys. >> >> Been working on my site and then been tr

[PHP] Re: $_POST won't work for me

2005-12-01 Thread Matt Monaco
As I learned recently, register_globals should always be off, you do not need it to enable GET and POST variables. I believe enabling it will do something like set $_POST["name"] to $name automatically (of course there's always the 90% chance that I'm absolutely wrong). You might want to see i

[PHP] Re: checkboxes

2005-11-29 Thread Matt Monaco
Well if your keys are a straight sequence of numbers instead of a foreach you can do a for loop and for those whose value is not one, set to zero. Matt "blackwater dev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a form where I am dynamically bui

Re: [PHP] help avoid multiple login

2005-11-28 Thread Matt Monaco
nclude the file using require_once("Login.class.php"); Matt ""mail.pmpa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >De: Matt Monaco [mailto:[EMAIL PROTECTED] >Create an object with the functionality of your choosing, in the destructor

[PHP] Re: help avoid multiple login

2005-11-28 Thread Matt Monaco
Create an object with the functionality of your choosing, in the destructor perform your cleanup operations. ""mail.pmpa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings > > I'm having some trouble on a members online script. > I use a php script to track member login t

[PHP] Re: A basic question

2005-11-27 Thread Matt Monaco
In your server configuration file (httpd.conf for apache) you specify which extensions are parsed by the php module. It is perfectly acceptable for you to specify .html in addition to .php as a parsed extension. "Oil Pine" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I

[PHP] Re: When to make a class

2005-11-26 Thread Matt Monaco
There's really no reason making classes for those (unless you'd like to write an entire HTML class and its children - I'd be happy to use it!). Matt "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My background is in Object Orie

[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter. Then use the pearl regular expressions functions to replace with the elements you'd like. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create my own CMS. To being with I wa

[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter. Then use the pearl regular expressions functions to replace with the elements you'd like. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create my own CMS. To being with I wa

Re: [PHP] mysqli unclonable object

2005-11-25 Thread Matt Monaco
In outlook express by default the headers are displayed as some icons and then subject, from, sent, size. For some people From is displayed in double quotes, and others not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
turned on. Matt "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Monaco wrote: >> I apologize, but I've never been able to access $_POST and $_GET in any >> context whatsoever without first turning on the register globals.

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
I apologize, but I've never been able to access $_POST and $_GET in any context whatsoever without first turning on the register globals. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Monaco wrote: >> Somewhat, but its what you n

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
erties into a MySQL or other database? Then on a page that you need the properties you pull them from the table? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > I mean the object itself, not the class (the file containing the class > definition is included on all necessary pag

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
hecked for things like quotes and other characters that will alter your SQL statement before you actually INSERT that value into your table. "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Doesn't that cause security problems? On 11/25/05

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
I mean the object itself, not the class (the file containing the class definition is included on all necessary pages with require_once("file.inc.php"); I want to create an object on one page ($obj = new MyClass();) and have it on other pages, all members and functions intact. Matt

[PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
In php.ini (most likely located in your windows directory) look for the globals section and turn register_globals = on Matt "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and $_PO

[PHP] Re: swaping numerical index for keys

2005-11-25 Thread Matt Monaco
the numeric keys entirely, but after this function they still exist. Matt "Pooly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I've an array : $ls_statfields=array( "rfile" =>0, "file" =>1, "dev&q

[PHP] Re: array woes

2005-11-25 Thread Matt Monaco
displays $cars[]. Matt "blackwater dev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello all, I have some array code driving me nuts. I am pulling from a db: select id, vehicle, has_quotes from cars where active=1 I then loop through these and build an a

[PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
What is the best way to pass an object between pages? Currently I am first serializing, then doing a base64_encode, this doesn't seem entirely efficient. (Especially the encode). I am however using the encode because I have the serialized object as the value of a hidden form element. I can only

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
I get string(1) "", should that be taken just the same as 0? In addition phpinfo() indicates php 5.0.4 - does the upgrade to .5 involve remove .4 first? btw, as I'm new to the mailing list thing, why do some names appear in quotes and others do not? Thanks, Matt "

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