[PHP] Echo array string index?

2005-07-13 Thread Matt Darby
I have an array setup as such: *$arr['generated text']='generated number';* What would be the best way to echo the key in a loop? Seems pretty easy but I've never attempted... Thanks all! Matt Darby

Re: [PHP] Refresh

2005-07-14 Thread Matt Darby
Put this between the page's tags: http://somesite_to_refresh_to";> The "1" in the above line controls the time to refresh; the higher the number, the longer to refresh. Matt Darby Miguel Guirao wrote: Hello people, I need to have a web page (PHP) that displays

Re: [PHP] Tired and feeling dumb...maths question....

2005-07-14 Thread Matt Darby
$average = round(($votes/$pts),2); ;) Ryan A wrote: people vote on a scale of 1-5, so the average should be between 1-5 (right?? am not even sure of this!) Yes. I was thinking of rounding it with a 2 decimal point...eg: round(5.045, 2) Just need to solve this and them am hittin

RE: [PHP] HTML -> PDF PHP Package

2005-07-15 Thread Matt Babineau
Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 10:56 AM To: php-general@lists.php.net Subject: [PHP] HTML -> PDF PHP Package Hi Ever

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
server. Is there a way around something like this? Or perhaps could the script keep time of how long it has been running will reading/writing and then be able to continue writing to the partial file? Does anyone have any suggestions for this problem? Thanks, Matt Palermo http://sweetphp.com

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Darby
Wouldn't something like rsync be better suited for this? I only ask because I've run something like this before... Matt Darby Richard Davey wrote: Hello Matt, Saturday, July 16, 2005, 3:04:29 AM, you wrote: MP> I am writing a script that will read a file from a remote server

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
t uses the fopen() function to access the PHP file, that when the remote PHP file gets executed it can log some information about the source server which is accessing it? If so, what kind of code would I need to place in the remote PHP file to obtain some of the information. Thanks, Matt Pa

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
p.ini: Find php.ini (not sure where it installs to in Windows version), and set error_reporting = E_ALL. This will show all notices and warnings generated by your PHP code; extremely usefull in debugging. Matt Darby Linda H wrote: Hi, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Try this just for kicks: See if this will output errors. It's rather hard to debug without error messages ;) If I remember correctly, isn't php.ini supposed to be in c:/PHP? Linda H wrote: Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini is i

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
You should definitely see a listing for MySQL in phpinfo()... What order did you install MySQL/PHP/Apache? Linda H wrote: I added the following to the top of my script: Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wron

Re: [PHP] My Project

