[PHP] Help! (How are sessions intended to work?)

2002-01-29 Thread Adam
My Setup Specs -- PHP 4.1.1, MySQL 3.23.36, & Apache 1.3.19 with mod_auth_mysql on OpenBSD 3.0 (OS). Issue - Scenerio: User provides user_id and password. user_id and password are checked against the database (MySQL). If authentication is true the a session is started based o

Re: [PHP] Help! (How are sessions intended to work?)

2002-01-31 Thread Adam
Sukumar S. wrote: > Dear Adam, > > Are you using 'realm' authentication setup? Yes I am.. any ideas? >>My Setup Specs >>-- >> >>PHP 4.1.1, MySQL 3.23.36, & Apache 1.3.19 with mod_auth_mysql on OpenBSD >>3.0 (OS). >&g

[PHP] please help with this simple problem

2001-03-22 Thread adam
i am coding a simple script to post a text area into a file. it works, but it posts it at the bottom and i wanted to have it post to the top of the text already there.. here's a snip of the important part of the script: $fp = fopen (basename($PHP_SELF) . ".comment", "a"); fwrite ($fp, $message)

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
g the new message then writing back the > original contents. > > e.g. > $fname = basename($PHP_SELF). ".comment"; > $fsize = filesize($fname); > fp = fopen(basename($fname)); > $data = fread($fp,fsize); > fwrite($fp,$message); > fwrite($fp,$data); > fclo

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
fclose($fp); } @readfile(basename(($PHP_SELF . ".comment"))); ?> ""adam"" <[EMAIL PROTECTED]> wrote in message 99cmfj$mai$[EMAIL PROTECTED]">news:99cmfj$mai$[EMAIL PROTECTED]... > i am coding a simple script to post a text area into a file. i

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
it works now, only it's earasing everything and then writing to the file. i think we have almost got this figured out. here's what the code looks like for the entire tag... --- ", $message); $date = date("l, F j Y, h:i a"); $message = "mailto:$email>$name -- $da

[PHP] writing to a file

2001-03-22 Thread adam
how might i write to a file called "comment.php.comment" and only write the text specified to the top of the file, instead of writing it to the bottom? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] writing to a file

2001-03-22 Thread adam
how would that look on a code view? i plan to write the variable $message on top of the existing data ""hi"" <[EMAIL PROTECTED]> wrote in message 99ektl$gf0$[EMAIL PROTECTED]">news:99ektl$gf0$[EMAIL PROTECTED]... > Don't even bother with that previous answer. You have what you want to > write in

Re: [PHP] writing to a file

2001-03-22 Thread adam
nevermind ^^ i am jsut going to have posts that go from top to bottom oldest to newest -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] i get this for some reason

2001-03-23 Thread adam
everytime i post text to this file, i get the characters " and ' turning up as \" and \' is there anything i can add that would keep them from outputting into this? here is the code i use: ", $message); $date = date("l, F j Y, h:i a"); if ($email == "") { $message = "\n \n $name -- $date\n

Re: [PHP] i get this for some reason

2001-03-23 Thread adam
p.s. the submitted text $ message is what is returning the wierd quote marks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] i get this for some reason

2001-03-24 Thread adam
but i am not talking about running a server, i am just using php on server space that has php installed. what code would i incluse to get rid of this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] i get this for some reason

2001-03-24 Thread adam
thanks a bunch ^^ it works great -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] writing to a file

2001-03-25 Thread adam
how do i write to the beginning of a file instead of the end? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] escape characters

2001-04-06 Thread Adam
what is a list of all the characters that have to be escaped? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] fwrite()

2001-04-06 Thread Adam
simply add: $conteudo = stripslashes($conteudo) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] escape characters

2001-04-06 Thread Adam
nevermind, i found them -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] doesnt work as expected

2001-05-23 Thread adam
an input tag of the type "image" cannot pass a name and value. therefore you will have to use a script to detect if both the button and hidden are passed or jsut the hidden. applying a hidden is helpful for this. '. $done2 . ' '; ?> -- PHP General Mailing List (http://www.php.net/)

[PHP] while statements output to variables

