[PHP] Re: Returning Rows Question

2002-09-04 Thread joshua
$tr_properties = 'style="background-color: grey;"'; } } you sould refine the code and simplify it but that is basic principle. joshua Christopher J. Crane wrote: > How do you alternate colors of the rows in a table inside a while statement > when dealing wit

Re: Fw: [PHP] FORUM CODE

2002-09-04 Thread joshua
Kevin Stone wrote: > $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form. 1. I understand what you're doing, and how. But what I don't understand is why? If a user is going to have to type [B]bold[/B], why not just get them to type bold. [bold] and [italic] maybe? 2, I

[PHP] Re: whitespace...

2002-09-04 Thread joshua
the php parser does not return any whitespace between the tags unless youn use print or echo. i wouldn't use: > You should use $content = str_replace(" ","",$content); > I assume that works, there is probably something better than it too but > thats all I see at this hour. as that would rem

Re: [PHP] Upload Progress

2002-09-09 Thread joshua
> A bunch of inpatient stupid users whom > are click happy when they get impatient. > impatient, not very technical, people. People who kept canceling and > canceling, despite our directions, because they thought it was stuck or > frozen or taking too long. the simplest and most elegant work aro

[PHP] Re: LDAP (NDS) authentication example...

2002-09-09 Thread joshua
aff, o=Your Company, c=US" require valid-user If on the other hand you actually want to retrieve data from your LDAP system then i suggest reading the manual. it's not actually a lot harder that connecting to RDBMS. I managed to get a working script straight off the manual page. http://www.php

Re: [PHP] Re: LDAP (NDS) authentication example...

2002-09-11 Thread joshua
;Error -- unable to connect to ldap.someserver.com"; } I'm sure that there's more error checking that needs to be done, but this provides the basic skeleton # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Joshua Richard Whittaker wrote: >>If on the oth

[PHP] Regular Expression

2003-12-27 Thread Joshua
ereg_replace? ereg_replace("\.[0-9]","\\0",$string) gives me the wrong result like: 11.abcd. 32.efgh. 53.ijk. thank you in advance. Joshua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression

2003-12-27 Thread Joshua
more regular expressions to solve this, but they don work yet. So, please help me~~ Thank you in advance. Joshua - Original Message - From: "Kelly Hallman" <[EMAIL PROTECTED]> To: "Joshua" <[EMAIL PROTECTED]> Cc: "PHP General list" <[EMAIL PROTE

[PHP] stay logged in for session

2007-05-18 Thread Joshua
hey guys, i am trying to set up a session so that when a user logs in, they will stay logged in until they close their browser. i have the session set up, however i keep getting an error saying: The page isn't redirecting properly Firefox has detected that the server is redirecting the r

[PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
ble to store the customer information for retrieval later by the owners of the site. Joshua Minnie [EMAIL PROTECTED] Independent Web Consultant / Developer Wild Web Technology www.wildwebtech.com -- Server Information: + PHP v. 4.2.3 + Apach

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
read: > http://www.php.net/manual/en/function.mysql-connect.php > > It appears that the SSL client flag for connecting to MYSQL is not available > until 4.3.0, but you can pick up the 4.3.0RC3 version now, and test it out! I > _think_ this is what you are looking for. > HTH > -Brad >

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
'stunnel'. I remember hearing some about it, but have not real experience with > it. do a search on some MYSQL mailing lists for some insight. Or ask on the > PHP-DB mailing list and you may be able to target a better qualified audience. > > -Brad > > Joshua Minnie w

Re: [PHP] i want to send 2 variables????

2003-01-09 Thread Joshua Pierre
On Thu, Jan 09, 2003 at 09:14:21AM -0500, Ysrael Guzm?n wrote: > > i like send two variables using: > > href="mi page.php? http://blah.com/page.php?var1=contents&var2=contents That should do it for you. Cheers, Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] mail client?

2003-01-14 Thread Joshua Pierre
> Does anyone know any reliable php/mysql mail-clients with support for pop3? IMP perhaps ? Have a look over at http://www.horde.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing page orientaion for printing

2003-01-17 Thread Joshua Pierre
On Fri, Jan 17, 2003 at 05:07:30PM +1100, Stanislav Skrypnik wrote: > Hi everybody, > Is it possible using PHP change page orientation in browser so that when > user clicks > on "Print" button page automatically rotated to "landscape" orientation. > I've heard that it is possible to do with ActiveX

[PHP] problems with cookies and PHP

2003-02-13 Thread Joshua Chapman
This is driving me nuts... it won't set or reset the cookie no errors no nothing... I've learned quite a bit about cookies and PHP thus far but something important must still be eluding me. I've read the manual entry on it, is there any other tutorial out there that's better? what am I doing wron

[PHP] process HTML as PHP?

2003-02-24 Thread Joshua Chapman
This may be a really elementary question but is it a good idea to add the extension .html to be processed as php? If so then it would save me quite a bit of relinking with flash... Thanks!

[PHP] non-blocking sockets + newbie compile question

2003-03-11 Thread Joshua Alexander
1) socket_set_blocking()... what the devil's up with this? *I* get socket_set_blocking(): supplied resource is not a valid stream resource, which is obviously a lie, since I can connect to the server program and socket_recv and socket_send both work. I'm using PHP 4.3.1 (cgi) 2) I figured I'd