2005-07-19 Thread Matt Darby
George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`

Re: [PHP] My Project

2005-07-20 Thread Matt Darby
It *is* a great book (I cut my teeth with it as well): PHP and MySQL Development (Welling and Thomson) http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glance&s=books&n=507846 Read it, learn it, live it. Matt Darby Jay B

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <[EMAIL PROTECTED]> wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for e

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
http://uk.php.net/manual/en/ref.session.php Mikey So long as you call session_start(); at the very top of your scripts, sessions will work. session.auto_start is fine if your entire site will be using sessions. Matt Darby

Re: [PHP] PHP and MySQL and resouce limits

2005-07-20 Thread Matt Darby
correct? This happens to me sometimes if the query is rather crazy... Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rate to charge

2005-07-21 Thread Matt Darby
ideas on how to charge would be great. Thanks I charge $50/hr. Be very careful when you specify a timeline, it will always take at least 10-25% more than you estimate! It's better to over estimate and complete earlier. At least it makes you look good ;) Good Luck! Matt Darby -- PHP Ge

Re: [PHP] Affiliate Tracking [Management] program

2005-07-22 Thread Matt Darby
Eugene Voznesensky wrote: I' looking for free PHP/MySQL Affiliate Tracking [Management] program. Would appreciate any advice/idea fd. Have you looked over sourceforge.net? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Konqueror does not like my Website

2005-07-22 Thread Matt Darby
The easiest way to fix this is to validate your output. Konqueror is likely more picky about correct code. Here is validator output: http://validator.w3.org/check?uri=http%3A%2F%2Fmichelle.konzack.home.tamay-dogan.homelinux.net%2Ftdlandmap%2F Michelle Konzack wrote: Hello *, I an developing

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Matt Darby
$_REQUEST['user']==$curr_user?$select="selected":$select=""; echo("$curr_user Jack Jackson wrote: Hi, I have a form and it does basic error checking after submission; when the user omits required fields it kicks back the form with highlighted errors telling them the error of their ways

Re: [PHP] How would you create a tracking pixel?

2005-07-25 Thread Matt Darby
A blank (transparent) pixel would be more difficult, but a simple colored pixel would be easy: In target file: pixel.php I guess this begs the question, why not use session variables to track activity?? Matt Darby Brian Dunning wrote: I want to create a pixel that can be used to track

Re: [PHP] PHP form not working

2005-07-28 Thread Matt Zandstra
The latter is slightly more efficient, but you won't notice the difference. Incidentally, you should consider separating your presentation from your logic a little more, but that's a whole other issue. HTH Matt On Thu, 28 Jul 2005, Bruce Gilbert wrote: Here is

Re: [PHP] is it possible.

2005-07-29 Thread Matt Darby
lag in the database that this link is no longer valid, and redirect the user's browser to the file (check out the "header" function). The link in the email will only be valid once (or as many times as you allow). You could even tie this in with a login/password form. HTH! Matt D

Re: [PHP] Redirect with referer info

2005-07-30 Thread Matt Darby
Dotan Cohen wrote: Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header("Location: $url"); and print""; Both of them redirect as expected, but the browser (Firefox and Opera) do not send referer information along with the request.

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread Matt Darby
, you will have to preface your script's path in your cron entry with the location of the PHP binary: 0 1 1,15 * * /path/to/php/binary /root/scripts/System_Dump.php Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Bad Idea. A Very Bad Idea actually. If he's just looking to hide error output, he should at least edit php.ini to log to an error file. Otherwise, debugging his code would be horrible. The "@" is total slop. Matt Darby -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] how to check http:// or https:// ?

2005-08-05 Thread Matt Blasinski
True, but if you check that it's equal to 'on' and it doesn't exist, you'll get a warning. If you want to avoid the warning, check that it exists first. Matt I mean, if $_SERVER['HTTPS'] exists doesn't mean it's equal to 'on' bu

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Matt Darby
$num=mysql_num_rows($sql); Gustav Wiberg wrote: Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'"; $querys = mysql_query($sql); //Count products in db // $dbArray =

[PHP] FTP Chmod problem

2005-09-04 Thread Matt Palermo
;.$file; ftp_site($connId, $chmodCmd); This properly changes the folder permissions to 777. Does anyone know why the ftp_chmod() function doesn't work correctly? As a side note, the ftp_chmod() function works correctly on a file, but not a directory. Any help is appreciated. Thanks, Matt Palermo

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Matt Palermo
It doesn't make sense to me that the function would work fine on a file and not work on a directory. Moreover, why would the ftp_site chmod command produce a working result and not the ftp_chmod? This seems strange to me. -Matt "Raj Shekhar" <[EMAIL PROTECTED]> w

[PHP] ran into a seemingly odd problem

2005-09-10 Thread matt VanDeWalle
an integer like it should am I the only one who finds this little thing odd or am I missing something that it is so simple it already sticks out to others as a big glaring error? any ideas? matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seemingly odd problem

2005-09-10 Thread matt VanDeWalle
I should have added in my previous message, what my test input was so : ok, i login, this is what I typed to test the little piece of code i previously wrote... /* my input */ .quit goodbye /* just a note, I know that '.quit' by itself is only one word, i guess I just assumed people would know

[PHP] thanks for the help

2005-09-10 Thread matt VanDeWalle
hello, I just wanted to say thank you to the person who basically rewrote the function i seemed to have problems with and it actually now works. thanks again matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] turning off echoing of chars

2005-09-12 Thread matt VanDeWalle
mpt is where the no-screen-echo finally works like it should I must be doing something incorrectly but, what? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array simple question

2005-09-13 Thread matt VanDeWalle
ering, for an array that has several arrays in it, is there a way to print the array names that are contained in the "main array" but not the contents of each? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array question: fixed

2005-09-13 Thread matt VanDeWalle
hey, thanks for jogging my memory about the array_keys ; that was exactly what i wanted, now I don't have to run the program through the more program now, and i got all the names of the arrays in the big array without having half of the info scrolling off the screen. thanks matt -

Re: [PHP] PDF Thumbnails

2005-09-29 Thread Matt Darby
I wrote a script for this; it's designed to run from the command line in *nix, but can be triggered via exec(): Usage: ./pdf2thumb.php "source_dir" "out_dir" [code] #!/usr/local/bin/php echo("USAGE: pdf2thumb source_folder_path \n\n"); exit; } if(!isset($argv[1])){usage();} substr($a

[PHP] Re: FTP Chmod problem

2005-09-29 Thread Matt Palermo
I'm using 5.0.something. "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: >> Hello everyone. I have a script where I am using FTP functions to chmod >> files/folders. I'm running into a problem with the ftp_chmod

[PHP] File Upload Max Size

2005-09-29 Thread Matt Palermo
stions. I really need to upload larger files, and since it's going to an FTP site, there shouldn't be too many size restrictions. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Upload Max Size

2005-09-30 Thread Matt Palermo
Well, I would like to at least be able to upload a 10mb - 15mb file. I don't need it to upload files that are HUGE, just a reasonable size. "zzapper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 30 Sep 2005 01:19:01 -0400, wrote: > >>Hello everyone. I'm basically bui

[PHP] would this be a buffer problem or something else

2005-10-01 Thread matt VanDeWalle
ything, the code doesn't even wait, it apparently is some big code problem on my part or i just need to somehow clear the input buffer, which i assume is just stdin, do i need something like flush($sock); or did i just hit the nail on the head with that question matt -- PHP General Mailing List

[PHP] problem half-solved, however have another

2005-10-01 Thread matt VanDeWalle
hello again I have been battling this mysterious char thats showing up in the buffer when i first log onto my chat, or else try to add new things to the logon function, I am getting the code not to "fall through" to the next prompt however, using $varname = socket_recv($sock, $read, 1024, 0) th

[PHP] buffer problem having a mind of its own

2005-10-02 Thread matt VanDeWalle
hello again I was writing and rewriting my user function for my chat server trying to crush this bug but its beyond me whats going on. basically I have it so if a new user comes on, we know that if they type "new" at the prompt so it goes to the newuser function, asks for a username, accepts

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
od in your case. HTH! Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
7;t hurt either ;) Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] possibly buffer problem, including a bit of code this time

2005-10-04 Thread matt VanDeWalle
word or email) obviously I'm doing something wrong but what? matt ps, hope that is enough of the code to tell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Matt Darby
pump it in but I am not sure if this is the best option so am looking for suggestions Thanks! You can easily do this; you could also cut out the middleman and use the ODBC driver to import/export directly. HTH Matt Darby -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] small windows odd problem

2005-11-03 Thread matt VanDeWalle
hello all, I have just installed php-4.4.0 on my windows xp system and added the directory to the path c:/php-4.4.0-Win32 but I am having problems with the cli version of php. I can get into the program but after i type a bit of code, I try the following keys to get output but it never parses

[PHP] comment more than a question

2005-11-08 Thread matt VanDeWalle
I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out what this meant, i would

RE: [PHP] Select and $_POST

2005-11-09 Thread Matt Babineau
$query = "SELECT * FROM login WHERE username = '".$_POST['username']."' AND pass = '". $_POST['pass']."'"; > What is the correct syntax for > > $query = "SELECT * FROM login where > username='$_POST['username']' AND pass ='$_POST['pass']'"; > > > Thought this would work. > > R. > > -- > P

[PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
..." instead of "connection: 127.0.0.1" is this possible with the command line interface? I am using php 4.3.10 on linux matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
yes, you assume right, I really did mean socket_getpeername() its about midnight here and my brain shuts down at about 10:30 :p thanks for the reply matt On Thu, 10 Nov 2005, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 11:35:06PM -0600, matt VanDeWalle wrote: hello, I was wondering, is there

Re: [PHP] Validating Email addrs

2005-11-15 Thread Matt Stone
ion for validating emails. >How do you all validated emails on form submission? There's a good article on validating e mails here: http://tinyurl.com/9k5jh Cheers Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] new to sessions, but learning

2005-11-20 Thread matt VanDeWalle
saving the signup info and then when the user clicks continue, it would have their info. I know session vars work between two pages but will sessions work across 3 and 4 pages or not? thanks matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forking off in php

2005-11-21 Thread matt VanDeWalle
script(my php chat server) was crashing at seeminly random times. I finally figured out that when I logged out of my shell in linux, the talker would go down as well. Obviously I don't want that but what do I need to add to the line when i start the script thanks matt ps If it helps,

Re: [PHP] forking off in php

2005-11-21 Thread matt VanDeWalle
ah ok thanks, am reading it now On Mon, 21 Nov 2005, Marcus Bointon wrote: On 21 Nov 2005, at 17:39, matt VanDeWalle wrote: I have what may seem like a small problem but its not obvious to me. I have a script that I forked and that part works fine, it forks, tells me the pid like I wanted

[PHP] forking problem and logging off - solved

2005-11-21 Thread matt VanDeWalle
his in a script now to run my chat now with nohup, something like this /* my script to start server */ #!/usr/bin/bash nohup ./server.php & of course i have to be in the right directory to do this but it works and finally, i can log off of my account without the server going down yay! m

[PHP] Unclonable objects

2005-11-22 Thread Matt Monaco
wever, the code seems to work fine. It still would be better not to use a reference though. Thanks in advance, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysqli unclonable object

2005-11-22 Thread Matt Monaco
ect of type Data." However if I create the link with a reference ... $link =& new Data(); ...everything works fine. This error is interesting because it only occurs on the machine mentioned above, in a Windows/MySQL 5.0 environment, everything works fine without the reference

Re: [PHP] Autodeleting news when it has become yesterdays news

2005-11-23 Thread Matt Stone
yesterdays date? Yup, DELETE FROM your_table WHERE date_column = curdate() -1; Cheers Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
ee if there is already one open, therefore despite the fact that this link wasn't even using the same library (mysql vs mysqli) it didn't matter; only one connection to the database could be made (as root in this case). If this is incorrect or anyone has additional insight, please reply

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 "

[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

[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] 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: $_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

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

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

[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

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

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

[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

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: 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:/

[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

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

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:/

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

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

[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

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

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

[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

<    11   12   13   14   15   16   17   >