2001-05-23 Thread adam
i need to write a while statement to a variable that will later be echoed again on another page after including this file to it. i need to repeat a statement over and over in it and i do not know how. ' . do { 'data to be outputted' }while ($something = mysql_fetch_array($query)); .' ';

[PHP] Announcement: DEF CON 9 PHP Talk

2001-06-29 Thread Adam
rested please attend! For more info, see www.defcon.org Thank you, Adam Bresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] multiple outputs to mysql_query()

2001-07-08 Thread Adam
rnating like this or knows where i can find a resource tutorial on it please tell me.. thanks -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] multiple outputs to mysql_query()

2001-07-08 Thread Adam
ome things i had to fix for others viewing this thread: "while ($numrows)" had to be changed to "while ($numrows >= 1)" or the while statement would loop forever. (server hangup) i had to accomidate and if statement to check if the amount of $numrows left was <= 1 -Adam

Re: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread Adam
ority of web users out there. I also test my page for netscape compatibility, but only down to 4.7 and to make sure it looks good in version 6 as well. Personally i perfer IEbeta6 for personal browsing. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

[PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Adam
s it as it exists on the server? Is it supposed to read a file they specify with a browse but never actually upload it anywhere? It might be better to just include a text field for them to cut+paste to in a form if it's nothing but text. -Adam -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: form action problem

2001-07-10 Thread Adam
assume you need multiple functions to be used on the same form as submit buttons. This seems like the most logical/simple way to do it. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Adam
ame situation. A db engine is for text, a server is for storing files. IMHO -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: IE cookies don't expire!

2001-07-10 Thread Adam
define a variable to be set on refresh along with the URL that erases the cookie by setting it's expire to time() minus a month or so. If you don't want the url varibale passer to show then have it set the cookie then to a header redirect to $PHP_SELF. use that in the beginning of your page and

[PHP] Re: form action problem

2001-07-10 Thread Adam
> Adam, > It's really better to use the isset() instead of empty() because if you set > the error level report to E_ALL you will see that PHP will produce warnings > if the variable is not set at all! empty() and isset() are totally different. If a variable is set, but is set

[PHP] Re: Variables

2001-07-10 Thread Adam
try this little form example out: --example.php-- t1 t2 -/example.php-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] Re: GetImageSize

2001-07-10 Thread Adam
ges that use GetImageSize > do not load. Example of the code perhaps? I've never had a problem with that function. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

[PHP] What the heck is this

2001-07-10 Thread Adam
I've seen this around alot ($a->$z) and i'm woundering what it is and what it does. I'm specifcally talking about the arrow thingy "->". I've never seen it before so i was kinda curious. thanks -Adam -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] What the heck is this

2001-07-10 Thread Adam
hat it did. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: MAIL to a Bcc: ???

2001-07-10 Thread Adam
g statement that sends mail to each person seperatly? something like that? -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] What the heck is this

2001-07-11 Thread Adam
ahh so it's for classes, then i'm fine because i haven't fount a use for that yet. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Strong typing?

2001-07-13 Thread Adam
> why can't you just use plan simple HTML to do it??? rather than make a larger hassle for your self ie > > howdy ??? > > & yes that is valid HTML :) > > Peter why do i get the idea that's not what they meant... -Adam -- PHP General Mailing List (htt

[PHP] Re: Creating a .xxx via PHP

2001-07-20 Thread Adam
make a .htaccess file and put this in it: Addtype application/x-httpd-php .foo then upload it to your root directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato

[PHP] Re: Form Data

2001-07-30 Thread Adam
maybe your field is set to INT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] splitting a string in half

2001-07-30 Thread Adam
hen that's okay. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Adam
try sending us the sample code. I use netscape 4 for testing and it seems to work just fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECT

Re: [PHP] Newbie question: Page Counter

2001-04-19 Thread Adam
counter hope this helps :) i use this script myself -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] passing variables

2001-04-22 Thread Adam
how could i pass a variable between pages without them seeing the variable stated in the URL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTEC

Re: [PHP] writing to file on server

2001-04-22 Thread Adam
chmod the file to 777, this will allow anyone write permission to the file and thus you will be able to append to the file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