[PHP] Intermittent CGI Errors

2003-03-13 Thread Joshua Groboski
My app works very well until you start to hit it hard. Then I get CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: The output of my script is a header() redirect so it must be returning a header right? Joshua

Re: [PHP] Intermittent CGI Errors

2003-03-14 Thread Joshua Groboski
very well until you start to hit it hard. Then I get > JG> CGI Error > JG> The specified CGI application misbehaved by not returning a complete set of > JG> HTTP headers. The headers it did return are: > > JG> The output of my script is a header() redirect so it must be r

[PHP] PHP hosting with remote MySQL access allowed

2003-07-10 Thread Joshua Minnie
I am in the process of developing a client side application that needs to speak to our remote databases. Does anybody know of a hosting solution that would allow me to have remote access to a MySQL database? I done some googling and found a quite a few hosting companies, but none of them that I h

[PHP] Zend Studio - HTTP_POST_FILES

2003-07-22 Thread Joshua Groboski
re out how to simulate this. Any help is greatly appreciated. Joshua Groboski SAVVIS Communications Inc. http://www.savvis.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get previous folder

2003-07-22 Thread Groboski, Joshua
You could also explode() on "/" and have all your directories in an array. Joshua Groboski SAVVIS Communications http://www.savvis.net "David Nicholson" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... Hello, This is a reply to an e-mail that

[PHP] Re: mail()

2003-07-22 Thread Joshua Groboski
Why don't you send it to [EMAIL PROTECTED] I think as long as the $to address doesn't fail, you'll be alright. Josh "Javier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I need to send a reminder to all the users in my website. > To minimize bandwidth I would like to send ju

[PHP] Re: references

2003-07-22 Thread Joshua Groboski
It is perfectly legal to pass the variable by reference from one function to another. You'll see that $tmp is 2 at the end of this script. Ofcourse, if you leave off the reference operators you'll end up with 0. "Carl Furst" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok let

[PHP] Re: changing the name of a variable by another variable.

2003-07-23 Thread Joshua Groboski
Why don't you use an array? $variable[$i++]; -- Joshua Groboski Programmer Analyst SAVVIS Communications Inc. http://www.savvis.net "Tony Crockford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I really am having a difficult day. > > I want to do a

[PHP] Class extension problem

2003-08-06 Thread Joshua Groboski
" : " . $ws->prop1 . "\n"; ?> If you run this, you'll notice the constructor for CMS is never called. Is this a by-design functionality, am I wrong about what I think should happen, or am I just totally off my rocker? -- Joshua Groboski Programmer Analyst SAVVIS C

Re: [PHP] Help with Mod mathematical function

