RE: [PHP] Bold links

2011-05-07 Thread admin
' . $current_user->user_firstname . "\n"; echo '' . $current_user->user_lastname . "\n"; ?> Richard L. Buskirk -Original Message- From: Michael Simiyu [mailto:simiyu.mich...@gmail.com] Sent: Saturday, May 07, 2011 1:42 PM To: php-general@lists.php.net Subject: [PHP] Bold links

RE: [PHP] Bold links

2011-05-10 Thread admin
Thank you Adam, The answer was not in haste, but the most common direction of a lot of browsers. Personally I encourage the use of CSS over explicitly presentational HTML markup. The answer was to explain that it was not a php functionality. Some tend to toot a broken horn, about broken software

RE: [PHP] Error Reporting/Display Errors Issues?

2011-05-10 Thread admin
Try this for me in a page you wish to not display errors. What you are doing with this function is over riding the php.ini file and turning off the errors on that page. Place the code at the beginning of php before any includes. If this works errors are turned on or your disabling function is m

[PHP] Explode Question

2011-05-17 Thread admin
I need to explode an array with an array. $one = array(0 =>'golf', 1 => 'field'); $two = array(0 => "On the golf course or in the field of clover"); $array_exp = explode($one, $two); print_r(''); print_r($array_exp); print_r(''); Notice: Array to string conversion. I have done this before bu

RE: [PHP] Explode Question

