[PHP] does //commenting reduce performance?

2002-11-24 Thread Adam
I have always had the opinion that the more comments you put into php scripts, the slower they will run because there is more data to be read... Can someone tell me if there is any truth in this or whether commenting has absolutely 'no' impact on the performance of a script? Th

[PHP] test

2003-08-15 Thread adam
tst -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] call function as variable

2003-08-15 Thread adam
Hi! I have folowing function which they are a member in a class. function foo(){ something } function zoo(){ something else } and i have a array such: $test = array(1=>foo,2=zoo); and i want to call the fuction foo() and zoo something like; $object->$test[1](); I have tried this this, it will

[PHP] Re: How do I call a function in a Class from another function inthe same class

2003-08-16 Thread adam
typically problem! have you used $this->tehotherfunction(); or just use therotherfunction();??? if you call from your class to a members method , you have use $this!!! And read more about oo-method! cheers Donpro wrote: Hi, I have two functions in a class where one calls the other. When creati

Re: [PHP] call function as variable

2003-08-16 Thread adam
I got this error: Parse error: parse error, unexpected '{' in ... Cheers John W. Holmes wrote: adam wrote: Hi! I have folowing function which they are a member in a class. function foo(){ something } function zoo(){ something else } and i have a array such: $test = array(1=

Re: [PHP] call function as variable

2003-08-16 Thread adam
Tanks a lot! this is exactly that i want!! Cheers Michael Sims wrote: On Sat, 16 Aug 2003 07:58:27 +0200, you wrote: $test = array(1=>foo,2=zoo); and i want to call the fuction foo() and zoo something like; $object->$test[1](); I've never used this myself, but this should work: call_user_f

Re: [PHP] call function as variable

2003-08-16 Thread adam
Tanks a lot! This was exactly that i wanted! Cheers David Otton wrote: On Sat, 16 Aug 2003 07:58:27 +0200, you wrote: I have folowing function which they are a member in a class. function foo(){ something } function zoo(){ something else } and i have a array such: $test = array(1=>foo,2=zoo);

[PHP] Sessions

2003-03-21 Thread Adam -
for it to work?? :) hu Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions

2003-03-21 Thread Adam -
okies you'll get a message. A lot of sites use the trans sid, because it makes it "work" if the user doesn't have cookies. Thanks for the info Adam At 03:00 PM 3/22/2003 +1100, Justin French wrote: on 22/03/03 4:39 AM, Adam - ([EMAIL PROTECTED]) wrote: > Just a thought about

Re: [PHP] Session's length.

2003-03-22 Thread Adam -
s that it will be sent to all your files.. hope this helps in some way... I'm no expert... Adam At 07:10 PM 3/22/2003 +0300, you wrote: -> php-general. I used such code: $exp = 60*60*24*10; # for ten days. session_set_cookie_params($exp); But it works wrong - cookies were r

[PHP] Date Diff

2003-03-22 Thread Adam -
php to be very nice and simple as well powerful. So what happens if you have two timestamps and you want to find out what the difference is? There has to be some function that I don't know about.. I have to be missing somethig! Adam -- PHP General Mailing List (http://www.php.net/) T

[PHP] String Expression for aplpahnumeric password

2002-11-01 Thread Adam
I need a string expression to verify an alpha numeric password. This is what i've come up with , however it does not work: elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$", $password))) can anybody help? Thanks in advance ADAM -- PHP General Mailing

Re: [PHP] Problem with 4.2.3?

2002-11-02 Thread Adam
output buffering = off This is already set to "off" Any other suggestions? -Adam "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:200211021451.44280.php-general@;gremlins.com.hk... > On Saturday 02 November 2002 06:16, Adam Humphrey wrote: > > I just

[PHP] #color problems

2002-11-15 Thread Adam
Below is a snip of my script. Can't get it to use $test as a color variable!! Can anyone help?? I have tried everything i can think of (bar just using a color value instead of variable). The context is :: for formatting an XML doc. $test='#FF'; echo ""; Any he

Fw: [PHP] #color problems

2002-11-15 Thread Adam
Re: below, i put in global $test; > Thanks for the advice... I am new to PHP, but have done a lot of C in the > past so some things are familiar. > > Anyway, I tried your suggestion but no joy... color does not show, as if i > had written bgcolor="". > >