Re: [PHP] Link Color Questions

2001-04-22 Thread Adam
### in the head tag, be sure to add the style's location: # # then inset your html on teh page as follows: # www.domain1.com www.domain2.com www.domain3.com hope this helps

Re: [PHP] redirection to another page function

2001-04-22 Thread Adam
use the javascript function, but also use as backup plan such as a link at the bottom or even code at the top like this: /// if (conditionals == true) { header("location:home.html"); } // that wa

[PHP] Re: word wrap

2001-09-11 Thread Adam
http://php.net/manual/en/function.wordwrap.php -Adam www.wangallery.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: problem with form values

2001-09-12 Thread Adam
show us a snippet so we can evaluate the cause -A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: problem with form values

2001-09-12 Thread Adam
i would say do this urlencode the string (it should use %22 or something for the quote marks) then un encode on the recieving page -- one thing you might try is this $sql = 'SELECT * FROM whatever WHERE'; while ( $quotes = explode('"', $Keywords) ) { $q = 0; $s = 0;

Re: [PHP] I am making a mailing list but....

2001-09-12 Thread Adam
amen. a database solved my data storage for good and i could never get along without it now. also scripst like these can currupt files that it writes to if a person does certains things while browsing. (ex. refreshing realy fast) get a DB it's way easier to manage. -Adam -- PHP Ge

[PHP] Re: limiting rows and pages like google -- again

2001-09-12 Thread Adam
echo ''.$i.' '; } else{ echo ''.$i.' '; } } else { echo ''.$i.' '; } $i = $i+1; $select_numrows = $select_numrows-20; } if ($page < ($i-1)) { echo 'next»  '; } else { echo 'next»  '; } ?> hope this

[PHP] phpMyAdmin problem that might have you fustered

2001-09-18 Thread Adam
I found that if you were trying to back up a database in this application, and you had a # mark anywhere on an entry, this would cause a fault when you tried to reload the script back into the sql statememnt. you will have to make a find and replace script on page to convert it to a different char

[PHP] Re: Thank you Rebecca

2001-09-19 Thread Adam
actually i've had that problem... i converted all # signs to "&numsym" before entering it into the db and then converted back to # on the page after retrieving the values. -A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: ucwords added functionality?

2001-09-23 Thread Adam
> i could roll my own, and for now will just use a str_replace after ucwords, > but would it be possible to add an optional parameter to ucwords which would > be an array of words to skip? i would think this would be useful to > many. that sounds like a good idea to me. -- PHP General Ma

[PHP] Re: PHP & Dreamweaver / Fireworks

2001-09-24 Thread Adam
#x27;s made for php (yeah right i'd liek to see that) it's not gonna be able to tell what you want. Maybe get phakt for Ultradev or something. -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Parsing Database Text

2002-01-10 Thread Adam Baratz
> Is it possible to have PHP parse text queried from > a database (security issues notwithstanding)? > If so, how? Yes. Pull out the text with your method of choice and then use the eval function passing it the string of text to parse as its only parameter. -Adam -- PHP General Mai

Re: [PHP] Tables Loading Slow

2002-01-30 Thread Adam Leckron
ushing the buffer after rows are processed, you probably wont get any increase in load time because of this rendering issue... it's just a drawback of using tables in html, regardless of how they are generated... -- Adam Leckron [[ [EMAIL PROTECTED] ]] "Tony Bibbs" <[EMAIL

[PHP] PHP v4.1.1 WDDX problems

