Re: [PHP] Friday's Question

2013-09-20 Thread Curtis Maurand
On 9/20/2013 1:24 PM, Joshua Kehn wrote: On Sep 20, 2013, at 1:23 PM, Larry Martell wrote: On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned to having all my workstations be laptops of one sort or another and th

Re: [PHP] Off the wall - sub-domain question

2013-08-22 Thread Curtis Maurand
Is the subdomain also in a subfolder of the main domain? Jim Giner wrote: > I have a main domain (of course) and a sub domain. I'm really trying to > steer my personal stuff away from the main one and have focused all of > my php development to the sub-domain. > > Lately I noticed that google

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sebastian Krebs wrote: > 2013/8/21 Curtis Maurand > >> >> >> >> Sorry in advance for the top post. >> >> Use the right tool for >> the Job. I've use Java, C# and PHP. >> >> 1. I hate the >> Perl-like object calls in PHP.

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sorry in advance for the top post. Use the right tool for the Job.  I've use Java, C# and PHP. 1.  I hate the Perl-like object calls in PHP.  I'd rather use "." notation in C# and Java.  It saves a lot of wear and tear on my left pinky finger. 2.  Java and C# are both typed languages.  Say wha

Re: [PHP] Mysqli Extension

2013-08-19 Thread Curtis Maurand
Matijn Woudt wrote: > On Mon, Aug 19, 2013 at 9:40 PM, Ashley Sheridan > wrote: > >> >> >> Matijn Woudt wrote: >> >On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan >> >wrote: >> > >> >> >> >> >> >&g

Re: [PHP] Mysqli Extension

2013-08-19 Thread Curtis Maurand
Ethan Rosenberg wrote: > Dear List - > > My mysqli extension seems to have gone away. > > $host = 'localhost'; > $user = 'root'; > $password = 'SdR3908'; > echo "hello2"; > var_dump(function_exists('mysqli_connect'));// this returns boo(false) > $db = 'Store'; > $cxn = mysqli_connect($host,$use

Re: [PHP] Last Record INSERT

2013-06-26 Thread Curtis Maurand
Look up using the mysqli libraries. This was about a 30 second php.net search. http://us3.php.net/manual/en/mysqli.insert-id.php Cheers, Curtis On 6/26/2013 1:33 PM, Tedd Sperling wrote: Hi gang: What's the most-current way to get the ID of the last recorded inserted in a database? Chee

[PHP] filesize question

2013-05-07 Thread Curtis Maurand
Hello, I'm feeding a filename to a php script on the command line (command line program). I run the following against it: $inputline = fread($inputfile, filesize($argv[1])); I'm getting an error complaining that the second parameter can't be '0' any ideas? thanks, Curtis -- PHP General

Re: [PHP] PHP context editor

2013-03-15 Thread Curtis Maurand
I've been playing with bluefish as of late. The openoffice folks have taken over that project. tamouse mailing lists wrote: >On Fri, Mar 15, 2013 at 4:03 PM, Ashley Sheridan > wrote: >> On Fri, 2013-03-15 at 12:05 +0100, Sebastian Krebs wrote: >> >>> 2013/3/15 Karim Geiger >>> >>> > Hi Geor

Re: [PHP] Re: Populate input from another form

2013-03-09 Thread Curtis Maurand
No, but javascript can. Jim Giner wrote: >On 3/8/2013 3:43 PM, John Taylor-Johnston wrote: >> Scratch that, IE does not like form elements outside the !!?? >:,( >> I can't a form within a form either, unless ... I float a div??. >> >> John Taylor-Johnston wrote: >>> I have a form >>> >>> >> ta

Re: [PHP] Stupid question

2013-02-27 Thread Curtis Maurand
On 2/27/2013 6:32 PM, tamouse mailing lists wrote: On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote: 2013/2/27 tamouse mailing lists Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr ?? Yes :) Because an operator "=&" doesn't exists, thus the lexer will split t

Re: [PHP] Stupid question