2003-08-14 Thread Groboski, Joshua
http://us4.php.net/math The operator you want is % Eg: 5%3 = 2 <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > > if you turn on --enable-bcmath, you can use de bcmod function > equivalen to Mod operator from visual basic > > > Un saludo, Danny > > > >

[PHP] Recursive Object Troubles

2003-08-25 Thread Joshua Groboski
pMenu->bAddMenu (&$m)) return true; } return false; } } //END Menu Class Should this work? Am I just doing something completely wrong? I know someone out there knows, please let me know if you have any ideas. I really appreciate any help I can get. Thanks in advance. -- Joshua Groboski Programmer Analyst SAVVIS Communications Inc. http://www.savvis.net

[PHP] Anyone connect to a FileMaker DB?

2003-03-20 Thread Joshua Groboski
I know, FileMaker is not a real database. I have taken over some legacy systems and while I am redesigning the system, I need to be able to connect to a FileMaker DB. If you've done it, or know how I can do it, please let me know. Joshua Groboski Programmer Analyst / Webmaster S

[PHP] dtd validation?

2003-06-07 Thread Joshua Ruppert
Is there anyway to do dtd validation of an xml file? I realize the expat implementation doesn't inherently support it. Is there anything that I could use from php to validate against the dtd? Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] PHP processing for .html files

2003-06-19 Thread Joshua Chapman
I was wondering if there was a way to stick PHP code into html docs and have it processed only in certain web folders. I'm running a Windows 2000 server... IIS with the CGI version of PHP 4.3. not very server savvy so I'm not really sure how to make it work.

[PHP] Cookies and Macs

2003-06-27 Thread Joshua Chapman
lt to track them. Do Macs just handle cookies differently than PCs? What can I do to get a cookie to stick on a Mac so I can pull the data from it later? Thanks in advance! - Joshua Chapman webmaster of faxonautolit.com

[PHP] Curl request works on command line but not in script

2002-08-27 Thread Joshua Alexander
Hi folks, I'm trying to send an XML request to a server to get its response back... I can get it to work on the command line (with passthru) but not with libcurl. I'm using libcurl 7.9.2 which may actually be different from the curl on the command line... the latter came with OS X, the former

[PHP] Looking for some help on web header coding.

2002-09-26 Thread Joshua Patterson
I have been working to try and have flash MX use PHP to access a database but have been having issues with retrieving the post values in php. http://127.43.1.1/learning/checkpassword.php?password=somepassword&username= MyUserName

Re: [PHP] Looking for some help on web header coding.

2002-09-26 Thread Joshua Patterson
ROTECTED]> To: "'PHP'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 26, 2002 11:31 AM Subject: Re: [PHP] Looking for some help on web header coding. > On 26 Sep 2002 at 10:35, Joshua Patterson wrote: > > > I have been working t

Re: [PHP] Looking for some help on web header coding.

2002-09-26 Thread Joshua Patterson
look at the tutorial for using php with flash to retrieve variables from > a database. it's pretty self explanatory and clear in how/what to do. > > -Original Message- > From: Joshua Patterson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 10:35 AM >

Re: [PHP] Displaying full array contents

2002-09-26 Thread Joshua Patterson
You could always use a for loop enbeded in a while loop to walk through a linked list. You could expand the list out as long as you have memory and this function would walk through it until it found the end. But the true questions is why would you want to when you can already dynamically

Re: [PHP] CC Processing Merchants

2002-10-09 Thread Joshua Alexander
We use an Authorize.net reseller, merchantexpress.com. While the sign up process can be a hassle, I'm pretty happy with Authorize.net. Since we use the ADC Direct method, we don't lose control at all. When the customer submits their credit card info, our PHP script uses Curl to securely reques

RE: [PHP] Re: PHP & XML

2002-10-16 Thread Joshua Alexander
>To me this is a lot of work and processing for limited benefits, a simple db >abstraction layer provides you with a divide between you db queries and the >presentation of your site, what benefits do you see in doing this? I have to agree with Simon. I am at a loss when it comes to seeing any be

