Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
n 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); fclose($fp); -Stewart -Original Message- From: adam [mailto:[

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. it

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... --- ? if ($message) { /* uncomment the next two lines to strip out html from input */

[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

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 a

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: ? if ($message) { /* uncomment the next two lines to strip out html from input */ $name =

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

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]

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). Issue - Scenerio: User provides user_id and password. user_id

[PHP] Re: ucwords added functionality?

2001-09-24 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

[PHP] Re: PHP Dreamweaver / Fireworks

2001-09-24 Thread Adam
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]

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

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

2001-09-13 Thread Adam
='.$PHP_SELF.'?page='.($page+1).'nextraquo;/anbsp;nbsp;'; } else { echo 'font color=#99nextraquo;/fontnbsp;nbsp;'; } ? hope this helps. it took 2 days straight to debug and develope. obviously you would use different database values though. -Adam god bless amarica -- PHP General Mailing

[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

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

Re: [PHP] input type=image name=done value=done 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. ?php if ($done1 $done2) { $done2 = ''; } echo $done1 . 'br'. $done2 . 'br form

[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. ?php $variable = 'table tr td' . do { 'fontdata to be outputted/font' }while ($something

[PHP] Announcement: DEF CON 9 PHP Talk

2001-06-29 Thread Adam
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
-- if anyone can help me with alternating 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

Re: [PHP] multiple outputs to mysql_query()

2001-07-08 Thread Adam
statement would loop forever. (server hangup) i had to accomidate and if statement to check if the amount of $numrows left was = 1 -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

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

2001-07-08 Thread Adam
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 PROTECTED] For additional

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

2001-07-10 Thread Adam
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 unsubscribe, e

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

2001-07-10 Thread Adam
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. ?php if ($refresh) {

[PHP] Re: Variables

2001-07-10 Thread Adam
try this little form example out: --example.php-- ?php if ( (isset($t1))(isset($t2)) ) { if ($t1==$t2) { echo they are equal; } else { echo they are not equal; } } ? html body br br form name=form1 method=post action=?=$PHP_SELF? input type=text name=t1 t1br

[PHP] Re: GetImageSize

2001-07-10 Thread Adam
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 administrators, e-mail: [EMAIL

[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 unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] What the heck is this

2001-07-11 Thread Adam
. -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-11 Thread Adam
person seperatly? ?php $mail = mysql_query(SELECT user_email FROM mailing_list); while ($mailarray = mysql_fetch_array($mail)) { mail($mailarray[user_email], $subject, $content); } ? something like that? -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

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 strong howdy /strong ??? yes that is valid HTML :) Peter why do i get the idea that's not what they meant... -Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[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

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

Re: [PHP] Newbie question: Page Counter

2001-04-19 Thread Adam
//-- --// then all u have to do is include the line: ?php include (counter.php) ? into the page you want a 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

[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

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 way

[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 changing $_SESSION

[PHP] test

2003-08-16 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-16 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

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=foo,2=zoo

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:

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 -
?? :) 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 -
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 sessions, they still rely

Re: [PHP] Session's length.

2003-03-22 Thread Adam -
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 removed right after i have rebooted. The other way is to put session id

[PHP] Date Diff

2003-03-22 Thread Adam -
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/) To unsubscribe, visit

[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 List (http://www.php.net

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 upgraded my PHP from 4.2.2 to 4.2.3 and now I

[PHP] #color problems

2002-11-15 Thread Adam
help much appreciated, Adam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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=. Any ideas??? Cheers, Adam. - Original

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 [EMAIL PROTECTED] Sent: Friday, November 15, 2002 3:14 PM Subject: Re: Fw: [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.general

[PHP] templates

2002-11-19 Thread Adam
, but hopefully you get the idea. Cheers, Adam.

Re: [PHP] templates

2002-11-19 Thread Adam
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: select name=foo onChange=window.location='?=$PHP_SELF??action=loadfile=' + this.value option

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 Message - From: Ernest E

[PHP] grabbing data from a site

2002-11-22 Thread Adam
there 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 sup/d' | sed '1d;3,$d;s/.*//;s/.*//' thanks, adam. Evan Nemerson

[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? Thanks, Adam

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 Frames? I

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

2003-11-07 Thread Adam
. 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://www.php.net/) To unsubscribe, visit

[PHP] [Q] Development Best Practices

2003-11-17 Thread Adam
? 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 (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Adam
would this not work? : ?php $string = 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

Re: [PHP] Syntax checker? Character replacing

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

[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

[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

[PHP] eval() function

2001-01-14 Thread Adam Powell
should be aware of anything. 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] include statement

2001-01-17 Thread Adam Wright
This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include");

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
, investigate "Safe mode" this instant :) adamw - Original Message - From: "Karl J. Stubsjoen" [EMAIL PROTECTED] To: "Adam Wright" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Michael Zornek" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 5:21 PM Subject: R

Re: [PHP] Encoder price too high (was: Zend hit)

2001-01-25 Thread Adam Wright
We are working on extending the APC cache (http://apc.communityconnect.com) with an encoder, and already have a pretty much functioning version (though its a bit of hack job at the moment :). I think the patches we made were sent to the dev list, but I can send them around at request. adamw

Re: [PHP] Compiler? (Was Re: [PHP] PHP site on CD-ROM)

2001-01-25 Thread Adam Wright
The compiler has become the encoder, because it's rather hard to meet the expectations of a 'compiler' (many would expect it to produce binaries and heavily optimised code). Encoder makes more sense, based on what the product does. adamw - Original Message - From: "Angus Mann" [EMAIL

[PHP-CVS] cvs: php4 /ext/yaz README php_yaz.c

2001-01-30 Thread Adam Dickmeiss
dickmeiss Tue Jan 30 05:09:27 2001 EDT Modified files: /php4/ext/yaz README php_yaz.c Log: Fixed problem with looping present requests for Isite targets. Index: php4/ext/yaz/README diff -u php4/ext/yaz/README:1.1 php4/ext/yaz/README:1.2 ---

Re: [PHP] GTK-PHP install doubt?

2001-03-08 Thread Adam Wright
Make sure you're building against a 4.0.5 build of PHP. I tried this afternoon with the latest PHP from snaps.php.net and the GTK bindings, and it worked flawlessly. adamw - Original Message - From: "Celestino Roberto Alejandro" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: [PHP] Generate Random Letters?

2001-03-09 Thread Adam Wright
I use something like... function randString($sequence_length = 7) $possible_letters = "abcdefghijklmnopqrstuvwxzy"; $sequence = "" while ($sequence_length--) { $sequence .= $possible_letters[rand(0, strlen($possible_letters) - 1)]; } return $sequence; } To create random strings.

[PHP-CVS] cvs: php4 /ext/yaz php_yaz.c php_yaz.h

2001-03-13 Thread Adam Dickmeiss
dickmeiss Tue Mar 13 09:04:05 2001 EDT Modified files: /php4/ext/yaz php_yaz.c php_yaz.h Log: Added yaz_database. Option bit ExtendedServices set for InitRequest. Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.13

[PHP-CVS] cvs: php4 /pear/HTML Common.php

2001-03-22 Thread Adam Daniel
:1.4 --- php4/pear/HTML/Common.php:1.3 Thu Mar 22 07:27:07 2001 +++ php4/pear/HTML/Common.php Thu Mar 22 17:11:59 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel [EMAIL PROTECTED

[PHP-CVS] cvs: php4 /pear/HTML Common.php

2001-03-22 Thread Adam Daniel
/Common.php:1.5 --- php4/pear/HTML/Common.php:1.4 Thu Mar 22 17:11:59 2001 +++ php4/pear/HTML/Common.php Thu Mar 22 18:13:18 2001 @@ -16,37 +16,38 @@ // | Authors: Adam Daniel [EMAIL PROTECTED

[PHP-CVS] cvs: php4 /pear/HTML Table.php

2001-03-22 Thread Adam Daniel
: Table.php,v 1.3 2001/03/22 14:32:51 mj Exp $ +// $Id: Table.php,v 1.4 2001/03/23 02:14:05 adaniel Exp $ require_once "PEAR.php"; require_once "HTML/Common.php"; /** -* Builds an HTML table -* -* @author Adam Daniel [EMAIL PROTECTED] -* @author Ber

[PHP-CVS] cvs: php4 /pear/HTML Select.php

2001-03-22 Thread Adam Daniel
B.php"; require_once "PEAR.php"; require_once "HTML/Common.php"; /** * Class to dynamically create an HTML SELECT * * @author Adam Daniel [EMAIL PROTECTED] * @version 1.0 * @sincePHP4.04pl1 * @access public */ class H

[PHP-CVS] cvs: php4 /pear/HTML Select.php

2001-03-22 Thread Adam Daniel
and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | [EMAIL PROTECTED] so we can mail you a copy immediately. | +// +--+ +// | Authors: Adam Daniel [EMAIL PROTECTED

Re: [PHP] Permission denied

2001-03-23 Thread Adam Wright
Don't forget, PHP (in general) runs as the webserver (normally "nobody" or "apache" for Apache servers). Make sure your webserver has write access to /home/jalmberg/public_html/qiksys/images/ adamw - Original Message - From: "John Almberg" [EMAIL PROTECTED] To: "PHP General List" [EMAIL

Re: [PHP] Permission denied

2001-03-23 Thread Adam Wright
, nothing you change locally can affect it. adamw - Original Message - From: "John Almberg" [EMAIL PROTECTED] To: "PHP General List" [EMAIL PROTECTED] Sent: Friday, March 23, 2001 3:27 PM Subject: RE: [PHP] Permission denied Adam, Just ran phpinfo and you are corr

[PHP-CVS] cvs: php4 /pear/HTML Common.php

2001-03-23 Thread Adam Daniel
:13:18 2001 +++ php4/pear/HTML/Common.php Fri Mar 23 20:33:10 2001 @@ -16,13 +16,13 @@ // | Authors: Adam Daniel [EMAIL PROTECTED]| // +--+ // -// $Id: Common.php,v 1.5 2001/03/23 02:13:18 adaniel Exp

[PHP-CVS] cvs: php4 /pear/HTML Select.php

2001-03-23 Thread Adam Daniel
--- php4/pear/HTML/Select.php:1.2 Thu Mar 22 22:24:07 2001 +++ php4/pear/HTML/Select.php Fri Mar 23 20:34:17 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel [EMAIL PROTECTED]| // +--+ // -// $Id

[PHP-CVS] cvs: php4 /pear/HTML Table.php

2001-03-23 Thread Adam Daniel
adaniel Fri Mar 23 20:36:06 2001 EDT Modified files: /php4/pear/HTML Table.php Log: added comments to the html output including table nest level, added automatic taboffset for cell contents if a subclass of html_common Index: php4/pear/HTML/Table.php

[PHP-CVS] cvs: php4 /pear/HTML Page.php

2001-03-23 Thread Adam Daniel
the world-wide-web, please send a note to | // | [EMAIL PROTECTED] so we can mail you a copy immediately. | // +--+ // | Authors: Adam Daniel [EMAIL PROTECTED

[PHP-CVS] cvs: php4 /pear/HTML Common.php

2001-03-24 Thread Adam Daniel
Mar 23 20:33:10 2001 +++ php4/pear/HTML/Common.php Sat Mar 24 13:08:59 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel [EMAIL PROTECTED]| // +--+ // -// $Id: Common.php,v 1.6 2001/03/24 04:33:10 adaniel

[PHP-CVS] cvs: php4 /pear/HTML Page.php

2001-03-27 Thread Adam Daniel
+++ php4/pear/HTML/Page.php Tue Mar 27 19:16:59 2001 @@ -16,7 +16,7 @@ // | Authors: Adam Daniel [EMAIL PROTECTED]| // +--+ // -// $Id: Page.php,v 1.1 2001/03/24 04:36:38 adaniel Exp $ +// $Id: Page.php,v

  1   2   3   4   5   6   7   8   9   10   >