2013-02-26 Thread Curtis Maurand
On 2/26/2013 4:33 PM, Daniel Brown wrote: On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand wrote: I have the following: $dsn = "mysqli://$username:$password@$hostname2/$database"; $options = array( 'debug' => 3, 'result_buffering' => false,

[PHP] Stupid question

2013-02-26 Thread Curtis Maurand
I have the following: $dsn = "mysqli://$username:$password@$hostname2/$database"; $options = array( 'debug' => 3, 'result_buffering' => false, ); $dbh =& MDB2::factory($dsn, $options); if (PEAR::isError($mdb2)) { die($mdb2->getMessage()); }

Re: [PHP] Nested loopa

2012-12-27 Thread Curtis Maurand
A while loop is a blocking call. Be careful with them. --Curtis Tedd Sperling wrote: >On Dec 26, 2012, at 10:09 AM, Jim Giner >wrote: > >> While I fully understand the purpose of the do...while construct, I >just never get used to seeing it used. (in other langs I had to deal >with a 'repeat.

Re: [PHP] Re: preg_replace question

2012-12-12 Thread Curtis Maurand
On 12/12/2012 3:47 PM, Maciek Sokolewicz wrote: On 12-12-2012 21:10, Curtis Maurand wrote: On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use

[PHP] Re: preg_replace question

2012-12-12 Thread Curtis Maurand
On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes, semi-colons and a

[PHP] preg_replace question

2012-12-12 Thread Curtis Maurand
I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes, semi-colons and a lot of other special characters. Will preg_relace(escapeshellarg($String),$replacement) w

Re: [PHP] Re: How to limit source IP in PHP

2012-09-14 Thread Curtis Maurand
On 9/14/2012 7:20 AM, Ian wrote: On 12/09/2012 14:53, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose whi

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-19 Thread Curtis Maurand
Joomla. Michael Shadle wrote: > I suggest Wordpress only for blogs or "brochureware" or basic page based > sites. It has security flaws often and I've had many sites hacked and > servers compromised because of it. > > Out of the box it is very easy to use and polished and has a lot of themes >

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Curtis Maurand
Lester Caine wrote: > viper wrote: >> is it possible to write and read data on a COM or LPT port? >> is there any function or class in PHP? >> >> anyone has already done something similar? > > Talking in and out of the serial port is not too difficult but is OS > dependent, > so what are you wan

Re: [PHP] How to write and read serial or parallel port

2012-07-26 Thread Curtis Maurand
You read and write to it like any other file.  Calls on windows will be slightly different. $PRINTERPORT = fopen("/dev/lpt1", "r+"); $PRINTERPORT = fopen("lpt1", "r+"); Cheers, Curtis viper wrote: > hi all! > > is it possible to write and read data on a COM or LPT port? > is there any fu

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Curtis Maurand
That's not a helpful answer.  I'd be curious at a real answer for this, too.  I'm sure that there is something going on with session management on the client side as authentication has probably already happened, but the author doesn't know how to handle the response to the authentication correct

Re: [PHP] Searching IDE.

2012-06-13 Thread Curtis Maurand
Simon Dániel wrote: > Hi, > > Although it's not an IDE, it is full of very useful developer tools: Kate > > > 2012/6/13 David Arroyo > >> Hi Folks, >> >> I am searching an IDE for php and web development, my options are >> Aptana or Eclipse+PDT. >> What is your opinion? I've seen these arti

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Curtis Maurand
rene7705 wrote: > On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford wrote: > >> On 27/03/12 12:13, rene7705 wrote: >> >>> hey, I just read the rsync man page for the first time, and while it >>> sure >>> looks simple enough for my taste, wouldn't updating multiple remote >>> domains >>> be like a who

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Curtis Maurand
rsync is your friend. --C Stuart Dallas wrote: > On 26 Mar 2012, at 14:53, rene7705 wrote: > >> My last thread got derailed into a javascript and even photoshop >> discussion, and while I can't blame myself for that really, this time I >> would like to bring a pure PHP issue to your scrutiny.

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Curtis Maurand
"C:\/Program\ Files\\..." --C Negin Nickparsa wrote: > I can't move Gams because it has many dll files which should be in there. > gams.exe should be execute in that path file in program Files > one time I tried to do it and when It shows me missing files I copy pasted > many files but It need

Re: [PHP] php.net problems?

2012-01-23 Thread Curtis Maurand
Xavier Del Castillo wrote: > On 01/23/2012 10:28 AM, Donovan Brooke wrote: >> Hi, is anyone else having problems with PHP.net today? >> >> Donovan >> >> > Working fine from here. Do a traceroute to the site, it might an ISP > related problem. > > It came right up for me. --Curtis

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 9:24 PM, Robert Williams wrote: On Jan 15, 2012, at 19:00, "Simon J Welsh"mailto:si...@welsh.co.nz>> wrote: On 16/01/2012, at 2:48 PM, Chris Payne wrote: "If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always rounded up to the next $100

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 8:48 PM, Chris Payne wrote: Hi Jason, I've tried lots of different things, including: echo "" . round(68500, 1000) . " ROUNDED"; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): "If the loan amount is $68500.00, the insurace will

Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Curtis Maurand
Tim Streater wrote: > On 13 Jan 2012 at 15:05, David Savage wrote: > >> I open the html file up from a windows explorer window (Q:\asterisk\), >> and so >> IE opens it up, but the problem lies in the fact that I cannot find >> apache >> service running in the background...haven't figured out wh

Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Curtis Maurand
Make sure IIS is not running. That'll cause all kinds of trouble. Tim Streater wrote: > On 13 Jan 2012 at 15:05, David Savage wrote: > >> I open the html file up from a windows explorer window (Q:\asterisk\), >> and so >> IE opens it up, but the problem lies in the fact that I cannot find >>

Re: [PHP] How to find where class is used?

2012-01-06 Thread Curtis Maurand
it will be somewhere in php's search path. you'd be better off trying search for a file of the same name. cd /usr/lib/php5 find . -iname "vB_ProfileBlock*" if you have locate installed, try: "locate vB_ProfileBlock" Cheers, Curtis On 1/6/2012 6:11 AM, Dotan Cohen wrote: In a large applica

Re: [PHP] Re: Question regarding passwords/security

2011-12-23 Thread Curtis Maurand
Store everything in the database in an encrypted form. Stuart Dallas wrote: > On 22 Dec 2011, at 19:34, Paul M Foster wrote: > >> I have concerns that the items in a session buffer can be copied and >> used to spoof legitimate logins. This is harder to do when the info is >> held in a database

Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Curtis Maurand
It seems to me that the file structure should be in the source code somewhere and you can download that. --C On 11/27/2011 7:28 PM, David McGlone wrote: On Mon, 2011-11-28 at 01:15 +0100, Camilo Sperberg wrote: You can export the bookmarks as a json or html and then read it easily with php

Re: [PHP] Howto detect the hostname of the server?

2011-11-25 Thread Curtis Maurand
On 11/25/2011 7:35 PM, Simon J Welsh wrote: On 26/11/2011, at 1:14 PM, Andreas wrote: Hi, how could I identify the server the script runs on? I've got a testserver on Windows and a remote system on Linux that need a couple of different settings like IP and port of db-server or folder to store

Re: [PHP] Sniping on the List

2011-11-22 Thread Curtis Maurand
On 11/22/2011 7:15 AM, Judson Vaughn wrote: Isn't Eastern time zone minus 5 not plus 5 hours of GMT? Jud It depends upon your point of view. ;-) It's generally understood that EST5EDT is GMT (UTC) -5 because eastern time is 5 hours behind. +5 puts you in India somewhere. Cheers, Curtis -

Re: [PHP] Sniping on the List

2011-11-18 Thread Curtis Maurand
Robert Cummings wrote: Robert Cummings wrote: > > Given the discussion, I think the following is in order: BAZINGA * 2 And what does any of this have to do with PHP?  It's time to end this thread. --Curtis

Re: [PHP] Executable flag on text files

2011-11-08 Thread Curtis Maurand
On 11/8/2011 6:53 AM, Ashley Sheridan wrote: Sorry for this slightly off-topic post and it not being connected to the thread that it originally came from, but I remember Tedd was asking about this. I'd thought that the executable flag on files didn't do anything for things like PHP files, etc

Re: [PHP] Image Rotation Script

2011-10-16 Thread Curtis Maurand
There are tons of (free) jquery gadgets that do image rotation. All you'd need to do is push the list out to the jquery script. Cheers, Curtis On 10/15/2011 10:50 AM, d...@nkmo.com wrote: We have a simple script which rotates and image to a random value, saves it to a cache directory and di

Re: RES: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand
#AddType text/html .shtml > > #AddOutputFilter INCLUDES .shtml > > > > > > # > > # The mod_mime_magic module allows the server to use various hints from > the > > # contents of the file itself to determine its type. The MIMEMagicFile > > #

Re: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand
try http://localhost/test.php Mateus Almeida wrote: > Yes, I've put the "test.php" in the htdocs. > The server works with an html file, but it doesn’t work with the php. > > -Mensagem original- > De: Bastien [mailto:phps...@gmail.com] > Enviada em: terça-feira, 20 de setembro de 2011

Re: [PHP] Best editor?

2011-08-03 Thread Curtis Maurand
Mike Hansen wrote: >> > I mostly use VIM. However, I did play with PHP Storm, and it's pretty > nice. It also has a plug-in that emulate vi/vim. > > I've used Komodo in the past. It's also good. > I've used and like Quanta Plus (KDE on Linux). I've used Bluefish on Windows and Linux, Notepad++

Re: [PHP] Best editor?

2011-08-03 Thread Curtis Maurand
Leonardo wrote: > Dne středa 03 srpna 2011 15:22:44 Matty Sarro napsal(a): >> Hey everyone, >> I am a super newbie just beginning to learn PHP. Awhile ago, I had >> used aptana for dabbling with php and was amazed to find out that it >> had a built in php interpreter so I could do some minor tes

RE: [PHP] Constants in strings

2011-07-06 Thread Curtis Maurand
Yeah, that was my answer and I was rebuked for that. ad...@buskirkgraphics.com wrote: >> -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 >> >> O

Re: [PHP] Constants in strings

2011-07-06 Thread Curtis Maurand
On 7/6/2011 7:07 AM, Dave Wilson wrote: Output - {XYZ} Attempt 2: Output - {{XYZ}} No luck there. I did encounter one oddity though: Output: PHP Notice: Undefined variable: ABC in /home/wilsond/testScripts/l7.php on line 3 Which appears to mean that PHP is able to pick up the value of the

Re: [PHP] Re: Top Posting

2011-07-05 Thread Curtis Maurand
Jim Giner wrote: > outlook doesn't offer an option for that. ctrl-END gets you to the bottom of a message.

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

2011-06-16 Thread Curtis Maurand
There's an interesting discussion on this page. http://www.linuxquestions.org/questions/linux-software-2/pdf-to-png-converter-57142/ Cheers, Curtis Sean Kenny wrote: > Outside the box a bit, but is there perhaps a web-service that does > this, something like http://www.thumbalizr.com/ but for

Re: [PHP] Detecting HTTPS connections under Apache

2011-05-27 Thread Curtis Maurand
$_SERVER['HTTPS'] --Curtis On 5/26/2011 3:37 PM, Geoff Shang wrote: Hi, Apologies if this is covered somewhere but I've searched fairly extensively and not found anything. I'm working on an application which has a function for redirecting to a given URL. This is generally used for red

Re: [PHP] mysql problems [SOLVED]

2011-05-14 Thread Curtis Maurand
Sean Greenslade wrote: >> > > [MASSIVE SNIP] > > Well, from what I saw while wading through your code, you allow > unsanitized > variables to be concatenated to your queries. Big no-no! For ANY > client-generated variable, always sanitize with mysql_real_escape_string. > In > fact, sanitize al

Re: Re: [PHP] mysql problems

2011-05-12 Thread Curtis Maurand
Tim Streater wrote: > On 11 May 2011 at 19:25, Curtis Maurand wrote: > >> $_cartTotal="$0.00"; > > Surely that should be: > > $_cartTotal = "0.00"; Good pickup.  I missed that.  I didn't write the code, I'm just trying to figure out what's going on. Thanks,  I'll look at that.  --C

Re: [PHP] mysql problems

2011-05-11 Thread Curtis Maurand
Marc Guay wrote: >> Does anyone have any ideas? > > Sounds like it's getting caught in a loop. Post the whole script for > best results. > It looks like the site is under attack, because I keep seeing the query, "SELECT catagory_parent FROM t_catagories where catagory_ID=" . $_currentCat" wh

Re: [PHP] mysql problems

2011-05-11 Thread Curtis Maurand
Marc Guay wrote: >> Does anyone have any ideas? > > Sounds like it's getting caught in a loop. Post the whole script for > best results. > It looks like the site is under attack, because I keep seeing the query, "SELECT catagory_parent FROM t_catagories where catagory_ID=" . $_currentCat" wh

[PHP] mysql problems

2011-05-11 Thread Curtis Maurand
I'm running PHP 5.3.6, Mysql 5.1.51 and Apache 2.2.17 I have code that does a simple mysql_query();  the query on the commandline returns an empty set.  when run via PHP and the web server, the page hangs, it never gets to the if (mysql_num_rows($result) > 0) {}. and the queries per second on my

Re: [PHP] mysql error

2011-05-06 Thread Curtis Maurand
engine= --C Grega Leskov¹ek wrote: > Can smbd please look at this sentence - I got an error and do not > know how to fix it - I am still very unfamiliar with MYSQL: > > CREATE TABLE log ( idlog int auto_increment not null, imepriimek > varchar(50), clock timestamp, action varchar(30), o

[PHP] stupid array question

2011-04-11 Thread Curtis Maurand
I have the following code which should increment the value of the array $iplist if there is a value there.  When I walk the array at the end, all the values = 1.  What am i doing wrong? --Curtis while (!feof($INPUTFILE))  {    $chunks = fgetcsv($INPUTFILE, " ", '"');    $firstpart = explode(" "

Re: [PHP] Silly question

2011-04-11 Thread Curtis Maurand
Stuart Dallas wrote: > On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: > nevermind. There is a function: fgetcsv(); > > Ewww! Say what you want, it works.  Your solution is way more elegant.  regex's are not my strong suit.  I have to have the regex pocket reference t

Re: [PHP] Silly question

2011-04-10 Thread Curtis Maurand
nevermind.  There is a function: fgetcsv(); Thanks, Curtis Curtis Maurand wrote: > > > Hello, > I'm trying to run through an apache log file in an attempt to > get all of the user agents. > > The question is how do I split the > string?  I can't seem t

[PHP] Silly question

2011-04-10 Thread Curtis Maurand
Hello, I'm trying to run through an apache log file in an attempt to get all of the user agents. The question is how do I split the string?  I can't seem to find a workable delimiter.  Each section of the file is enclosed in quotes and that should be helpful, but it doesn't seem to be.  I can't

Re: [PHP] pick a card, any card...

2011-04-09 Thread Curtis Maurand
Curtis Maurand wrote: > > > > seems to me that you have an array with integers as the keys. > > $desired_key = rand(0, count($array)); sorry, I hadn't had coffee, yet.  The line above should be: $desired_key = rand(0, count($array) - 1); > > $desired

Re: [PHP] pick a card, any card...

2011-04-09 Thread Curtis Maurand
seems to me that you have an array with integers as the keys. $desired_key = rand(0, count($array)); $desired_value = $array[$desired_key]; Cheers, Curtis Simon J Welsh wrote: > On 9/04/2011, at 3:39 PM, Scotty Logan wrote: > >> On Apr 8, 2011, at 8:20 PM, Kirk Bailey wrote: >>> in otherwo

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Curtis Maurand
? > > b. > > > On 29 March 2011 01:14, Curtis Maurand wrote: > >> >> >> Nathan Nobbe wrote: >> > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca >> wrote: >> > >> >> If you need high performance you probably already know

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Curtis Maurand
Nathan Nobbe wrote: > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote: > >> If you need high performance you probably already know that it will be >> very >> expensive CPU wise if workers are spawned on each request. If you don't, >> I >> would not bother with daemon and just use xinetd

Re: [PHP] PHP hangs with empty result set

2011-03-23 Thread Curtis Maurand
> The only obvious thing that I can see is that you're checking if the > number of results is greater than a string, not a number. I believe PHP > automagically converts it into an integer for the comparison, but try > changing it to an actual integer and seeing if that resolves it. > > There i

[PHP] PHP hangs with empty result set

2011-03-23 Thread Curtis Maurand
I've been having a problem when querying a database with php and the mysql library  the offending code follows.  If the result is an empty set, PHP hangs.  I've had to add code to the script to set up a max execution time to kill the script after 30 seconds if it doesn't complete.  This is happen

Re: [PHP] Question about directory permissions

2011-03-21 Thread Curtis Maurand
Al wrote: > I understand dir perms pretty well; but, have a question I can't readily > find > the answer to. > > Under a Linux system, scripts can't write, copy, etc. to other dirs unless > the > perms are set for writable for the script e.g., nobody. > > But, is there a way a script can write

Re: [PHP] designing a post fix

2011-03-18 Thread Curtis Maurand
You might also look at CRM applications such as Sugar CRM. --Curtis Negin Nickparsa wrote: > can u explain zimbra server 4 me? > > On Thu, Mar 17, 2011 at 9:44 PM, Curtis Maurand > wrote: >> >> Zimbra Server. >> >> Negin Nickparsa wrote: >>>

Re: [PHP] designing a post fix

2011-03-18 Thread Curtis Maurand
Its a free exchange server replacement.  It has shared folders, shared documents, email, calendars, shared calendars, notifications, etc. etc. etc. http://www.zimbra.com --Curtis Negin Nickparsa wrote: > can u explain zimbra server 4 me? > > On Thu, Mar 17, 2011 at 9:44 PM, Curti

Re: [PHP] designing a post fix

2011-03-18 Thread Curtis Maurand
Zimbra Server. Negin Nickparsa wrote: > :( maybe it's ticketing i don't know exactly!!!:"( > here are the things that i must do: > > receiving mails and return of mails > showing emails 2 staff > when a mail received it can be viewed in a moment(like ajax) > drafts and upload and download from

Re: [PHP] designing a post fix

2011-03-18 Thread Curtis Maurand
I would suggest Zimbra.  It just gets it done.  Run it on Ubuntu Server or CentOS. --Curtis Negin Nickparsa wrote: > I'm Negin > what is Squirrel Mail ? > On Thu, Mar 17, 2011 at 7:55 PM, NetEmp wrote: >> @Nergin: are you trying to create an application like Squirrel Mail >> using >> PHP? >>

Re: [PHP] designing a post fix

2011-03-18 Thread Curtis Maurand
In this case, I would take a look at dbmail (dbmail.org)  It uses a SQL backend for storing messages and users. If you're just sending mail locally, but use the tables, etc.  You'll need to build your own frontend, but you could use something like RoundCube or Squirrelmail to talk to it.  I stil

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Curtis Maurand
how about creating two arrays, one empty one. pop the elements you want out of the first array and push them to the second.  skip the push on the elements you don't want in the second array? Just a thought. --curtis Paul M Foster wrote: > On Mon, Mar 14, 2011 at 09:34:33PM +0100, Peter Lind w

Re: [PHP] multiple choice dropdown box puzzle

2009-02-23 Thread Curtis Maurand
You're looking for something like: This gets called 10 times from another function, but this is sort of what you're looking for. This gives me a combo-box. function qselect($mysql_link, $i) { $driverquery = "select car_no, drv_name from cars order by car_no + 0"; $driverresult =

Re: [PHP] array problems

2003-11-27 Thread Curtis Maurand
s2unix" (actually mac2dos) utility. Mosty i've written Perl, PHP Pascal and Basic. Pascal, Perl and Basic don't exhibit this behavior. I never worked with arrays in "C." Am I wrong? On Wednesday 26 November 2003 21:53, the council of elders heard Marek Kilimajer mumb

Re: [PHP] array problems

2003-11-27 Thread Curtis Maurand
Thank you, I'll try that. Curtis On Wednesday 26 November 2003 21:53, the council of elders heard Marek Kilimajer mumble incoherently: > Curtis Maurand wrote: > > Sorry, its a typo. it should be: > > > > $city = "Ipswitch"; > > $city_found = 0;

Re: [PHP] array problems

2003-11-26 Thread Curtis Maurand
utside the "while" loop does not. Its php-4.2.2 running on RedHat 8.0 (don't go there.) Its the stock redhat php package. I don't trust redhat libraries for building php from scratch. Of course, this might actually be the problem, too. :-) Curtis On Tue, 25 Nov

[PHP] array problems

2003-11-25 Thread Curtis Maurand
Hello, consider the following code (content.txt is tab delimited). $city = "Ipswitch"; $content = fopen("content.txt", "r"); $city_found = 0; while (!feof($content) && $city_found == 0) { $my_line = fgets($content, "r"); $content_array = explode("\t",$my_line); if ($content_array =

[PHP] Build problems

2001-04-26 Thread Curtis Maurand
Hello, I'm building 4.0.4pl1 on RedHat 6.2 with all updates applied. It configures OK and then when issue "make" i get: [root@fenris php-4.0.4pl1]# make Making all in Zend make[1]: Entering directory `/home/curtis/php-4.0.4pl1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_

Re: [PHP] Mcrypt

2001-04-26 Thread Curtis Maurand
Did I hear anyone say "SSL?" Curtis On Thu, 26 Apr 2001, Alex Piaz wrote: > Hi All! > > It's my first post:-) > > I am working on a php web application that has to interchange encrypted > data to a VB windows standalone exe. Does anybody know the best way to do it?? > > I am making some tests

[PHP] undefined symbol error

2001-04-13 Thread Curtis Maurand
hello, I'm trying to compile on RedHat 6.1 (latest changes applied). I can compile with mysql support and using the apxs and it compiles fine and it runs. This works for both 3.0.16 and 4.0.4pl1. As soon as I try to compile in --with-imap. it comiles fine, but when I run it I get an undefine

Re: [PHP] transactions

2001-02-11 Thread Curtis Maurand
look at the syntax for locking the tables. Curtis - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 11, 2001 7:14 PM Subject: [PHP] transactions > Hi, > > I was reading mysql's manual, about transactions and all... and I di

Re: Re: [PHP] comparisons

2001-02-11 Thread Curtis Maurand
> that will work, but I prefer > Can I also write that like the following? > > if (!strcmp($pick1,$pick2)) > { >perform some action; > } Thanks. That works for me. Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [PHP] comparisons

2001-02-11 Thread Curtis Maurand
: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Curtis Maurand" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, February 11, 2001 2:34 PM Subject: Re: [PHP] comparisons > In spite of yor best efforts here, PHP converts the string values to numbers (because th

[PHP] comparisons

2001-02-11 Thread Curtis Maurand
Hello, I'm having a rather strange problem. I'm trying to compare two values. "01" and "1". The variables names that they are submitted under are pick1 and pick2. i use the following code $mypick1 = strval($pick1); $mypick2 = strval($pick2); I then perform the following comparison: if