Re: Fw: [PHP] #color problems

2002-11-15 Thread Adam
OK, color code is not present in HTML output. Very strange! "echo $test;" produces hte correct output though. Adam. - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Adam" <[EMAIL PROTECTED]> Cc: ""PHP"" <[

[PHP] sunrise/sunset programs?

2002-11-17 Thread Adam
worked out by the program/app? Thanks for any help. Adam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Adam
yes, have tried googling around... i came across one but the link no longer works: http://www.hotscripts.com/Detailed/4984.html if anyone knows of any, could they post the links here? thanks, adam. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups

[PHP] templates

2002-11-19 Thread Adam
this is the right format, but hopefully you get the idea. Cheers, Adam.

Re: [PHP] templates

2002-11-19 Thread Adam
From: "Jonathan Sharp" <[EMAIL PROTECTED]> To: "Adam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 4:33 PM Subject: Re: [PHP] templates > I'm assuming you're trying to have a select list. > > Try this: > &

Re: [PHP] templates

2002-11-19 Thread Adam
Thanks, but not sure if this is what i'm looking for I just want to setup the PHP script so that the variable $filename can be changed via a link such as 'index.php?filename="file.xml"', causing the script to parse the appropriate file. Adam. - Original Messag

[PHP] grabbing data from a site

2002-11-22 Thread Adam
e are ways of saying "i want the third column of a particular row - in this instance, Melbourne"? Thanks for any help. Adam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] grabbing data from a site

2002-11-22 Thread Adam
someone gave me the following expression which uses another program and it works fine for them... is there something similar with php? wget --timeout=90 -q -O- http://www.BoM.GOV.AU/products/IDO30V01.shtml | sed '1,/>Melbourne //;s/<.*//' thanks, adam. "Evan Nemerson"

Re: [PHP] PHP within Frames

2003-10-19 Thread Adam
This is really an browser interpretation of HTML issue than a straight PHP issue. A little more information would be helpful - such as browser, page content, etc. Regards, Adam On Sunday, October 19, 2003, at 05:45 PM, KB wrote: Hi, Does anyone know why my PHP pages won't work in Frame

[PHP] On OS X (10.2) where is php installed?

2003-11-07 Thread Adam
top. My web server works. It serves PHP pages quite well, but I want to know where the binaries are located. I've tried using some sources I thought might tell me where the files are located, but they have not. Can anyone shed some light? Regards, Adam -- PHP General Mailing List (http:

[PHP] [Q] Development Best Practices