RE: [PHP] Re: PHP & XML

2002-10-16 Thread Joshua Alexander
I still wouldn't use XML for this. I mean, all the articles are in the database, and I'm already using PHP to pull them out and format them into html, right? I can just as easily use PHP to put them into all those other formats. So again, why waste time with XML unless I need to feed these ar

[PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
I just installed the php 4.2.1 from entropy.ch and when running this script: I get this error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /Library/WebServer/Documents/west.php on line 3 Anyone know what *that* is about? -Josh

Re: [PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
Thanks, I didn't know about od 000< ? p h p \n \n $ t e s t 312 = 312 " 020j u s t a b o u t a n y t h 040i n g " ; \n \n e c h o " t h i 060s w a s j u s

Re: [PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
Opening the file in vi shows that BBEdit is, for some reason, using \xca where the spaces should be. Off to BareBones.com I go... >Well, 312 is not a space. Please use a text editor that knows what a >space is. The other lines look fine, but your $test<312>=<312> stuff >there is bogus. > >-Ras

Re: [PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Joshua Alexander
You don't need OS X server. OS X includes Apache and Perl.. you can get MySQL and PHP4 from http://www.entropy.ch -Josh At 6:06 PM +1000 6/21/02, Justin French wrote: >Do I need OSX SERVER to run everything I'd need for a development >environment, or will the base version of OSX have the capabi

Re: [PHP] Gradients in PHP & GD

2002-06-27 Thread Joshua Alexander
"It seems pretty straightforward to me." is more responsible than "It's pretty straightforward." Nice time to be changing your story ;) >Anyway, thank you for your input on this thread. THAT was really helpful. It didn't seem straightforward to the original writer, or else why the question...

Re: [PHP] Web Printing

2002-06-28 Thread Joshua Alexander
>Don't tempt them, people _do_ come up with the most oblique of reasons why >their question is related to php. According to the Discordian Law of Fives, their questions share with PHP (and everything else) a relation to 5. So you always have that. -Josh -- PHP General Mailing List (http://www

Re: [PHP] Re: Drop connection, keep running?

2002-06-28 Thread Joshua Alexander
This sounds like the right track to me... the script has to finish for the page to stop loading, yes? So exec("your_other_script &"); and be done with it, yes? >I have never heard of someone wanting to do this, but you might want >to look into methods of executing shell commands in the backgro

Re: [PHP] Gradients in PHP & GD

2002-06-30 Thread Joshua Alexander
>Well, I'm deeply moved by your concern - I don't think I was either >hostile or impatient however - I was just stating the obvious and >implying a question (why isn't it straightforward). That was my problem with your post--why imply the question, and leave it open to interpretation? Why not

Re: [PHP] Gradients in PHP & GD

2002-06-30 Thread Joshua Alexander
By this point, I am trying to speak generally. Not trying to pick on Bogdan specifically, since communication can always be improved. >Please tell me what would be a question which would leave all these >answer opportunities open while also being brief and obviously not >being hostile? Hmm...

Re: [PHP] Editing Word Documents

2002-07-08 Thread Joshua Alexander
It sounds like a job for WebDAV to me... -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shtml & php in the same file?

2002-07-09 Thread Joshua Alexander
I'm working on this site that is all shtml files... in order to add some dynamic content, it just includes php scripts in different places. However, sessions don't work unless you start it before outputting anything to the server and that's what's needed now... I don't want to change all the l

Re: [PHP] shtml & php in the same file?

2002-07-09 Thread Joshua Alexander
There are people who don't use Apache??? ;) >ending in .php and add the same thing for .shtml. Then, both will be >parsed by PHP first. But then will it be parsed by SSI second, as we would like? Doesn't seem to... -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] cache control with javascript

2003-10-20 Thread Joshua Minnie
protocols. I am continuing to look, but have not found a definite answer as to whether or not what I am trying to do is possible. -- Joshua Minnie Lead Web Application Developer Advantage Computer Services, LLC www.advantagecomputerservices.com [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] cache control with javascript

2003-10-21 Thread Joshua Minnie
The "it" that you were asking about was the server. The javascript file is actually a PHP file that produces the JavaScript that I need. I only have one access to a database and a while loop to generate the code. Here is the code pieces: [code] // already connected to the db $sql = "SELECT * FR

RE: [PHP] cache control with javascript

2003-10-21 Thread Joshua Minnie
ECTED] Sent: Tuesday, October 21, 2003 11:56 AM To: Joshua Minnie Cc: [EMAIL PROTECTED] Subject: Re: [PHP] cache control with javascript On 2003.10.21, at 22:28 Asia/Tokyo, Joshua Minnie wrote: > The "it" that you were asking about was the server. The javascript > file is >

[PHP] file download using header

2004-01-23 Thread Joshua Minnie
I am having some trouble making it possible to download a file using the header function. The problems are: (1) I get the dialog box to download the file, but for some reason the type of file isn't getting passed to the box, and (2) when I download a 4MB file it only seems to be getting 16.6KB. I

[PHP] Re: file download using header

2004-01-23 Thread Joshua Minnie
Okay, I found a solution to part one of my questions by changing my headers, but for some reason I am still getting a fractional download of the file. Most commonly it's about 16.6KB of a 4MB file. The kicker is it says that it completed successfully. Here is the modified code: > I am having som

[PHP] Re: file download using header (SOLVED)

2004-01-23 Thread Joshua Minnie
I found the solution, I ended up instead of using readfile, use fopen and fpassthru. Here is the code that solved the problem > Okay, I found a solution to part one of my questions by changing my headers, > but for some reason I am still getting a fractional download of the file. > Most commonly

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Joshua Hoover
just like an application object. I haven't found a time where I need/want to manipulate the variables "on the fly" within code. Most of the variables being set are simply configuration settings for the application, not variables needing to change and be shared across the applicatio

[PHP] Passing to an Applet

2002-05-16 Thread Joshua Baker
All right I've seen in done in jsp and asp, but I'd like to know if I can do it in PHP as well. I've got an applet, which is in the page replay.php, with these parameters that I need to fill from a URL. I need to pass 2 parameter in the URL from a

[PHP] 4.1.2 binary for Windows?

2002-03-04 Thread Joshua Hoover
nload 4.1.2 for Windows or give an update on when the update may be made available in binary form? Thank you, Joshua Hoover -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with MSSQL

2002-03-08 Thread Joshua Hoover
u that it can't find the appropriate dll files used to connect to SQL Server. To remedy this you can add the following to your Windows PATH variable: C:\PHP\dlls; This, again, is assuming you have PHP installed on C:\ Hope that gets you pointed in the right direction. Joshua Hoover --

Re: [PHP] Re: Version Contol for PHP site

2001-11-19 Thread Joshua Hoover
mimic the production environment well enough. Hope that helps... Joshua Hoover > Hi Jeff > > There is a Windows version of WinCVS (see http://wincvs.org/ ). > > John > > Jeff Bearer <[EMAIL PROTECTED]> wrote in message > 1006195598.1407.7.camel@jbearer">

Re: [PHP] Re: A tricky one?

2001-11-20 Thread Joshua Hoover
& (isset($var)) { $message .= "$val $var were ordered \n"; } } This will make sure that the string length of $val (the value of the form element) is greater than 0; if not, it won't add it to the message. Joshua Hoover > It works after modifying it a litt

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Joshua Hoover
f ($error) { echo $error; } That's one way to do it. Joshua Hoover > I am a perl user trying to convert to php > > how would i turn this perl into php? > > use CGI; > > $name = param(name); > $address = param(address); > $phone = param(phone); > > @r

Re: [PHP] Re: Re: How do I convert from perl to php?

2001-11-20 Thread Joshua Hoover
ic fields according to the way his Perl code reads. Joshua Hoover > Now this looks like what I would want... > > brandon > > - Original Message - > From: "Philip Hallstrom" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTE

Re: [PHP] Problems.Sessions id on urls

2001-11-20 Thread Joshua Hoover
r you. For more info on sessions and the trans-sid stuff, check out: http://www.php.net/manual/en/ref.session.php Hope that helps. Joshua Hoover > Some browser (konqueror) show the session id in the url. Does anoyone > know > how to aviod that. Netscape does not show the session id.

[PHP] Validating mailing addresses

2001-11-29 Thread Joshua Hoover
ective here is to be able to validate mailing addresses and clean them up (if necessary) in order to be able to ship out packages optimally with as few errors as possible. Thanks in advance! Joshua Hoover -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] Logo proposal

2001-12-11 Thread Joshua Hoover
How about a Beaver? They're small, fast, and efficient. Joshua Hoover > How about a porpoise. They're fast, intelligent, and as Lewis Carol said, > "you shouldn't go anywhere without a porpoise." -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] include, require, require_once

