Re: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
dan wrote: Chris wrote: Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --

Re: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
that one this weekend. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and MySQLi compiling

2005-02-18 Thread Chris
Chris wrote: ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr --with-mysql-include-dir=/usr/include/mysql --with-mysql-lib-dir=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config it might work. I've managed to stave of the need for the mysql extension for a week or two

Re: [PHP] MySQL and MySQLi compiling

2005-02-18 Thread Chris
Thanks for the response, in fact I can't find any mysql.lib files, and the only mysql.so I found is under perl directory. I had tried /usr as the argument to --with-mysql , but it made no obvious change. I'm including some file paths that seem like the could be important below. Thanks

Re: [PHP] MySQL and MySQLi compiling

2005-02-19 Thread Chris
Thanks for all the help, I managed to get it working, though I'm not quite sure the reasoning behind it. I used some info I got off of http://bugs.php.net/bug.php?id=29860 to do it. I posted my particular resolution to the bug report. It seems to me that *something* isn't right Ch

Re: [PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Chris
definitely work, and, in my opinion, works best. You'll just need something to convert HSB to RGB, to get the color in a form GD understands. One alternative, with HSB, is to generate random RGB values, then just rotate them through (RGB = Primary color, GBR = Color 1, GRB = Colo

Re: [PHP] Dynamically Generate Pleasing Colors

2005-02-25 Thread Chris
Two glaring typos were fixed Chris wrote: Well I would suggest you find some PHP code That converts between HSB/HSL (Hue-Saturation-Brightness/Lightness). From there are are a multitude of fairly simple algorithms that will give you complementary colors. You can find these by searching on

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Chris
. That would signify the end of the Request body (and the server should not send a response until it gets that.) I'm not sure it'll fix your problem, but it's worth a shot Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stream_set_timeout & get_headers (PHP5)

2005-03-05 Thread Chris
I'm requesting some remote files to cache on my own server and performing a get_headers() first to find out the file type, since I don't always know what it is. I've discovered some timeout problems with the remote server sometimes and my own script would end up with a fatal error because th

Re: [PHP] PHP 5 Strings are References?!

2005-03-29 Thread Chris
Richard Lynch wrote: On Tue, March 29, 2005 7:58 pm, Chris said: Richard Lynch wrote: Aha! Okay, here's the previous session question boiled down to its simplest: \n"; ?> Now, hit this page, re-load it, and what do *YOU* expect $_SESSION['name'] to output? A) '

Re: [PHP] PHP 5.0.4 not generating /usr/local/bin/pear ?

2005-04-04 Thread Chris
That could be caused by http://bugs.php.net/bug.php?id=32525 . Though I don't know much about PEAR. mbneto wrote: Hi, I've downloaded the 5.0.4 targz and installed on a new server using the same ./configure settings I use in a nother server that runs php 5.0.3. I did a make/make install and everyth

[PHP] Almost OT - urlencode and IE

2005-04-04 Thread Chris
le urlencode it `urlencode(urlencode($sData))` while Firefox and Opera (and, I imagine, every other non-microsoft browser out there) only needs to be encoded once. I could gripe about IE or whatnot, but I just want to know if there have been 'solutions' to this problem in the past? Tha

[PHP] Re: A strange problem..

2005-04-04 Thread chris
what is the structure of your table? "JoShQuNe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, i have a strange problem. In my site i have to counters for file > downloads. One is general, other is weekly. On the main page i > display a list sorted according to weekly hits. Th

[PHP] Re: What's the going rate for making websites ?

2005-04-04 Thread chris
Get it in writing... -- Find out what they want and have them sign the design targets. Price depends on the complexity --- I break a job done by functional areas and how much time I expect to spend developing each section (i.e. - message

[PHP] Re: Javascript Calendar and PHP

2005-04-05 Thread chris
I do not know of a specific calendar, but communication between JavaScript and php is most commonly handled via a form post. Think of it along these lines. 1 - client downloads your page with JS calendar script. 2 - client clicks on a calendar day. 3 - onclick event submits the day via post vari

Re: [PHP] Almost OT - urlencode and IE

2005-04-05 Thread Chris
hecking if the Users browser is IE, then double encoding them if so. Thanks, Chris Philip Hallstrom wrote: You could base64_encode it... you'll run into url length issues at some point, but I believe that's around 4kbytes or so... I've done this before... something like: base64_en

[PHP] insert mysql data with safe mode on problem

2005-04-07 Thread Chris
lem. Also, the following conditions are NOT available as an option. 1 - use phpmyadmin 2 - increase the script execution time in php.ini (set_time_limit doesn't work in safe mode) 3 - enable LOAD DATA INFILE by granting the MySql File_priv -- Chris -- PHP General Mailing List (http://www.p

Re: [PHP] Session gets corrupted (or lost)

2005-04-09 Thread Chris
What does your class definition look like, and when you you declare it? Maybe your class isn't defined when you do the session_start() ? Chris Binomic | Marcelo wrote: Hi, I´ve made a simple site with a loguin, that in my machine works perfectly, but not on the server. The problem seems to

Re: [PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Chris
of AddModules, put it at the bottom of that list. Chris Mark Sargent wrote: Hi All, what line number is the following on, And in the AddModule section of httpd.conf, somewhere under the ClearModuleList, add this: For PHP 4: AddModule mod_php4.c For PHP 5: AddMo

[PHP] Re: HELP! HELP !

2005-04-13 Thread chris
Read in the manual about the $_GET variable "Justin Joe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > HI, > > Any body give me any hinder I would be very appreciated! > > I want to use a parameter of the second page in the first page, how can I > realize it. > > For examp

[PHP] Re: scripting workflow

2005-04-13 Thread chris
I hand code everything I do in php. I separate functions and class in referenced files that are grouped by function in the site(i.e. - all queries are in queries.php, the db connection is done in dbconn.php, etc...). This will allow a project to grow without having to rewrite everything. Also d

[PHP] Re: User Management

2005-04-13 Thread chris
Use an $_SESSION array variable to contain the pages they can access. "Dasmeet Singh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > I am developing an applicaton in PHP where different users would have > different permissions and access to different functions/pages of web

[PHP] Re: Getting a contract

2005-04-14 Thread chris
Ryan, Write the contract to state the targets as they exist now, the estimated hours and how you will be paid(i.e. - by the hour, milestone, etc...) then when a change is made to the design, simply make an addendum to the original contract and list the changes that are to be done, estimated time

[PHP] Re: header()

2005-04-14 Thread chris
But you can design the script to redirect to a page with a JavaScript to open a file(PDF) by using the target="_new" and then it redirects to the home page. CJ "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >* Martín Marqués : >> I'm having a bit of a pro

Re: [PHP] htaccess file

2005-04-21 Thread Chris
Well, if the htaccess file caused an internal server error (500) then yes, it's reading it. This isn't an apache list, you probably want to ask this question somewhere else... That being said... Are you missing an 'e' in the AllowOverride line near the bottom? Pieter du Toit wrote: Is there an

Re: [PHP] I need do paging in php, I use ODBC Access

2005-04-21 Thread chris
You are right about MSSQL not having a limit, but here is an article that shows a work around http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=850&lngWId=5 "Warren Vail" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Somebody did paging in php for data ori

Re: [PHP] php4 to php5, now classes don't work?

2005-05-02 Thread Chris
As far as I know PHP 4 classes are completely backwards compatible. with PHP 5. You might try looking at your config options, if register_globals went from On to Off, that would cause your script to break. I seriously doubt that anyone could help you without more information. Chris Mike wrote

Re: [PHP] Function shall receive Pointer to Array

2005-05-04 Thread Chris
I don't know what to tell you, that code should work (it does work, exactly as you gave it in my PHP 5). Chris Fred Rathke wrote: Hello, how can a function get a pointer to an array? This does not work. I use PHP4. $t = array("test" => "unchanged"); echo "

Re: [PHP] Flash&PHP Issue

2005-05-05 Thread Chris
Khorosh Irani wrote: Hello How I can get the width and height of a swf file with php? Thanks http://www.php.net/getimagesize -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto_prepend_file in Apache Directory container

2005-05-12 Thread Chris
ig file is being applied correctly? It seems much more likely to me that Apache, for some reason,.isn't reading the directive.or is reading another after it that is overwriting it. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL: Collation?

2005-05-13 Thread Chris
trieve from the database, that would be an indication that you're using the wrong character set. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add to array problem

2005-05-16 Thread Chris
If you're doing: $items=array(); before each array_push() call, that is emptying the array, then pushing the value onto the empty array. mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(

Re: [PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread Chris
rload the 5 Iterator methods? Any assistance much appreciated! Thanks! I just put all the code that retrieves the data in the next() function. current() and key() just return the variables that next populated. Don't know what else to say. Chris -- PHP General Mailing List (http://www.ph

Re: [PHP] "From" in mail() header problem.

2005-05-18 Thread Chris
Rahul S. Johari wrote: Ave, I¹ve written a simple script to send a mail out in HTML format to the recipient. Everything is working fine... Except the ³From² header. The recipient receives the email from ³World Wide Web Server <[EMAIL PROTECTED]>² instead of what I have specified. Here¹s my code...

Re: [PHP] Class function calling another function in class

2005-05-18 Thread Chris
r } } return($this->str); from getPositions you are returning ->str , so getPositions is appending each row to ->str , then returning ->str , which is then being appended to ->str } Later $depts = $org->getDepts(); echo "" . $depts . ""; Thanks, Charles I'd say just don't append what ::getPositions() is returning.. and remove the return call if it makes sense to do so. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setting browscap.ini

2005-05-19 Thread Chris
Ross wrote: Hi, My isp won't give me access to the php.ini file and they insist you can set browscap.ini up using the .htaccess file. I don't reeally believe this is possible. any ideas? R. Well, this page says it can't be done in .htaccess http://www.php.net/manual/en/ini.php says that brows

[PHP] Pear Layout question

2004-04-19 Thread Chris
this? Does this seem acceptable? PEAR --DB --HTTP --SOAP --NET --etc Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] _$ variable

2004-05-13 Thread Chris
That is, as far as I know, invalid syntax. Maybe it's being confused with the predefined Super Global variables like $_GET , $_POST, and $_SERVER ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 5:30 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] SMTP and changing the character set

2004-05-07 Thread Chris
SMTP, just like HTTP, uses the Content-Type header. So you can do something like this: Content-Type: text/plain; charset=US-ASCII Just add that to the header argument of the mail function, if that's what you're using. Chris -Original Message- From: Todd Cary [mailto:[EMAIL

RE: [PHP] reversing an IF statement

2004-05-01 Thread Chris
The easiest method is just to encase all the checks in parenthese, then negate it: if(!( ($_GET["id"]==1) or ($_GET["mode"]=="home") or ((!isset($_GET["item"])) && ($_GET["mode"]=="news")) )) { // This is where we do it } -Original Message- From: Kim Steinhaug [mailt

RE: [PHP] paging methodology

2004-05-05 Thread Chris
found rows. Chris -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:33 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] paging methodology John W. Holmes <mailto:[EMAIL PROTECTED]> on Wednesday, May 05, 2004 7:32 AM said: > Perso

RE: [PHP] paging methodology

2004-05-05 Thread Chris
nformation_functions.html Chris -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 11:07 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] paging methodology Chris <mailto:[EMAIL PROTECTED]> on Wednesday, May 05, 2004 10:56 AM said: >

[PHP] Pear/Net_FTP help

2004-05-20 Thread Chris
} $ftp->pwd(); // Lets see what we can see. $ftpLS = $ftp->ls(null, NET_FTP_DIRS_ONLY); echo ""; print_r($ftpLS); echo ""; $ftp->disconnect(); I get a error message back saying it could not retrieve current directory. Can anyone offer any help? Example code would be appreci

php-general@lists.php.net

2004-05-31 Thread Chris
The ampersand indicates that the function is returning by reference: http://www.php.net/references.return Chris René Fournier wrote: Oops... I mean, what's the difference between function &myfunction() { } and function myfunction() { } ? -- PHP General Mailing List (http://www.php

RE: [PHP] asp.net vs. php

2004-06-06 Thread chris
Curt, I know you're well meaning, but ASP.old has nothing to do with ASP.NET, so much of what you provided is irrelevant. I just finished a largish .NET project and will follow with a response to Kathleen's question. -chris -Original Message- From: Curt Zirzow [mailto:[EMAIL

RE: [PHP] asp.net vs. php

2004-06-06 Thread chris
D] Subject: Re: [PHP] asp.net vs. php chris wrote: >Curt, I know you're well meaning, but ASP.old has nothing to do with >ASP.NET, so much of what you provided is irrelevant. > Curt's point is very valid none the less. just replace asp with asp.net when searching. > >*

Re: [PHP] Converting Hex to RGB

2004-06-08 Thread Chris
It's fairly simple... the hex color code is just: #RRGGBB So use the string functions to separate out each color (probably substr) then use hexdec to convert it into a decimal number. Chris Ashwin Purohit wrote: Hello Everyone, I would like to know if there is some way to write a script so

Re: [PHP] Converting Hex to RGB

2004-06-08 Thread Chris
I'm not sure why it isn't setting the background color properly. Is everything else working ok? That *looks* like it should work, though I haven't ever needed to set a background color for any of my PHP/GD images before... Chris Ashwin Purohit wrote: Sorry Please view the script

[PHP] PHP 5/OOP, Functionality similar to an Abstract method?

2004-06-11 Thread Chris
matter would be appreciated. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 5/OOP, Functionality similar to an Abstract method?

2004-06-12 Thread Chris
Justin Patrin wrote: Chris wrote: I have an abstract class with quite a few 'children'. Essentially I want to be able to interchange calls between children (Take a script, written with ClassA and redefine the variable as ClassB etc.) Though there is a large subset of methods al

Re: [PHP] [PHP5] Super constructor?

2004-06-13 Thread Chris
FrzzMan wrote: Hi guys, hey don't laugh at the subject, in fact I don't what to call it, so let's call it super constructor :D Let's see following code... class Base { __construct() { // Do something } } class One extends Base { __construct() { // Do nothing

Re: [PHP] [PHP5] Super constructor?

2004-06-13 Thread Chris
Well, when you instantiate Class4 PHP will check for it's constructor. If it has one, it will call it. If not it will check Class3, then Class2, then Class1. Once it finds a constructor, it stops looking for more, but if you want it to resume checking the the parents for constructors you must c

Re: [PHP] [PHP5] Super constructor?

2004-06-13 Thread Chris
echo 'GrandChildClass::__construct()',"\r\n"; } } $GrandChildClass = new GrandChildClass(); echo $GrandChildClass; ?> It resulted: ParentClass::__construct() GrandChildClass::__construct() Object id #1 Could anyone kindly tell me why the string "Object id #1" is pr

Re: [PHP] Re: Cookie Security?

2004-06-14 Thread Chris
Marek Kilimajer wrote: Justin Patrin wrote --- napísal:: [snip} As well as much harder for AOL subscribers (whose IP's change per-request) to use the site. [snip] WHAT?? Are you sure of this? AOL really breaks internet browsing this much? Sorry, I can't believe this. If this was true, many thin

Re: [PHP] Re: Cookie Security?

2004-06-14 Thread Chris
Paul Fierro wrote: On 06/14/2004 1:02 PM, Justin Patrin <[EMAIL PROTECTED]> wrote: As well as much harder for AOL subscribers (whose IP's change per-request) to use the site. WHAT?? Are you sure of this? AOL really breaks internet browsing this much? Sorry, I can't believe this. If this w

Re: [PHP] Erroring out?!

2004-06-14 Thread Chris
Robert Sossomon wrote: I am trying to figure out why if there is an error in my query it throws an error message to the screen instead of parsing the rest of my script to get the rest of the information. I have error checking in my script and if there is no information I want it to process and do

[PHP] issue with inheriting private property from abstract class in php5rc3

2004-06-23 Thread Chris
if anyone can, would you please explain why the below code does what it does? I would expect $this->test in TestInstance to refer to the inherited $test from Test. Using php5RC3. Thanks. class TestInstance extends Test { public function __construct() { $this->test = 0; }

Re: [PHP] issue with inheriting private property from abstract class

2004-06-23 Thread Chris
ok, i understand now that private members are NOT inherited. i guess it was just throwing me off that var_dump()/print_r() display the parents private member, even tho its not really a member of the subclass. thanks Marek Kilimajer wrote: Chris wrote --- napísal:: if anyone can, would you

[PHP] imagecopyresampled, GD

2004-06-25 Thread Chris
ccomplish. Any help would be greatly appreciated, thanks! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] word count on record insertion

2004-06-25 Thread Chris
Hi There, I'm trying to develop a band listing site and was just wondering if there is a php function that could limit the amount of words added into a text area. I'm aware that this can be done in javascript but the only one I found doesn't work properly if you try and paste in text to the text b

Re: [PHP] imagecopyresampled, GD

2004-06-25 Thread Chris
Marek Kilimajer wrote: Chris wrote --- napísal:: Hi there, I've looked in many places but have not found any clues on how to work around this problem. I'm using imagecopyresampled to resize an image and crop part of it at the same time. The area I need to crop, unfortunately, is s

[PHP] clearing font tags

2004-06-28 Thread Chris
Hi, Just wondering if there is a way in php to filter out FONT tags when inserting a record from a textarea so information appears with the standard defined CSS style on detail/result pages? Any help would be greatly appreciated Thanks, Chris -- PHP General Mailing List (http://www.php.net

[PHP] Dissappering Tables Server wide

2004-07-04 Thread Chris
Hi All. What would cause all the tables in all the databases to be deleted all at once? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I write/read encoded numbers into/from a file?

2004-07-08 Thread Chris
uot;\0\0\0\0x41"; // Read the data into a var $iAnswer = ord($sBuff{0}) | ord($sBuff{1}) << 8 | ord($sBuff{2}) << 16 | ord($sBuff{3}) << 24; // Get the numerical value of each byte, then shift the bytes to get the 4 byte number. (Little Endian) Chris Julio Sergio Santana wrote

Re: [PHP] [PHP5RC3] echo " $this->db->host " not work

2004-07-11 Thread Chris
Try enclosing the variable in Curly Braces echo " {$this->db->host} "; Otherwise, the string parser sees $this->db as the variable you're referring to. Chris Tomasen wrote: assume $this->db is an object. $db->host is a string "localhost". ehco $this->

Re: [PHP] OO woes

2004-07-12 Thread Chris
quot; == $sQuery; // This just shows what's in $sQuery Now the single-quote in $sString has been escaped, and MySQL doesn't see it as the string delimiter. On a side note, mysql_real_escape_string would probably be prefferable, as it takes into accoutnt he character set of the current co

Re: [PHP] Book Required

2004-07-17 Thread Chris
hat's the 2nd edition (3rd is coming out in October). I have the 1st edition, I would assume the 2nd and 3rd would be just as well written. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About Buggy SQL Query

2007-08-13 Thread Chris
Kelvin Park wrote: mySQL database becomes inaccessible after a buggy sql string gets queried. The SQL server runs fine, however it seems like just the database is being looped infinitely so to say. Here is an example: (PHP) $sql = "SELECT * FROM DB_TABLE WHERE PR_NUMBER = $whatever, DFLJJ = $SD;

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Chris
Looking over PHP i can see a web service client could be written for a RESTful web service using the curl extension (and perhaps others as well) because it facilitates an ability to invoke the HTTP PUT and DELETE methods. Now, coming to my question.. Looking at the W3C page on the XHTML 1.0 for

Re: [PHP] very strange behavior.... incomplete query performed

2007-08-14 Thread Chris
Alain Roger wrote: There was no error message...hust after few secunds it stop as normaly it should do... but i add -> set_time_limit(0); and it works. adding around 20.000 records to database takes some time :-) around 1:41 minutes. I was thinking that i could be faster... :-( After doing yo

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Chris
Nathan Nobbe wrote: Chris, thanks for your reply it sounds like apache does allow the use of a script to handle PUT requests If you install the module, yes. from the sound of it; PUT and DELETE wont work well when using a browser to interact w/ a server, it seems like they are mostly

Re: [PHP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ? (fwd)

2007-08-14 Thread Chris
Brian A. Seklecki wrote: Found it: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?annotate=1.109 Lines 892->895 and 903->905 bring the violence. Rev 1.28 commented it out: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.27&r2=1.28 The bugs assocaited with it are:

Re: [PHP] problem with require_once

2007-08-14 Thread Chris
Vanessa Vega wrote: Good day to all... I would like to ask for some help.. I have a form created in javascript codes. The page is a pop up window. I am passing the values of the form using the method "post". The PHP file that handles the form displays the values from that and had the following

Re: [PHP] Parsing Variables Inside a String

2007-08-15 Thread Chris
[EMAIL PROTECTED] wrote: Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = "y're crazy!"; $new = '$good_day$fr['iop']'; echo TheFunctionIRequest($new); // They're crazy! Well this: echo $good_day . $fr['iop']; will do what you sh

Re: [PHP] About Buggy SQL Query

2007-08-15 Thread Chris
Kelvin Park wrote: Chris wrote: Kelvin Park wrote: mySQL database becomes inaccessible after a buggy sql string gets queried. The SQL server runs fine, however it seems like just the database is being looped infinitely so to say. Here is an example: (PHP) $sql = "SELECT * FROM DB_

Re: [PHP] maintaining session information

2007-08-16 Thread Chris
Vic Agnews wrote: is there a way we can maintain session information across two sub-domains (on two different servers though) ... kinda like how google does it? Might have to use a 3rd party cookie & possibly a custom session handler. A cookie created on 'domain.com' cannot be read by any sub

Re: [PHP] maintaining session information

2007-08-16 Thread Chris
Vic Agnews wrote: Thanks for the suggestions guys I appreciate the help! I guess I'll look into creating a custom session handler. Any good references? http://php.net/session_set_save_handler shows an example. How my current setup works is, there's session information for sub-domain1.dom

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread Chris
John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess we'll just have to go with what we have a

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread Chris
M. Sokolewicz wrote: Chris wrote: John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess

Re: [PHP] using disable_functions silently

2007-08-22 Thread Chris
Samuel Vogel wrote: I would like to know, if there is any way, to use disable_functions silently. We are running an shared hosting environment and therefore forbid the use of exec() etc. Many of our users, just seem to be to dumb to comment out exec() in phpBB etc. Since removing the exec()-c

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread Chris
Daevid Vincent wrote: -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 1:32 PM I thing a good FAQ entry would be how this patch fits in with Suhosin and what are the comparable/conflicting concepts, are they compatible with each other etc.

Re: [PHP] Recompiling PHP with mssql

2007-08-22 Thread Chris
Liz Kim wrote: Hi, I am trying to install Microsoft SQL server functions to PHP 4.3.9 on redhat. When PHP was first installed, it was not configured to include the MSSQL functions. I would like to only add these functions and not touch what is already there... There could be a php-mssql packag

Re: [PHP] Re: Announcement: Releasing CORE GRASP for PHP. An open source, dynamic web application protection system.

2007-08-22 Thread Chris
mike wrote: On 8/22/07, Chris <[EMAIL PROTECTED]> wrote: That's a completely wrong assumption. PhpBB has had a lot of vulnerabilities in the past, as has php-nuke and other popular packages. They've been around for years and not written by newbie's as far as I know - but

Re: [PHP] using disable_functions silently

2007-08-23 Thread Chris
Craige Leeder wrote: Are you *running* a shared hosting environment? If so, what is to stop you from adding the exec() function to the list in php.ini? He wants php to automatically ignore functions listed in the 'disabled_functions' list - which there is no way to do. -- Postgresql & php tu

Re: [PHP] check array values for all NULL

2007-08-23 Thread Chris
This should work : $default_array = array('key0'=>NULL,'key1'=>NULL,'key2'=>NULL,'key3'=>NULL); $the_array = $default_array; [ ... do some stuff ... ] if($the_array === $default_array) { // handle it } brian wrote: I have an array that is initialised with many keys and all values set to N

Re: [PHP] Database includes

2007-08-26 Thread Chris
Bruce Cowin wrote: I'm curious as to how everyone organises and includes their classes in PHP5. Let's take a simple example that has 3 classes: customer, order, and database. The database class has a base sql db class (I know there is PDO and other things but this class is already written and w

Re: [PHP] Database includes

2007-08-28 Thread Chris
brian wrote: Larry Garfield wrote: On Tuesday 28 August 2007, brian wrote: If you have to modify anything other than a single config file in order to move your site/app from one server to another, then you have a design flaw. (I'd say that applies for moving the site to a subdirectory on a

Re: [PHP] Pragmatically changing a "Record Number"

2007-09-02 Thread Chris
tedd wrote: At 6:14 PM -0400 9/2/07, brian wrote: tedd wrote: Hi to the original poster: Snip -- a lot of discussion Use the following code at your own peril. $dbQuery = "ALTER TABLE $dbtable "; $dbQuery .= "DROP id, "; $dbQuery .= "ADD id INT UNSIGNED NOT NULL AUTO_INCREMENT,"; $dbQuery .=

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-03 Thread Chris
Steve Finkelstein wrote: How're you folks dealing with records that are auto incremented in MySQL after a delete is made? I've noticed the only way to get a sequential order back is to truncate the table completely. Do you use logic in your code to find a missing ID and insert new records based

Re: [PHP] Command line socket server and SSL

2007-09-04 Thread Chris
Paul wrote: I need to program a socket server in PHP that can use a certificate and communicate over SSL. I'm doing fine without SSL. Can't use port 443 or the web server for this, so it needs to be a command line app. Can't seem to find any documentation about how to set that up. Can anyone he

Re: [PHP] Curl redirection problem.

2007-09-05 Thread Chris
Basically I want to redirect to: http://www.website.org/index.php after logging in using curl. Curl won't redirect you, you have to do it. header('Location: http://www.website.org'); -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Php script for mail in a xhtml page

2007-09-09 Thread Chris
brian wrote: Mauro Sacchetto wrote: I've to implement a php script in a web page to send mail. If I use a .html form and a separate .php script, all works fine. In the contrary, if I try to put the script into the .html file, I've some troubles... Here's the code: ... When I try to open the pa

Re: [PHP] accessing one object's attribute from another

2007-09-09 Thread Chris
Larry Brown wrote: Hi all, I've be developing with a structured approach for a long time and am working at improving my site by adding some classes etc. I however, am running into an odd thing that I can't figure out what a reasonable search syntax would yield the desired solution. The problem

Re: [PHP] Fwd: 403 Forbiden

2007-09-09 Thread Chris
Jesús de Diego Alarcón wrote: Hello Brian Thank you, but permisions are ok (777). What about the permissions on the visor/php folder? Can you access other files in that folder? What about the permissions on the visor/ folder? Can you access other files in that folder? Do you have access to

Re: [PHP] Fwd: 403 Forbiden

2007-09-09 Thread Chris
Jesús de Diego Alarcón wrote: Hello I've noticed the problem is not well described: 1º There are some times the correct XML appears. However, these times, the call in Firebug comes with "(403)" and highlihted in red color. Does your host have any rate-limiting? Maybe you're hitting the server

Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgi question

2007-09-10 Thread Chris
Felipe Alcacibar wrote: Hi, I got serous problems with modphp5 in a apache, both are compiled with treads, apache was worker-mpm and php was interpreter level threads, i got lots of segmentation faults in threads. someone can helps me? Firstly the configure line you sent us is wrong. It's

Re: [PHP] profiling newb

2007-09-10 Thread Chris
Nathan Nobbe wrote: all, i am just getting my feet wet w/ profiling. its nice to see i can invoke a page from the browser then see an analysis in kcachegrind using xdebug to generate the data. however, im curious about 'finding the weak spots in an application'. say for instance i arrive at a ne

Re: [PHP] MySQL upload problem

2007-09-11 Thread Chris
tedd wrote: At 4:46 PM +0100 9/11/07, Stut wrote: tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg. N

Re: [PHP] MySQL upload problem

2007-09-11 Thread Chris
tedd wrote: At 4:46 PM +0100 9/11/07, Stut wrote: tedd wrote: I know that this is not a php question, but all of you are so smart I thought would ask anyway. I need to upload a 5 Meg sql file to a client's database. However, his site's phpMyAdmin shows a maximum file size limit of 2 Meg. N

Re: [PHP] Getting line count of a text file

2007-09-12 Thread Chris
bruce wrote: greg... while you are correct in your assertion that the shell cmds provided are specific to linux, your assertion/statement that the functions might be 'turned off' are fud... basic bash functions are inherently part of the shell Sure they can - enable safe-mode and it caus

<    1   2   3   4   5   6   7   8   9   10   >