2002-02-04 Thread Adam Cassar
Hi All, I am attempting to compiler php v4.1.1 as a fast cgi runner with WDDX. I get all the way through the compile and it get's stuck at: ./.libs/libphp4.a(wddx.o): In function `php_wddx_push_element': /usr/local/src/php-4.1.1/ext/wddx/wddx.c:780: undefined reference to `xml_utf8_decode' ./.

RE: [PHP] Update database via email

2002-03-11 Thread Adam Plocher
If you want an html form in an email, that's possible, but the form will probably need to submit to a php script (via http, not email). You would just need to set the content-type of the email to text/html. You wouldn't be able to have an active php script embedded in an email (other than having

[PHP] Sessions interfering with one another

2002-03-11 Thread Adam . Whitehead
sions. Is there any way I can make these two sessions distinct? The problem is these sites are often used at the same time, in different windows. In fact my site often launches Squirrelmail, and at that point they automatically lose their login to my site because the cookie disappears! Cheers. ---

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Adam . Whitehead
Sounds good, but I'm not actually setting the cookie, PHP session code does the setting of the cookie. --- Adam Whitehead Systems Developer - CSM Limited Ph. (08) 8936 3165 ** Mobile (0411) 241 120 E-mail: [EMAIL PROT

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Adam . Whitehead
Thanks. Worked wonders. I was a bit wary of using session_name() earlier because the documentation on that function is pretty awful. --- Adam Whitehead Systems Developer - CSM Limited Ph. (08) 8936 3165 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Adam Plocher
CSS Hover example: a:link,a:visited,a:active {color: #213C4D; text-decoration: none;} a:hover {color: #213C4D; text-decoration: underline; } As for the size of a text field, you can set it with SIZE="" but note, netscape and IE both interpret size VERY differently... Not sure about NS6, but NS

[PHP] Saving files back to server

2002-03-20 Thread Adam . Whitehead
x27;ve seen this done in Lotus Notes, but I imagine it will be near impossible using the web. Any thoughts on the matter would be greatly appreciated. --- Adam Whitehead Systems Developer - CSM Limited Ph. (08) 8936 3165 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED] -- PHP General Mailing

[PHP] Caching problem...?

2002-03-23 Thread Adam Schlag
someone could provide would be greatly appreciated. Thank-you. Adam Schlag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Adam Voigt
or any other type can go directly into the same $robot). Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 08:30:59 -0600 , Rick Emery <[EMAIL PROTECTED]> wrote: > I've used undefined variables for over 30 years...which has caused many > late-night debugging sessions and much pain. >

Re: Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adam Voigt
You could actually have javascript auto-submit the form if you didn't want the button like: document.form1.submit(); Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 09:08:18 -0600, Tyler Longren <[EMAIL PROTECTED]> wrote: > You could use a form and have a hidden vield that co

[PHP] Re: Re: Error Handling

2002-04-02 Thread Adam Voigt
The set_error_handler didn't work correctly in that it wouldn't execute except when trigger_error was called, otherwise this would have worked great a week ago when we were trying to implement this. Thats why we went with a error log which was auto-emailed by a timed script. Adam Vo

Re: [PHP] header location redirect to frameset target

2002-04-02 Thread Adam Voigt
I think what your looking for is "_new", but I'm not sure if you can do it in what I guess your saying is a meta refresh, I know you can as "target="_new"" in a href. Adam Voigt [EMAIL PROTECTED] On Tue, 02 Apr 2002 10:42:19 -0800, Tom Beidler <[EMAIL

Re: Re: [PHP] help please - strange session behaviour on IIS with

2002-04-02 Thread Adam Voigt
I run this setup on Win2k Advanced Server talking to a Microsoft SQL 2000 Server, with sessions of both cookie type and URL-SessionID server side based, with absolutely no problems. Adam Voigt [EMAIL PROTECTED] On Wed, 03 Apr 2002 04:37:07 +0900, Hiroshi Ayukawa <[EMAIL PROTECTED]> wrot

[PHP] Error Handling

2002-04-02 Thread Adam Voigt
log after each error entry (I know there is probably a way to do it with some combination of OR and die(customError()) or something, but it would be nice if the built in error handling could do it.). Thanks, Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP books

2002-04-05 Thread Adam Alkins
A great book I read is PHP and MySQL Web Development, authors Luke Welling and Laura Thomson. Its an excellent book to read if you are new to PHP and MySQL, and even if you have a good knowledge. I learnt a lot from it, and still am learning. :) Adam - Original Message - From: "Mi

[PHP] Executing functions within ereg_replace() output

2002-04-06 Thread Adam Wan
way to generate it. string string 12363 string string any ideas? -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Executing functions within ereg_replace() output

2002-04-07 Thread Adam Wan
Thanks! That preg_replace_callback helps alot. -Adam "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Adam Wan) wrote: > > > $content = 'string

[PHP] Re: counter for HIGH traffic site

2002-04-07 Thread Adam Wan
7;http://www.yourdomain.com/where/this/is/located'.$PHP_SELF; if ( $str != $HTTP_REFERER ) { mysql_query("UPDATE mysqlcount SET count=count+1 WHERE id=1"); } $count_query = @mysql_query("SELECT count FROM mysqlcount WHERE id=1"); echo substr(@mysql_result($count_query,0), 0, -3).&#

Re: [PHP] hosting

2002-04-07 Thread Adam Alkins
Go to http://www.webhostingtalk.com and do a search for them. Adam - Original Message - From: "Heidi Belal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers" <[EMAIL PROTECTED]>; "Egypt Programmers" <

[PHP] Custom Error Handling

2002-04-08 Thread Adam Voigt
sly not entering the catchError function, why? alert('$num:$string:$file:$line');"; } set_error_handler("catchError"); test(); ?> Thanks for your help, Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] counter for HIGH traffic site

2002-04-08 Thread Adam Voigt
You might also want to setup the table your updating the hits in as a HASH type table which runs completely in RAM, and as a result is extremely fast. The only obvious downside, is the data (or hits in this case) are lost on reboot. Adam Voigt [EMAIL PROTECTED] On Mon, 8 Apr 2002 09:41:39 -0700

Re: [PHP] printing < and > ?

2002-04-09 Thread Adam Voigt
the equivalen for the greater then and less then signs. Adam Voigt [EMAIL PROTECTED] On Tue, 9 Apr 2002 19:33:52 +0200, Hawk <[EMAIL PROTECTED]> wrote: > I have a clan database, and some clans use <> in their tags, my problem > right now it how the best way to print these as chara

[PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem

2002-04-09 Thread Adam Plocher
x.html.var I realize this isn't really a programming question, so it may be a little off-topic, but if anybody could help me, I'm sure you guys could. Thanks a lot. -Adam

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Adam Voigt
Umm, use $_POST or $_GET or $_REQUEST from now on. Adam Voigt [EMAIL PROTECTED] On Mon, 22 Apr 2002 17:10:34 -0400, Leif K-Brooks <[EMAIL PROTECTED]> wrote: > I use $formvar for form processing, I don't use the arrays. This is how I > was taught to do it. If my host upgr

[PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
Hi. I've run into a problem with my PHP session. I'm running PHP 4.1.0 on OpenBSD v3.0 using .HTACCESS and mod_mysql. I have a PHP file that is referenced every time content is requested on the web site (this file also sets/restores the session). This PHP file includes [include()] the requ

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
I already have this setup. The session works just not on the initial page after login. > Add > > At the top of each page, before anything else is done. > > -Original Message----- > From: Adam Douglas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 3:15

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> > something else after the initial page everything works fine. I > > require this > > to work initially because if someone comes in directly using a > > link certain > > content will render a error message because the registered > variable is not > > present for some reason. Oh and yes the cook

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> That's correct, although the cookie will remain resident it > requires an > inital page change/refresh. However after looking at your > code I'm not > convinced that is the problem since the first page of a > session creation > should still be usable with the session as the session ID is >

RE: [PHP] Session Initially Does Work

2002-05-02 Thread Adam Douglas
> There is a session problem with 4.1 > > If register_globals is ON, then use session_register(). > > If it's off, then use $_SESSION["name"] = "value"; and the value will > automatically be registered. What kind of session problem? I currently have register_globals set to on. I am already usin

RE: [PHP] Session Initially Doesn't Work

2002-05-02 Thread Adam Douglas
> > Alright that's good to hear. In a specific case that I'm having > > this problem > > the main PHP file is including file (content) that refers to > > $_SESSION[nSID_PeopleID] in main. This value is vital in > > rendering the page. > > So it should be there right? Also about removing > session

[PHP] Object Reference Serialization

2002-05-02 Thread Adam Langley
happening? Thanks in advance. - Adam Langley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Reference Serialization

2002-05-03 Thread Adam Langley
firstPage = new BoundFormPage("pageOne"); //$myTextField2 = new BoundTextField("gumber", 30); //$firstPage->fields[$myTextField2->name] = $myTextField2; $myTextField = new BoundTextField("CustomerNumber", 30); $firstPage->addField($myTextField); $myForm-&g

Re: [PHP] Object Reference Serialization

2002-05-03 Thread Adam Langley
No worries...I just realized that my object never repopulated the underlying classes with previous object references...Thanks guys, but I see my problem now... Cheers. Adam Langley. "Thies C. Arntzen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] SQ: what does the & sign do

2002-05-21 Thread Adam Alkins
alue to the function and working with that value only in the function, its a reference to a global function and will change the value outside the function. -Adam - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Ma

Re: [PHP] Hi all & Help :D

2002-05-30 Thread Adam Voigt
Try reversing the filelocations in your ftp_put, like if you have "remotelocation" and "mylocation", switch them to say "mylocation" then "remotelocation". Just a thought. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 22:26, Anthony wrote: > Hi

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread Adam Voigt
Yes, the --with-imap refers to Unix, Linux and other OS's using compiled source code rather then the standard windows pre-compiled binary. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 16:43, The Gabster wrote: > Hello all! > > I have an Apache server + Php on a win2k mac

Re: [PHP] setting the IMAP on php4?

2002-05-30 Thread Adam Voigt
Yeah, put: on a PHP page and go to it in your web browser. Scroll down the page, if IMAP is listed under one of the big bold subheadings (like MySQL and the others), then it worked. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-05-30 at 16:54, The Gabster wrote: > thanks a lot, Adam... >

Re: [PHP] Returnpath for mail

2002-06-06 Thread Adam Voigt
You mean like the "Reply-to:[EMAIL PROTECTED]" header? Adam Voigt [EMAIL PROTECTED] On Thu, 2002-06-06 at 13:08, andy wrote: > Hi there, > > I am wondering if it is possible to send email via the mail function with > lets say adress_1 and then if the recipient clicks on

Re: [PHP] Re: Anyone?

2002-06-06 Thread Adam Voigt
Yes, PHP is a secure programming language. On Thu, 2002-06-06 at 13:18, Jas wrote: > I cannot believe that no one with alot of PHP and MySQL experience has not > replied to this post yet. Is PHP not a secure scripting language? I would > really like a little insight into this question, anyone?

Re: [PHP] mysql problems, need quick help

2002-06-11 Thread Adam Voigt
in an order by, but I still like to specify. =) Let me know if you have any other questions. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-11 at 08:52, Hawk wrote: > I'm filling a database with info, and I'm using id as identifiers in the > list, the id is auto increment, and I deleted

Re: [PHP] download link

2002-06-11 Thread Adam Voigt
You mean like: Get This File"; ?> Which would make a download link for "downloads/whatever.exe" in HTML? Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-11 at 11:43, Kris Vose wrote: > are there any php functions that handle downloads? For Instance I want to create a >

[PHP] POST Arrays with register globals..

2002-06-12 Thread Adam Plocher
  blah1 &nbps; blah2   blah3 I can't seem to access that data correctly when that form gets submitted. I have tried: $groups[] = $_POST['groups[]']; and $groups[] = $_POST['groups']; no luck.. Can somebody please give me a hand, thanks a lot. -Adam

Re: [PHP] view source with opera

2002-06-13 Thread Adam Voigt
language. Adam [EMAIL PROTECTED] On Thu, 2002-06-13 at 09:12, Angelo Marcos Rigo wrote: > Hi list > I am using php on the company´s website that i work > and now someone told me that you can view the php source with > the opera browser > he says he done it by himse

Re: [PHP] view source with opera

2002-06-13 Thread Adam Voigt
ork anywhere if this is the case, which is usally caught pretty quick. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-06-13 at 09:12, Angelo Marcos Rigo wrote: > Hi list > I am using php on the company´s website that i work > and now someone told me that you can view the php

Re: [PHP] find replace quotes with single quotes

2002-06-18 Thread Adam Voigt
Hope this helps ya: str_replace("\"","'",$data); Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-18 at 09:54, Dan McCullough wrote: > I need to strip out the double quotes and replace it with single quotes

  1   2   >