2001-07-20 Thread Joshua Pierre
Hi, On Sat, Jul 21, 2001 at 12:18:38AM -0300, Thiago Locatelli da Silva wrote: > what is the diference beetwen this functions? I believe the include/require_once() functions check to see if that particular include was previously included in the script and if it was it ignores it, at least that

[PHP] PHP and OLE objects

2001-09-03 Thread Joshua Ecklund
Thanks in advance, Joshua Ecklund - mProwler -- 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] Problem querying postgres

2004-08-13 Thread Joshua Capy
in /Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData.php on line 70 If I change the field to all lower case in the database this does not happen. Also I can isue this select within PHPADMIN and it does work! Can anyone tell me where the setting(s)are that are controling how php is sending

[PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Hi, I am a newby having a configuration problem. I am using PHP 4.3.6 and postgres 7.4.3 The problem is when I try to execute my php scripts that connect to postgres from the command line I get error like this: Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jespe

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Thanks On Aug 23, 2004, at 12:04 PM, Jay Blanchard wrote: [snip] Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData .php on line 28 [/snip] http://www.php.net/manual/en/features.commandline.php -- PHP General Mailing List (http://www.php.net

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Yes I have found that I am running v 4.3.2 on the command line and 4.3.6 under apache Is it possible to run the same version both on the command line and running on apache? On Aug 23, 2004, at 12:23 PM, Michal Migurski wrote: I am a newby having a configuration problem. I am using PHP 4.3.6 an

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Joshua Capy
Ok next stupid question At the command line how to I force the execution of the 4.3.6 apache version or change the default to it. On Aug 23, 2004, at 2:39 PM, Jay Blanchard wrote: [snip] Yes I have found that I am running v 4.3.2 on the command line and 4.3.6 under apache Is it possible to run th

Re: Re[2]: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Joshua Kehn
Tedd- Java has classes listed with an Uppercase. It could be JS you're thinking of but I'm not sure. Functions (except constructors) and variables have the lowerUpperCamelCase notation. Regards, -Josh On Jul 27, 2010, at 12:55 PM, tedd wrote: > At 1:38 PM +0300 7/27/10, Andre Polykanine wrot

Re: [PHP] the state of the PHP community

2010-07-29 Thread Joshua Kehn
On Jul 29, 2010, at 3:32 AM, Nathan Rixham wrote: > Hi Josh, > > Thanks for taking the time - comments in-line from here :) > > Josh Kehn wrote: >> Java, JS (in the form of Node and MongoDB, +raw client / jQuery stuff) and >> PHP get used regularly. Python / Ruby infrequently. > > With true co

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-29 Thread Joshua Kehn
On Jul 29, 2010, at 12:50 PM, Don Wieland wrote: > I am trying to create an UPLOAD form and need to figure a way to only allow > PDF files to be selected. Something like: > > > > >accept="application/pdf" /> > Choose a file to upload: type="file" /> >

