[PHP] duplicate filenames but different .extention

2005-12-18 Thread matt VanDeWalle
hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it is a jpg file, but if its a .gif, just continue. I have several fi

[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
hello, I have encountered this on several cds and well when i went to a friend's ftp site in windows, using linux and php(i think its a linux mainly question) but i have run accross files and directory names like this: they appear like this in linux, path\ of\ the\ windows\ file.txt i am try

[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
well i learned once again, or maybe it is a new commandment for me: "thou shalt not code after midnight" lol because the blank page after the refresh was a really stupid blunder on my part. it seems like I was trying to use $type as a variable but it was refreshing/redirecting to the same pag

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

2005-12-10 Thread matt VanDeWalle
hello again, I tried the meta tag stuff and well where i had it it didn't redirect or refresh, it just litterally echo'd the meta stuff so maybe i read the manual page wrong but it either does that, or presents me with a blank page and i know the pages i have it go to aren't blank :p so i guess

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

2005-12-09 Thread matt VanDeWalle
I am wanting to forward a user on a signup or similar page (based on a few of their answers) and so far i have it split into basically a two-step process where i have on the first part, an option list with 4 choices, they hit continue or some such labled link, and then having passed all the se

[PHP] forking problem and logging off - solved

2005-11-21 Thread matt VanDeWalle
I have fixed my prier problem of my script crashing down whenever i logged out of the shell, I got a bright idea, (one of the few it seems i'm having lately :p ) I found out that there is a "nohup" command ..i guess i knew there was but i had forgotten that until today. I put this in a script n

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 off in php

2005-11-21 Thread matt VanDeWalle
hello, 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, and keeps running. Well, the problem that was not apparent to me until about 3 days ago when I was wondering why the scr

[PHP] new to sessions, but learning

2005-11-20 Thread matt VanDeWalle
hello, I am writing basically what is hopefully going to turn out eventually to be a penpal website. There are millions out there i know but some are to slow and only load half the page whenever it feels like it + has a bazillion ads and well, other things..so I decided to write my own

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

[PHP] wanting to get host name instead of ip

2005-11-10 Thread matt VanDeWalle
hello, I was wondering, is there a way to get a connection's name(host's name instead of just ip), i am using the cli version of php and am now using the function getpeername() but for example, i would like to be able to have it say something like "connection: localhost " instead of "con

[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

[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] possibly buffer problem, including a bit of code this time

2005-10-04 Thread matt VanDeWalle
oops, sorry about the lack of any code with my last problem message. I am still having the same buffer problem where after asking for a password, it doesn't stop and wait, just falling through to the next prompt. here is basically what the new_user function looks like. I am using php 4.3.10 o

[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

[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] would this be a buffer problem or something else

2005-10-01 Thread matt VanDeWalle
hello all, I have noticed on this server/talk/chat I am trying to write, that when i or another user logs on, right away, it will go to the if statement in my chat handling function, that says something to the affect of /* something entered but not a . */ if(($words[0] != '.' ) && count($words

[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 -- PHP General

[PHP] array simple question

2005-09-13 Thread matt VanDeWalle
hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you don't use more command or a pipe of some kind that could be useless in some cases, but I am just wondering, fo

[PHP] turning off echoing of chars

2005-09-12 Thread matt VanDeWalle
hello, I am wanting to turn of screen echo for a login function or changing a password or similar things. I got the function to almost work, however it turns off the screen echo but it asks for the password, won't give you a chance to fill it in, and skips right on to the next prompt(and has t

[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] 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] ran into a seemingly odd problem

2005-09-10 Thread matt VanDeWalle
Hello all. I am new to this list but not to new to php although maybe the problem I am having will prove otherwise ok, I am writing a server(or trying to), Basically I am attempting to write a chat type server in php. I cant seem to get it to realize that I have typed more than one word, so e