2011-05-17 Thread admin
The desired result is. Array ( [0] = > "On the"; [1] = > "course or in the"; [2] = > "of colver"; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original Message- From: Marc Guay [mailto:marc.g...@gmail.com]

RE: [PHP] Explode Question

2011-05-17 Thread admin
That is exactly it. Thanks James I knew it was simple just forgot how it was done. Richard L. Buskirk -Original Message- From: James Yerge [mailto:ja...@nixsecurity.org] Sent: Tuesday, May 17, 2011 8:51 PM To: ad...@buskirkgraphics.com Cc: 'Marc Guay'; php-general@lists.php.net Subje

RE: [PHP] Session question

2011-05-17 Thread admin
You can have a session start in an htaccess file. .htaccess php_value session.auto_start 1 Do not scream at me if you do not like this approach or it does not work for you. I use it and it works well for me. Simply a suggestion. Richard L. Buskirk -Original Message- From: Ross Ha

RE: [PHP] [SPAM] Re: Explode Question

2011-05-18 Thread admin
Okay, Can you translate this lingo for me? "since YOU ARE an ADMIN, you should real know abut, HOW TO WRITE A NEW MESSAGE and not to hijack a SPAM thread..." I thought to "abut" was the act of leaning for support? Maybe I am wrong. I am on good advice that the word "rea

RE: [PHP] Filtering data not with mysql...

2011-05-18 Thread admin
To quote "Jonathan" Well, mysql_real_escape_string doesn't protect against sql injections more than addslashes, but that's not the reason you use it. addslashes() was from the developers of PHP whereas mysql_real_escape_string uses the underlying MySQL C++ API (i.e. from the developers of MySQL).

RE: [PHP] Filtering data not with mysql...

2011-05-19 Thread admin
Andre, I remember this exact question and I thought jonathan gave the best answer. He suggested the addcslashes function in combination with the mysql_real_escape_string. http://php.net/manual/en/function.addcslashes.php This is a good read and the function was updated as recent as 5.2.

RE: [PHP] problem in onclick

2011-05-20 Thread admin
I use Jquery everyday to communicate with php files. When I say every day I mean every day. If I could not communicate from Javascript to PHP, Real time data analysts would be NULL. Tedd, could not be more correct in his example. Toot's the Tedd horn!!! Richard L. Buskirk -Original Messa

RE: [PHP] problem in onclick

2011-05-20 Thread admin
That is because you do not have jquery loaded. Here you can link to googles jquery or download it to your server. http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js Richard L. Buskirk -Original Message- From: Negin Nickparsa [mailto:nickpa...@gmail.com] Sent: Friday, May 20

RE: [PHP] Script ID?

2011-05-21 Thread admin
I use define('page1, 1); Richard L. Buskirk -Original Message- From: tedd [mailto:t...@sperling.com] Sent: Saturday, May 21, 2011 10:11 AM To: PHP General Subject: [PHP] Script ID? Hi gang: Okay, so,what's the "best" (i.e., most secure) way for your script to identify itself *IF*

RE: [PHP] Script ID?

2011-05-21 Thread admin
So sorry Tedd, I was typing away with the rest of that and after hitting send I notice all I sent was the define. define('PAGE_1', 1); I use define because sometimes I want o know what script included another and if that script does not have a defined value I do not allow it to run. Just

[PHP] Queries and Common Practices

2011-05-22 Thread admin
I have been working on a class methods for some time now. I have reached a cross road when it comes to common practice of developing query structure. Long ago I wrote queries where I just called the field I wanted on a particular table unless I was joining them. Example: $query = " SE

RE: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread admin
Simon, So without extending foo you can run bar in another class? Richard L. Buskirk -Original Message- From: Simon Hilz [mailto:simon.h...@gmx.de] Sent: Sunday, May 22, 2011 10:18 AM To: php-general@lists.php.net Subject: [PHP] context when calling non static method of class i

RE: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread admin
Simon, To be honest if it works, I hope they do not fix it. My only problem is that my classes are typically not in the same file but they are extended. I am going to try that on an extended class and see if I can instantiate a method from another class in a separate file. Richard L. Bus

RE: [PHP] context when calling non static method of class in a static way

2011-05-22 Thread admin
Correct that. I do not know what I was even thinking when I wrote that response. It does not make any sense what so ever. The class is already extended of course I can call a method from it. Sorry Richard L. Buskirk -Original Message- From: Simon Hilz [mailto:simon.h...@gmx.de] Sen

RE: [PHP] htaccess question

2011-05-23 Thread admin
First turn your ReWriteEngine On. This can be done in the particular folder to allow them access to only the one file. You need to understand the conditions of mod_rewrite read below. http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html OR you can just use the http://cooletips.de/htaccess/ fr

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread admin
The %{HTTPS} variable is not an Apache core variable. A more-portable solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for "not port 80" or "not port 443." Also, you're requiring an *exact* match on "not /user" or "not /admin," mean

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread admin
tion is to check %{SERVER_PORT} for port 80 or port 443 -- or for "not > port 80" or "not port 443." ah but this doesn't actually work for me, I get 80 regardless of whether I use HTTP or HTTPS, even if I use https://example.com:443 > Also, you're requiring an *exact*

[PHP] Unique multi dimensional arrays

2011-05-29 Thread admin
I have worked for some time on developing a method for this issue. The problem has always been the flexibility of the method to work in any situation. I had initially thought this might be my solution. Function multi_dim_unique($array='') { For ($a=0;$b=count($array);$a<$b;$a++)

RE: [PHP] https help

2011-05-30 Thread admin
Negin, That is pretty vague. More details please Richard L. Buskirk Senior Software Engineer/Systems Administrator You can't grow your business with systems that are on life support... -Original Message- From: Negin Nickparsa [mailto:nickpa...@gmail.com] Sent: Monday, May 3

RE: [PHP] phpsadness

2011-06-03 Thread admin
I am writing a filter as I reply, to delete any comments to this thread that come to my mailbox So I do not have to deal with manually deleting them as they come in. Richard L. Buskirk -Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Friday, June 03, 2011 10:58 AM T

RE: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread admin
LOL, That is too funny. I took the wording "System Detonation" literally. Did it take your server offline or did it just say that in CLI. Richard L. Buskirk -Original Message- From: xucheng [mailto:helloworldje...@gmail.com] Sent: Saturday, June 04, 2011 2:55 AM To: Daniel Bro

RE: [PHP] Found this and I thought of you.

2011-06-04 Thread admin
LOL, that’s awesome. Cough.. Cake... cough can anyone guess the DB username LOL Richard L. Buskirk -Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Saturday, June 04, 2011 7:35 PM To: PHP General list Subject: [PHP] Found this and I thought of you. http:

RE: [PHP] php hide menu

2011-06-07 Thread admin
Dynamically changing displays can be done with JavaScript. First thing I want you to think of is whether or not your 2nd and 3rd menus require information from the first menu to display or sort. According to what I see they do not. If they do not : We start off wrapping each of the second and 3r

RE: [PHP] Can't use class "'DOMDocument"

2011-06-07 Thread admin
Did you install the php-xml ? Richard L. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Monday, June 06, 2011 9:49 PM To: php-general@lists.php.net Subject: [PHP] Can't use class "'DOMDocument" Hi, When I try using DOMDocument I get the following error:

RE: [PHP] What do you get for ...

2011-06-07 Thread admin
Microsoft Windows Version 5.1.2600 E:\>php -r "var_dump(realpath(null));" string(41) "E:\" E:\> Richard L. Buskirk -Original Message- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Tuesday, June 07, 2011 6:35 AM To: PHP General list Subject: [PHP] What do you get for ... H

RE: [PHP] Can't use class "'DOMDocument"

2011-06-09 Thread admin
http://www.php.net/manual/en/dom.requirements.php They usually post the requirements or dependencies if there are any. Richard L. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Wednesday, June 08, 2011 10:30 PM To: ad...@buskirkgraphics.com Cc: php-gen

RE: [PHP] Ftp upload

2011-06-14 Thread admin
Andre, I have checked the $_POST, and THE $_FILES. I am pretty sure the actual path is not passed. Now you can find the path on the server in the tmp_name of the $_FILES array. I have read a few DOM related issue concerning the PATH of the file uploaded in mulitpart/form-data. Microsoft: Inter

RE: [PHP] Ftp upload

2011-06-14 Thread admin
Andre, Anything over 7 MB to me should be done with FTP. You have a lot of issues with file corruption, length of upload, and bandwidth on each end. But you have to remember, I am crazy in the head. "I think that customer satisfaction is key!!!" Richard L. Buskirk -Original Messa

RE: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread admin
Will they allow you to recompile PHP http://www.php.net/manual/en/imagick.installation.php Richard L. Buskirk -Original Message- From: Tamara Temple [mailto:tamouse.li...@gmail.com] Sent: Tuesday, June 14, 2011 6:18 PM To: PHP-General List Subject: Re: [PHP] Convert a PDF to a PNG? O

RE: [PHP] Ftp upload

2011-06-14 Thread admin
LOL yeah. Since I can buy a 2 terabyte external hard drive and caddy for less than $300. At Best Buy. Richard L. Buskirk... -Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Tuesday, June 14, 2011 8:25 PM To: PHP General Subject: Re: [PHP] Ftp upload I bought a 1GB

RE: [PHP] Doctrine madness!

2011-06-17 Thread admin
While I do agree with your discloser of the bloat for all off the shelf frameworks. I created my own framework and my development time drop drastically and not by a few hours, in some cases days. The complaint of time is always an issue, if you do not scope out a project properly. Timelines and

RE: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】

2011-06-20 Thread admin
I see that it is actually from rjck...@gmail.com I am not bilingual in Japanese but this is what I can make out it is an Advertisement. (A/the N class, S class, AAA class purse, bag! ) (A/the brand mansion) Japanese highest level copy brand 激 cheap market ☆*. http://www.special-price.biz/ ☆*. Ma

RE: [PHP] Parent Limits?

2011-06-20 Thread admin
Why not set a constants for a base path and then you do not have to do that? define('BASE_PATH','C:\\inetpub\\vhosts\\yourwebsite.com\\httpdocs\\'); <--windows format for path define('DIR_INCLUDES', './includes'); require_once(BASE_PATH.DIR_INCLUDES.'ini.inc.php'); Richard L. Buskirk -Or

[PHP] Call to undefined function

2011-06-23 Thread admin
I am running a scheduled task for the first time since switching from linux to Windows IIS I am getting an error when the task runs. Fatal error: Call to undefined function mysql_connect() I ran php.exe -m to see that the MySQL Module is loaded. I have no issues unless I am running a php fi

RE: [PHP] Call to undefined function

2011-06-23 Thread admin
Okay, I am just start apologizing for my own ignorance. In the task scheduler I told the php.exe to use a older configuration file. TOTALLY my fault, seems PHP.ini file I used for the web was not the one I pointed the task manager at. Resolved and I will crawl back under my rock and read m

[PHP] Upgrade or Die?

2011-06-24 Thread admin
In shifting gears to a faster pace of development and release, Mozilla has opted to abandon security support for Firefox 4 immediately upon the release of version 5, which came out this week. This could be a risky move, since many users neglect to update their browsers immediately for various rea

RE: [PHP] Upgrade or Die?

2011-06-24 Thread admin
The message for Netscape was very clear, the development community refused to write for it they had started a precedence that could not be forgotten. I say communities will not forget this act and remove the browser from their systems rather than be forced into an update for security reasons. Ho

RE: [PHP] caching problem

2011-06-28 Thread admin
If the issue is a caching proxy or browser caching I suggest you look into controlling the page caching header. You can expire the header. // calc an offset of 24 hours $offset = 3600 * 24; // calc the string in GMT not localtime and add the offset $expire = "Expires: " . gmdate("D, d M Y H:i

RE: [PHP] caching problem

2011-06-28 Thread admin
Faith, I actually did read from the beginning of the message. That does not make sense. PHP files are cached intentionally, the system does not Cache PHP on its own. Sounds to me like you have an issue re-declaring an object or calling the right script/path/class/method something. I have never

RE: [PHP] caching problem

2011-06-28 Thread admin
Fatih, I am sorry spell check auto corrected your name, I was not changing your name on purpose. It was not my intension to piss you off. I understand your frustration, trust me. I am running 5.3.6 on Windows Server 2008 R2 IIS, I am running massive class based methods in my own framew

RE: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread admin
I could be wrong on this but, I am pretty sure you can use GET variables but not POST in a header redirect. Example header('Location:http://www.yourmom.com/?large=incharge&hasorbit=yes'); Richard L. Buskirk -Original Message- From: Md Ashickur Rahman Noor [mailto:ashickur.n...@gmail

RE: [PHP] Re: Parent Limits?

2011-06-30 Thread admin
Brian, I totally get what you are saying. I just may have not translated my thoughts to you very well and I am very sorry for that. I tested the design on a few of my servers. I had issues on my windows Servers and did not have issues on my RHEL servers There is an actual term for this pra

[PHP] Top Posting

2011-07-05 Thread admin
Since this is the 3rd time I have been chewed out for top posting. Anyone know how to make Outlook changes its reply position. I am using outlook 2007 and I do not find an option for this. I have to scroll down to the bottom of the email and it considers that to be an adjustment to the origi

RE: [PHP] Re: Top Posting

2011-07-05 Thread admin
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Tuesday, July 05, 2011 1:53 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Re: Top Posting > > > "Ashley Sheridan" wrote in message > news:21e916f2-2a1f-4982-bc4d-9a574da92...@email.android.com.

RE: [PHP] Constants in strings

2011-07-06 Thread admin
> -Original Message- > From: Dave Wilson [mailto:dai_bac...@hotmail.com] > Sent: Wednesday, July 06, 2011 10:11 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Constants in strings > > On Wed, 06 Jul 2011 12:56:21 +0100, Stuart Dallas wrote: > > My guess is that the preceding $ cau

RE: [PHP] Constants in strings

2011-07-06 Thread admin
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Wednesday, July 06, 2011 10:49 AM > To: ad...@buskirkgraphics.com; 'Dave Wilson'; php-general@lists.php.net > Subject: RE: [PHP] Constants in strings > > > > > > >define('DIR_JAVA', '/js/'); > > > >Wh

RE: [PHP] How to sum monetary variables

2011-07-18 Thread admin
> -Original Message- > From: Martín Marqués [mailto:martin.marq...@gmail.com] > Sent: Monday, July 18, 2011 6:01 PM > To: PHP General > Subject: [PHP] How to sum monetary variables > > I'm building a table (which is a report that has to be printed) with a > bunch of items (up to 300 in som

RE: [PHP] Re: testing

2011-08-02 Thread admin
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Tuesday, August 02, 2011 5:25 PM > To: php-general@lists.php.net > Subject: [PHP] Re: testing > > > ""Jim Giner"" wrote in message > news:6d.60.30104.5b968...@pb1.pair.com... > > Don't seem to be getting

RE: [PHP] Syntax Question

2011-08-03 Thread admin
> -Original Message- > From: Gates, Jeff [mailto:gat...@si.edu] > Sent: Wednesday, August 03, 2011 10:23 AM > To: php-general@lists.php.net > Subject: [PHP] Syntax Question > > I, too, am a super newbie. I have a beginning knowledge of being able > to > "read" php and understand its syntax

RE: [PHP] control structure

2011-08-04 Thread admin
()) > { > session_start(); > } > if($_SESSION['signed_in'] == false | $_SESSION['user_level'] != 1 > || $_SESSION['user_level'] != 2 ) > { > //the user is not an admin > echo 'Sorry, you do not have suff

RE: [PHP] Struggling with MySQL query

2011-08-09 Thread admin
> -Original Message- > From: David Green [mailto:simp...@gmail.com] > Sent: Tuesday, August 09, 2011 10:14 AM > To: php-general@lists.php.net > Subject: [PHP] Struggling with MySQL query > > Hi > > I have a simple from which uses the post method to get to my page > script > results.php >

RE: [PHP] Code should be selv-maintaining!

2011-08-29 Thread admin
> -Original Message- > From: Rico Secada [mailto:coolz...@it.dk] > Sent: Monday, August 29, 2011 3:42 PM > To: php-general@lists.php.net > Subject: [PHP] Code should be selv-maintaining! > > Dont get me wrong, I love programming! But what an absolute pain in the > ass it is when you re-us

[PHP] newline and return issues in string

2011-10-11 Thread admin
I have come across an issue with my string that I would like to find a faster way to resolve. It seems there are new lines and returns at different positions of the string. First I exploded on the new line explode(“\n”, $ string) This gave me a nice array but when I try to implode I get the

RE: [PHP] newline and return issues in string

2011-10-11 Thread admin
> -Original Message- > From: Bastien Koert [mailto:phps...@gmail.com] > Sent: Tuesday, October 11, 2011 8:53 AM > To: ad...@buskirkgraphics.com > Cc: php-general@lists.php.net > Subject: Re: [PHP] newline and return issues in string > > On Tue, Oct 11, 2011 at 7:58 AM, wrote: > > I have

RE: [PHP] newline and return issues in string

2011-10-11 Thread admin
> -Original Message- > From: Richard Quadling [mailto:rquadl...@gmail.com] > Sent: Tuesday, October 11, 2011 9:44 AM > To: ad...@buskirkgraphics.com > Cc: php-general@lists.php.net > Subject: Re: [PHP] newline and return issues in string > > On 11 October 2011 12:58, wrote: > > I have co

RE: [PHP] Re: newline and return issues in string

2011-10-11 Thread admin
Richard L. Buskirk Senior Software Engineer/Systems Administrator You can’t grow your business with systems that are on life support... > -Original Message- > From: Al [mailto:n...@ridersite.org] > Sent: Tuesday, October 11, 2011 10:17 AM > To: php-general@lists.php.net > Subject: [PHP

RE: [PHP] Problem with date

2011-12-07 Thread admin
> -Original Message- > From: Jack [mailto:jacklistm...@gmail.com] > Sent: Wednesday, December 07, 2011 1:49 PM > To: PHP > Subject: [PHP] Problem with date > > Hello All, > > > > I have a problem where Dates are coming out as 12.31.1969 19:00:00 > which of > course we didn't have PC's

RE: [PHP] Preferred Syntax

2011-12-14 Thread admin
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@tamaratemple.com] > Sent: Wednesday, December 14, 2011 1:40 PM > To: Tedd Sperling > Cc: Rick Dwyer; PHP-General > Subject: Re: [PHP] Preferred Syntax > > Tedd Sperling wrote: > > On Dec 14, 2011, at 7:59 AM, Rick Dwyer wrot

RE: [PHP] Preferred Syntax

2011-12-14 Thread admin
> -Original Message- > From: Adam Richardson [mailto:simples...@gmail.com] > Sent: Wednesday, December 14, 2011 2:19 PM > To: Rick Dwyer > Cc: PHP-General > Subject: Re: [PHP] Preferred Syntax > > On Wed, Dec 14, 2011 at 7:59 AM, Rick Dwyer > wrote: > > > Hello all. > > > > Can someone t

RE: [PHP] Question about date calculations

2011-12-29 Thread admin
> -Original Message- > From: Fatih P. [mailto:fatihpirist...@gmail.com] > Sent: Thursday, December 29, 2011 5:10 PM > To: Frank Arensmeier > Cc: Eric Lommatsch; php-general@lists.php.net > Subject: Re: [PHP] Question about date calculations > > On Thu, Dec 29, 2011 at 11:40 PM, Frank Aren

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread admin
> -Original Message- > From: Eric Lommatsch [mailto:er...@pivotaldata.com] On Behalf Of Eric > Lommatsch > Sent: Friday, December 30, 2011 12:31 PM > To: Fatih P.; ad...@buskirkgraphics.com > Cc: 'Frank Arensmeier'; 'Eric Lommatsch'; php-general@lists.php.net > Subject: RE: Re: [PHP] Quest

RE: [PHP] differences in between these env. variables

2012-01-27 Thread admin
> -Original Message- > From: Tedd Sperling [mailto:tedd.sperl...@gmail.com] > Sent: Friday, January 27, 2012 12:09 PM > To: php-general. List > Subject: Re: [PHP] differences in between these env. variables > > On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote: > > > Is there ever

RE: [PHP] free space

2012-01-31 Thread admin
> -Original Message- > From: Sean Greenslade [mailto:zootboys...@gmail.com] > Sent: Tuesday, January 31, 2012 2:50 PM > To: saeed ahmed > Cc: PHP General > Subject: Re: [PHP] free space > > On Tue, Jan 31, 2012 at 1:59 PM, saeed ahmed > wrote: > > > is there any free server where one can

[PHP] syntax question

2012-02-07 Thread admin
I have been struggling with this issue for an hour and honestly I am not sure why. I consider myself to be pretty savvy with MySQL but I am running into an syntax error that is just flat out eluding me. $query = "SELECT `table2`.`name` from `table1` ,`table2` WHERE `table2`.`user_id`=`table1`.

RE: [PHP] syntax question

2012-02-07 Thread admin
> -Original Message- > From: Louis Huppenbauer [mailto:louis.huppenba...@gmail.com] > Sent: Tuesday, February 07, 2012 9:24 AM > To: ad...@buskirkgraphics.com > Cc: php-general@lists.php.net > Subject: Re: [PHP] syntax question > > Generally... Wouldn't grouping by an id (which is normall

RE: [PHP] syntax question

2012-02-07 Thread admin
> -Original Message- > From: ma...@behnke.biz [mailto:ma...@behnke.biz] > Sent: Tuesday, February 07, 2012 10:47 AM > To: php-general@lists.php.net; ad...@buskirkgraphics.com > Subject: Re: [PHP] syntax question > > > > ad...@buskirkgraphics.com hat am 7. Februar 2012 um 15:11 geschrieb

RE: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread admin
> -Original Message- > From: Mike Mackintosh [mailto:mike.mackint...@angrystatic.com] > Sent: Tuesday, February 07, 2012 1:57 PM > To: PHP General List > Subject: [PHP] What's Your Favorite Design Pattern? > > I was curious to see what everyones favorite design patterns were, if > you use

RE: [PHP] Function mktime() documentation question

2012-03-07 Thread admin
Tedd, This area was always a little grey to me. I have used -1 to obtain the previous months for some time now. 0 always indicated the beginning index of the current month but the explanation never seemed to fit the bill. Having worked extensively in time manipulation in many of the deve

RE: [PHP] round()

2007-10-10 Thread admin
> While we're entertaining algorithms, has anyone else noticed that > php's round() isn't the most accurate algorithm to round? If you will refer to chafy's reply on 28-Feb-2007 06:13 The function round numbers to a given precision.

[PHP] preg_match_all Help

2007-10-11 Thread admin
I have tried this many way and for some reason I cannot pull content between the 2 pattern options. function pullchannel($document) { preg_match_all('/]*>(.*)]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_replace('"',"","$match"); retu

RE: [PHP] preg_match_all Help

2007-10-11 Thread admin
Okay use this as an example I want put parse the html document and toss everything between the two Div class channels into an array. The problem I am having is that I cannot grab everything in between the Pattern of the preg_match_all. If I preg_match_all('/]*>/i',$document,$elements); it works pe

[PHP] HTML Parse Issue

2007-10-14 Thread admin
I am having a issue parsing an html file. I want to pull all the data between two html tags. Problem I am having is that no matter what I try I can pull either tag or both but not the data in between.

RE: [PHP] Unsetting a header

2007-10-21 Thread admin
Try this never gives me a problem. I use it to keep proxy servers from caching. Richard L. Buskirk -Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 7:55 AM To: PHP General List Subject: [PHP] Unsetting a header Does anyone know of a way

RE: [PHP] Re: How do I specify a local file for fopen()?

2007-11-05 Thread admin
I simply do this $file="/home/images/index.html"; $output = fopen($file, "w"); -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie Sent: Monday, November 05, 2007 4:06 AM To: php-general@lists.php.net Subject: [PHP] Re: How do I specify a local file for fo

RE: [PHP] Re: How do I specify a local file for fopen()?

2007-11-05 Thread admin
I would like to change my answer to that question. Due to my lack in desire, to read the entire email at first I have made a bad judgment error in exactly what you was trying to do. Yes trying to open a file on your local computer from the server is not a good idea. HOW EVER. There are many opt

RE: [PHP] explorer

2007-11-10 Thread admin
You can't (SERVER vs Client) you cannot make Php open an program on the client computer. If you want to get a file from your computer that is a simple HTMLTag. Please explain if that is not what you meant. -Original Message- From: kNish [mailto:[EMAIL PROTECTED] Sent: Saturday, Novemb

RE: [PHP] Cannot send a hyperlink

2007-11-11 Thread admin
The Answer is quiet simple. $E_MAIL = "[EMAIL PROTECTED]"; $to = "[EMAIL PROTECTED]"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "To: Their Name<[EMAIL PROTECTED]> \r\n"; $headers .= "From: your email <[EMAIL PROTECTED]>\r\n";

RE: [PHP] Cannot send a hyperlink

2007-11-11 Thread admin
Brad I'm sorry. Instead of insulting you and telling you to go read a book I simply explained an option. Yes you do not need quotes in the mail() function. As for the declared variables I was trying to show you an example. You will find many explanations for how or what is best practice. Reme

RE: [PHP] What to do when flush() doesn't?

2007-11-11 Thread admin
ob_flush();Flush(); works for me. -Original Message- From: Jon Westcot [mailto:[EMAIL PROTECTED] Sent: Sunday, November 11, 2007 5:31 AM To: PHP General Subject: [PHP] What to do when flush() doesn't? Hi all: I am trying to get information from a rather long-running PHP script to

RE: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread admin
You could simply validate the user with session_start(); $tbaged = false; if (isset($_SESSION['user_id'])) { $user = new User($_SESSION['user_id']); $tbaged = true; else { $login = $_REQUEST['screename']; $password = $_REQUEST['pword']; $login = clean($login); $password = clean(

RE: [PHP] Fwd: Returned mail: User unknown

2007-11-12 Thread admin
PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:31 PM To: php-general List Subject: [PHP] Fwd: Returned mail: User unknown Can an admin or mod please force an unsubscribe on <[EMAIL PROTEC

RE: [PHP] web page download question

2007-11-12 Thread admin
http://www.catavitch.com The Script I have written actually does that for predefined websites. The content is LIVE pull directly from the website listed. MOST important thing to remember "GET PERMISSION" to scrape as you call it. I can store the data if I want or dish it up in the example. I can

RE: [PHP] Run process in background

2007-11-14 Thread admin
You need to run wget from a cron job. -Original Message- From: Viacheslav Chumushuk [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 9:10 AM To: php-general@lists.php.net Subject: [PHP] Run process in background Hello. I want to run process from my php script in background

RE: [PHP] I need help handling form posting

2007-11-15 Thread admin
I do this Example: "; break; case "upload": //Upload function here $dispay_time = date('is') - $_POST['$click_stamp']; Echo "File took $dispay_time to upload"; //Time stamp it anyway you want EXAMPLE ONLY!! break; } ?> FOR GODS SAKE DON'T comment on syntax or design. I DO NOT CARE this i

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread admin
Understand your syntax issue has nothing to do with the mail function its self. That was an Operator headspace Issue. Including links in email is not hard your entire email structure was BLOWN UP... For you to even submit that to php.net is useless. A. No one is going to post that. Because it has

RE: [PHP] bank query and curl

2007-11-17 Thread admin
WHY! Would you even want to pull that data first off? It would be out dated as of the next transaction anyway. Secondly if you can curl the data from the server, and get your account information! I suggest you change banks. Bad decision I think to make this attempt. You can bet I will be watchi

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
"; ?> >I am trying to recursively send data to the same form. Based on the data, I >want to determine which "action" is to be processed. It appears that the >$_POST is not being cleared out or cached once it is sent to the server. >Here is my code that I'm trying to test with. It doesn't

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
Or try "; ?> There are a 1000 and 1 ways to make the script smaller yet still produce the same effect. Remember there is no reason to declare the POST array for matching in this particular setup. Some may disagree Notice I added a error checking if the array is blank. I am going to stop at t

RE: [PHP] Securing your Sites

2007-12-17 Thread admin
I want to personally thank you for 6 hours of work to remove the PHP-Back-door Trojan, that download from your site to my PC while viewing that POS you call a help line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Connecting to MySQL database

2007-12-26 Thread admin
First I suggest you see if MySQL is even running. Terminal Window type the following service mysqld status If it is running Great now you need to check your connection string for Errors. Not running do this * Terminal Window service mysqld start If you have an error in the setup it wi

RE: [PHP] Security scanner

2008-02-11 Thread admin
Injections only work on sloppy code. If you are using globals you are asking for injections. Turn your globals off, use $_POST[var_name] and filter all user input. Just my opinion, I am sure some will disagree. Richard L. Buskirk ## Show me a man with no fear, I will point out the date on his t

[PHP] DBR.php ???

2008-02-11 Thread admin
As much as I admire Daniel, I think who ever sent me this question needs to rethink thier naming convention. On Feb 9,2008 12:47 PM, WHOAMI <[EMAIL PROTECTED]> wrote: > Would you use this to server auth? > > if($_REQUEST['from']!="1567d5af328786cdc81ed0f456bf") > { > $DanielBrown_rules = "in

Re: [PHP] DBR.php ???

2008-02-11 Thread admin
No clue Daniel, was sent to me directly using a non returnable email. I had to post it here because it had your name all over it. I agree not your style at all. Just beware another name for fan is (Stalker). lol Rich. On Feb 11, 2008 11:19 AM, <[EMAIL PROTECTED]> wrote: > As much as I admire

[PHP] group by on mssql_query

2008-02-14 Thread admin
$ford = mssql_query("SELECT name FROM Table GROUP BY name"); while($mustang = mssql_fetch_array($ford)) { echo $mustang['name'] . "/n"; } OS 2003 Server PHP 5.2.5 Apache 2.2.8 SQL 2000 For some reason it is NOT clicking what I am missing here. Second set of eyes please -- PHP General Maili

Re: [PHP] group by on mssql_query

2008-02-14 Thread admin
Column 'location_city.dst' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. Not fimilar with MSSQL to be honest. On Thu, Feb 14, 2008 at 4:00 PM, <[EMAIL PROTECTED]> wrote: > $ford = mssql_query("SELECT name FROM Table GROUP BY

Re: [PHP] group by on mssql_query

2008-02-14 Thread admin
Sweet Mother it just clicked. I got it thank you dan. On Thu, Feb 14, 2008 at 4:00 PM, <[EMAIL PROTECTED]> wrote: > $ford = mssql_query("SELECT name FROM Table GROUP BY name"); What do you see when you replace the above line with this? $ford = mssql_query("SELECT name FROM Table GROUP BY

<    1   2   3   >