Re: [PHP] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 2:36 PM, Paul Halliday wrote: > I have a query that may not always return a result for a value, I need > to reflect this with a "0". I am trying to overcome this by doing this > (the keys are ID's): > > while ($row = mysql_fetch_row($statusQuery)) { > >$cat = > arra

Re: [PHP] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 3:03 PM, Paul Halliday wrote: >> >> Paul- >> >> Why are those values not defaulted to 0 in the database? >> >> Regards, >> >> -Josh >> >> > > They are defaulted, the query is grouping: > > select count(status) as count, status from table group by status

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 9:41 AM, Marc Guay wrote: > Hi folks, > > I'm looking for a straightforward way to protect PHP files which are > called via AJAX from being called from outside my application. > Currently, someone could forseeably open the console and watch the > javascript post variables to a

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
/earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > There is something wrong with having a little fun? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 11:12 AM, tedd wrote: > At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: >> On Aug 6, 2010, at 7:27 AM, tedd wrote: >> >> >> There is something wrong with having a little fun? >> >> Regards, >> >> -Josh > > Ye

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Joshua Kehn
scribe, visit: http://www.php.net/unsub.php > Would one option be to have a table of unencrypted SSN's with an encrypted id for the user. So you could search the SSN's and then connect them, however if the table was dumped you wouldn't be able to link it directly to the person (as it would just have a SSN and an id). Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Joshua Kehn
On Aug 12, 2010, at 11:55 AM, tedd wrote: > At 11:39 AM -0400 8/12/10, Joshua Kehn wrote: >> Would one option be to have a table of unencrypted SSN's with an encrypted >> id for the user. So you could search the SSN's and then connect them, >> however if the t

Re: [PHP] a quick question about array keys

2010-08-31 Thread Joshua Kehn
Quickest way I can think of would be to do something like $tmp = array(); foreach($old_array as $key => $value) { $tmp[$value] = $key; } But knowing PHP there is probably some array_reverse_keys() function. Regards, -Josh ____ Joshua Kehn | jos

Re: [PHP] a quick question about array keys

2010-08-31 Thread Joshua Kehn
On Aug 31, 2010, at 11:46 AM, Ashley Sheridan wrote: > On Tue, 2010-08-31 at 11:46 -0400, Joshua Kehn wrote: >> >> Quickest way I can think of would be to do something like >> >> $tmp = array(); >> >> foreach($old_array as $key => $value) >>

[PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
// Use $key1, $key2, and $value here } } My question is how does this translate into the C code I will have to write? If anyone has a decent extension building tutorial that would be great too. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
rds, -Josh ____ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 5, 2010, at 12:32 AM, Jim Lucas wrote: > Joshua Kehn wrote: >> I'm working on creating a compiled extension for some code I've written. >> Mostly it's manipulating a very large multi-deme

Re: [PHP] Zend framework

2010-09-09 Thread Joshua Kehn
Chris- While I find Zend to be more of a wonderful set of libraries then a framework, it does do both and is a good introduction. I do most of my framework coding on CodeIgniter though. Regards, -JOsh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:27 PM, Adam Williams wrote: >

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Ash- Correct, hence my typo and nomenclature slip. ;) Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:48 PM, a...@ashleysheridan.co.uk wrote: > Node.js, wouldn't that be javascript rather than j

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
ith Node, it is version 0.2 after all. It won't replace PHP or Java as an enterprise level solution, but it does fill in the gaps very nicely. Regards, -Josh ____ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:53 PM, A

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Joshua Kehn
A way to bypass this would be to add some sort of session expiration header to the file and update that. And couldn't you make a simple check if the boss is logged in or not by the ability to access the database? Regards, -Josh ____ Joshua Kehn | josh

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Joshua Kehn
Tedd- What do you mean "without ever being connected to the internet?" That statement throws me a bit because if it isn't connected to the public net the only alternative would be to run hard lines between hosts. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
complete it's half so to speak? Regards, -Josh ____ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 1:20 PM, tedd wrote: > Hi gang: > > Several years ago I was involved in a court case where a programmers work was >

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
In the case payment does come down to lines of code written I'm already covered. if( count > 5) { /* Bracing Style } Regards, -Josh ____ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 1:50 PM, a...@ashleysheridan.co.

  1   2   3   4   >