2003-11-17 Thread Adam
your scripts generate all the HTML? I'm looking for tips and resources. Remember for my first site I've embarked on a fairly large site. Code maintenance will be an issue for me as I need to enhance and fix it later on. Thanks guys! Regards, Adam -- PHP General Mailing List (htt

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

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

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

[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] Unexplained Issue Using Regex

2009-03-06 Thread Adam
would this not work? : http://www.zshare.net/video/541070871c7a8d9c";; $replaceWithThis = 'HELLYES-'; echo $string."\n"; echo preg_replace('/\S+video\//',$replaceWithThis,$string)."\n"; echo $replaceWithThis.substr($string, strripos($string, '/')+1, strlen($string))."\n"; echo $replaceWithThis.su

Re: [PHP] Syntax checker? Character replacing

2009-03-06 Thread Adam
just clean up your code and it will work: http://www.google.ca/search?hl=en&q=php+rocks%21%21%21&meta='; if (isset($qString)) { $buffer = str_replace("&","&",$qString); } echo $buffer."\n"; ?> OUTPUT: C:\>php test.php http://www.google.ca/search?hl=en&q=php+rocks%21%21%21&meta= C:\> On F

[PHP] stripping first comma off and everything after

2010-06-18 Thread Adam
I'm querying data and have results such as a variable named $entries[$i]["dn"]: CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx Basically I need to strip off the first command everything after, so that I just have it d

[PHP] help with sql statement

2010-07-12 Thread Adam
I was google searching, and the only SQL mailing list I found is currently giving a 503 error, so I hope you don't mind me asking my SQL question here, since there are a lot of SQL gurus here. I am having a syntax problem: Instead of doing a query like this:: select SMS_R_SYSTEM.Name from SM

[PHP] Session variables are not stored when set in implicitly called constructor!??

2005-04-16 Thread Adam
Hallo everybody, hope I am writing to correct mailinglist(^_^*)... I have troubles with sessions and descructor in php5. Can not set session variable in destructor when it's called implicitly. Do You know solution please? I think problem is that session is stored before imlicit object destruction *

Re: [PHP] Re: Session variables are not stored when set in implicitly calledconstructor!??

2005-04-19 Thread Adam
Hallo again, thank You for Your response. > > > > // singleton for request > > class Request { > > function __destructor() { > > $_SESSION["variable"] = "hallo"; > > The __destructor() method is supposed to be about killing the class > (Request). It's probably bad practice to be chang

Re: [PHP] spawing new PHP process

2002-11-26 Thread Adam Voigt
ot;spawn." > > Do we have something like this in PHP (I know we do!! Just can't find it.) I've >looked through the docs but don't see what I'm looking for. > > Thanks in advance. > > -Bob > > > -- > PHP General Mailing List (http://www.p

Re: [PHP] Need email solution

2002-11-27 Thread Adam Voigt
nd MySQL. I also need to >setup email service for 1 domain name. > > I'm looking for any suggestions on SMTP software. -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

Re: [PHP] problem with https

2002-11-27 Thread Adam Voigt
page is being > displayed properly , > Do any1 have any idea > > > vivek kedia > [EMAIL PROTECTED] > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > >

Re: [PHP] How Do I install php on Apache 2.0

2002-11-27 Thread Adam Voigt
> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Adam Voigt
ponse -- usually that's their subtle way of telling me I > should ask the PHP quiestion here :-) > > Any and all help would be appreciated. > > Thanks, > > kenn > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, vi

[PHP] YATS on OS X

2002-11-29 Thread Adam Atlas
lation. I'm not a porting expert at all. Does anyone know how I should do this? My configuration: PHP 4.3 RC2, compiled from source Apache httpd 1.3.27, compiled from source Mac OS X 10.2.2 Thanks, Adam Atlas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Adam Atlas
was compiled with MySQL and it does have a MySQL section. The strangest part is that I have a perfectly functional phpBB installation using a MySQL database. Am I missing something obvious? -- Adam Atlas "During my service in the United States Congress, I took the initiative in creating t

[PHP] PHP and WebDAV

2002-12-02 Thread Adam . Whitehead
them having any access to the documents through shares etc. Thanks in advance. --- Adam Whitehead Software Developer - CSM Technology Microsoft Certified Professional (MCP) Ph: (08) 89361 455 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED] www.csm.com.au This e-mail, including any attachments

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Did you change anything in the session settings from the PHP default? -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Hmm, you got me. The last time I installed it, it worked fine after I turned register global's on. There's a support forum on there website if no one else here has any bright idea's. -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.

Re: [PHP] preg_match()

2002-12-02 Thread Adam Voigt
xplode(";",$earray[$counter]); } That would give you: $earray[0][0] = "[EMAIL PROTECTED]"; $earray[0][1] = "[EMAIL PROTECTED]"; $earray[0][2] = "[EMAIL PROTECTED]"; $earray[1][0] = "[EMAIL PROTECTED]"; Etc, assuming you had 3 email's per

Re: [PHP] There Has to be an easier way (Multidimensional Array_

2002-12-03 Thread Adam Voigt
ppens because when you use the [] operator to say to PHP "next array position", every time it hits that it increments the row, rather then understanding your trying to say "set this value on this array row", it hears "woah, I just saw a [] so I'm going to up th

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Adam Voigt
ed, I'm assuming that they are treated as vars of the main URL. Any help appreciated, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Adam Williams
I don't think he's trying to multiply, I think he wants to print #x#, like 800x600 or 1024x768, etc... Adam On Tue, 3 Dec 2002, Kevin Stone wrote: > Is it possible you're mistaken somehow? x isn't an operator in PHP. > Executing $a x $b w

Re: [PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread Adam Williams
If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great. I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better. Adam On Wed, 4 Dec 2002, Vicente Valero wrote: > Hello, > > PHP 2.4.3 can work with Apache 2.0.x or I need Apac

  1   2   3   4   5   6   7   8   9   10   >