RE: [PHP] PHP accelerators

2004-09-16 Thread Dan Joseph
Hi, > http://www.php-accelerator.co.uk/ > > http://pecl.php.net/package-info.php?package=APC > > http://turck-mmcache.sourceforge.net/ Oh wow, I had no idea. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with PEAR on OS X

2004-09-17 Thread Dan Phiffer
mand using sudo, and also with the 'pear install' command. Thanks for any help, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] List Etiquette

2004-09-20 Thread Dan Joseph
Hi, > > Happy top posting, > > Have fun driving on the wrong side of the road. Hey that can be fun! Especially in crowded downtown areas. It's a real challenge! -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] password-protecting with PHP, help plz

2004-09-21 Thread Dan Joseph
authentication, there are two methods. htaccess at the OS level (linux/unix), using Windows IIS to set a password on a directory or fiels, or you can utilize Sessions. What exactly are you trying to accomplish? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] spaces in select

2004-10-11 Thread Dan Joseph
variable out that has > been posted. It only shows the first word IE: > United. > > Is there a way to ensure that I can get all the words that the value is > set to?IE: United States of America, when the form is posted? Make sure in your lines that you're putting the quotes

Re: [PHP] config.php

2004-10-11 Thread Dan Joseph
> Is there anyway of creating a config.php file on the fly using a form. There is... however, that's kind of a broad question. What sort of config file are you trying to build? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Dan Joseph
er protocol) it to you. Does it have a good debugger? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSI and PHP

2004-10-13 Thread Dan Joseph
urse virtual(), etc. do not work because PHP is set up as CGI. > > Anyone know of any good work around tricks? I've moved to using include(), I can't use SSIs either. Is this a viable option for you? Do you maybe have some code examples we could take a look at to help you further?

Re: [PHP] intenger

2004-10-14 Thread Dan Joseph
> Please, i need output a intenger, what function can i use for this?. > Print?, echo? $i = 12; echo $i; -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User Defined Forms

2004-10-14 Thread Dan Joseph
field. Then you'd want to make a table that would house the fields each form wants to include. A final table that would hold the name of the form, and the user who has rights to use it. This doesn't sound real difficult, but time consuming. Does that make sense? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] For how long session exist

2004-10-14 Thread Dan Joseph
ting. The inactivity John mentioned is set there. Otherwise, yes, as soon as the browser is closed. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replacing characters in a string

2004-10-14 Thread Dan Joseph
> This should be simple but having never have done it before and at > deadline...help please. > > Need to change: > > [EMAIL PROTECTED] > > to; > > user=domain str_replace() is what you want... $var = str_replace( "@", "=", $oldvar )

RE: [PHP] Replace or regex?

2004-09-30 Thread Dan Joseph
$line_out; fclose ($file); } Hope that helps.. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Dan Joseph
Hi, > > I'd be interested in hearing your honest feedback after you take it, > > whether privately or on this list. Hopefully ZCE becomes a respected > > acronym, unlike MCSE. :-) > > I passed. > > I thought the test was very challenging. The areas I found mo

RE: [PHP] Zend PHP Certification test

2004-09-30 Thread Dan Joseph
Hi, > You can win a free pass to take the exam by being the first to solve this > puzzle: > > http://shiflett.org/archive/55 Which part on this page is the puzzle? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Zend Optimizer not installed

2004-10-01 Thread Dan Joseph
Hi, > Does anyone know of a hosting company that will provide Zend Optimizer > v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK) www.1and1.co.uk -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Naming conventions

2004-10-01 Thread Dan Joseph
me. There is Hungarian notation that a lot of developers like to use. You could google that. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mixing classes

2004-10-18 Thread Dan Joseph
ne have any ideas or suggestions how to solve this issue? I've > looked for a solution for some time now, to no result. What about extending the classes? Have you thought about something along those lines? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] people/projects looking for developers...

2004-10-18 Thread Dan Joseph
ts that are intended > to be revenue generating businesses. www.itmoonlighter.com is one that I use to use. It has both companies looking to find developers for their projects, and developers looking for extra work. I'm sure there are other sites, but I can't think of 'em. -Da

Re: [PHP] Automatic Form processor

2004-10-19 Thread Dan Joseph
ormation and manipulate > it. > > IE: > > > > > > > > ... > > > > > You could use a foreach... foreach ( $_POST as $key => $value ) { if ( substr( $key, 0, 4 ) == "quest" ) echo "$value: $key\n"; } -Dan Jos

Re: [PHP] Automatic Form processor

2004-10-20 Thread Dan Joseph
> As Dan has already said, something like this is what you need: > > > foreach ( $_POST as $key => $value ) > > { > >if ( substr( $key, 0, 4 ) == "quest" ) > > echo "$value: $key\n"; > > } > > HOWEVER, this leaves your

[PHP] parsing a string

2004-10-20 Thread Dan McCullough
Hey everyone Having a bit of trouble with something. I have a string which has known patterns. $string"CampusBob (Williams)~\toms more crap)~\blah blah blah)~\"; What I am looking for is Location which is Campus Locat

[PHP] url

2004-10-20 Thread Dan McCullough
I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore. The top code is HTML THis code no longer seems to work and I am racki

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
Williams)~\toms more crap)~\blah blah blah)~\'; preg_match('#([^|]*)[|]+([^|]*)~[\]+([^\]*)~[\]+([^\]*)~[\]+#Ui', $string, $res); $campus = strpos($string, $res[1]); $bob = strpos($string, $res[2]); $crap = strpos($string, $res[3]); $blah = strpos($string, $res[4]); ?> Dan

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
\blah blah blah)~\'; > preg_match('#([^|]*)[|]+([^|]*)~[\]+([^\]*)~[\]+([^\]*)~[\]+#Ui', > $string, $res); > > $campus = strpos($string, $res[1]); > $bob = strpos($string, $res[2]); > $crap = strpos($string, $res[3]); > $blah = strpos($string, $res[

Re: [PHP] Thanks but problem Again! (MySQL & PHP database script PLEASE)

2004-10-22 Thread Dan McCullough
Its been awhile since I did any PHP but I would look at if you need to excape some of those double quote or encapsulate your sql in a single quote. Sugimoto <[EMAIL PROTECTED]> wrote:Thank you for two of you. Im amazed how quick the replys were. Very pleased. When I simply inserted the PHP sente

Re: [PHP] implode()

2008-11-18 Thread Dan Shirah
correct? So using the proprer format of implode(glue,variable) you should so something like: implode(',',$_POST['BannerSize']); Dan

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Dan Joseph
On Mon, Nov 24, 2008 at 3:05 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > On Nov 24, 2008, at 3:00 PM, Daniel P. Brown wrote: > > On Mon, Nov 24, 2008 at 2:49 PM, Wolf <[EMAIL PROTECTED]> wrote: >> >>> >>> Sure Dan, just pad your metrics wit

Re: [PHP] Voting methodology

2008-11-26 Thread Dan Joseph
can get them to log in do it, otherwise, log as much information as possible and set a cookie. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] MSSQL_CONNECT problem

2008-12-08 Thread Dan Shirah
> > Can't seem to connect with MSSQL_CONNECT. The function IS available. I'm > in a Windows environment, connecting to a SQL 2000 instance. My code: > > mssql_connect('INTRA_SQL,1433', 'uname', 'password'); > mssql_select_db('database'); > > I've tried leaving the port out, tried using server IP ad

Re: [PHP] MSSQL_CONNECT problem

2008-12-10 Thread Dan Shirah
> > Sorry for "top posting", that's how my email client sets up the reply... > > Anyway, I don't know what CLI is? I see the error on the web. As for > a DSN, I didn't think I need one connecting this way. That is why the > uname, password, database is supplied, no? This should be a "dsn-less"

Re: [PHP] MSSQL_CONNECT problem

2008-12-10 Thread Dan Shirah
> > Try something like this: > > > > $dbhost=SERVER\\INSTANCE_NAME,PORT; > $dbuser="USERNAME"; > $dbpass="PASSWORD"; > $db_connect=mssql_connect($dbhost,$dbuser,$dbpass) or die ('Server > connection failed'); > > > > $mssql_database = mssql_select_db("DATABASE", $db_connect) or die ('DB > s

Re: [PHP] MSSQL_CONNECT problem

2008-12-10 Thread Dan Shirah
> > Is INTRA_SQL your instance name or database name? If it is the instance > name, is that instance setup to use 1433 as the port? I know 1433 is > the > default port for MSSQL, but the majority of people change that. > > > Correct - intra_sql is the instance, yes, it's using default port 1433 >

[PHP] PHP OFX connection

2008-12-10 Thread Dan Harrington
successfully created a PHP-based system to connect to a bank's server and download OFX data and consume it. I'm looking to find a way to help reconcile our bank accounts with multiple sources of transactions that can come in and confuse things. Thanks Dan

Re: [PHP] Quick question regarding $_SESSION and header()

2008-12-11 Thread Dan Joseph
.php.net/unsub.php > > Yep, what "bug" are you running into? Remember you have session_start() on the next page for it to be there. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man

[PHP] FPDF Printing Ideas?

2008-12-16 Thread Dan Shirah
e have any experience or any better ideas to accomplish a selective multiple document print for documents that don't initially exist? Thanks, Dan

Re: [PHP] FPDF Printing Ideas?

2008-12-16 Thread Dan Shirah
On Tue, Dec 16, 2008 at 2:32 PM, wrote: > > Just generate a much larger PDF with all the pages they asked for and call > it done. > :-) I don't think I can do it that way unfortunately. They will be printing 100-300 records in bulk...the amount of time it would take to generate one giant PDF f

[PHP] Printing

2008-12-17 Thread Dan Shirah
Print functions in the manual ( http://us2.php.net/manual/en/ref.printer.php) but this does not seem to be the right thing to use to print documents that already exist. Thanks, Dan

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
> > Do you want to print this on your office printer or on the website users > printer? > > If you are looking for away to print it on their printer, why not just grab > all the files that need to be printed, make a PDF of it, and then use the > browsers print feature? > > > > -- > Jason Pruim >

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
> > Does it save them to a folder on the server? Or does it save them on the > client? > > If it is on the server then the server would have to send the docs to a > printer queue. > > If it is on the client PHP cannot really do anything about. PHP cannot > force the client to print but it could sen

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
> > You can't, the best you can do is send the PDF down and let the user >> choose to do with it what they will > > > > -- > > Bastien > So you think I should try and look into a way to have FPDF append each document to the already created document, and once all pages have been added to the PDF

Re: [PHP] Printing

2008-12-17 Thread Dan McCullough
I did something similar, but it was some work I did for a company and the application was an internal application that used PHP and a Java applet to send the file to a workers local printer since it cant be accomplished by PHP itself. On Wed, Dec 17, 2008 at 3:30 PM, Dan Shirah wrote

[PHP] SimpleXML - issue with getting data out of the object returned

2008-12-18 Thread Dan Joseph
DBType] => MSSQL [OSType] => Windows [Enabled] => True ) [Count] => 1 ) When I try and access $x->Package->PackageID I don't get 804, I get: SimpleXMLElement Object ( [0] => 804 ) Could someone tell

Re: [PHP] SimpleXML - issue with getting data out of the object returned

2008-12-18 Thread Dan Joseph
On Thu, Dec 18, 2008 at 10:01 PM, German Geek wrote: > $val = (string) $x->Package->PackageID; > or > $val = (int) $x->Package->PackageID; > > Ha... I would have never figured that out... Thank you to you both! That did the trick. -- -Dan Joseph www.canishostin

Re: [PHP] First record not diplaying

2008-12-22 Thread Dan Shirah
> > // Good to go > > if (0 == $totalRows_rsSearch) { > echo "Sorry no products were found"; > } else { > echo "Please click on a product for further information."; > while ($row_rsSearch = mysql_fetch_assoc($rsSearch)){ > echo " $row_rsSearch['product_image']."\"> > >". $row_rsSearc

Re: [PHP] First record not diplaying

2008-12-22 Thread Dan Shirah
> > Hi, I seem to have a bug in my code but can't see why. My first record >>> does >>> not display when I run a search. Can anyone spot what I have done wrong? >>> Thanks >>> >>> if (0 == $totalRows_rsSearch) { >>> echo "Sorry no products were found"; >>> } else { >>> echo "Please click on a pro

[PHP] Segmentation fault in php5-imap

2008-12-23 Thread Dan Osipov
this particular machine. I've recompiled PHP 5.2.8 from source, upgraded all packages, recompiled libc-client2002edebian, etc. I'm at loss at what I can do to debug this issue further. Can someone recommend what I should check? Dan -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Segmentation fault in php5-imap

2008-12-23 Thread Dan Osipov
ing, right? I found this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502996 But the patch didn't work. The library is required by php5-imap (which is a standalone package). Thanks! Dan Nathan Nobbe wrote: On Tue, Dec 23, 2008 at 12:34 PM, Dan Osipov wrote: Hello, I have a CLI

[PHP] Re: Segmentation fault in php5-imap

2008-12-23 Thread Dan Osipov
her mailbox, it segfaults. Otherwise it continues to run successfully. But why does it drop the connection? Thanks a lot for your help!! Dan Nathan Nobbe wrote: On Tue, Dec 23, 2008 at 1:42 PM, Dan Osipov wrote: Everything matches. The only thing that's different is that the server that&

[PHP] Re: Segmentation fault in php5-imap

2008-12-24 Thread Dan Osipov
ting some conditions and exceptions, in order to avoid the segfault, and at least finish the execution of a script even if the connection is dropped. I will let everyone know if I discover the source of the issue. Nathan Nobbe wrote: On Tue, Dec 23, 2008 at 5:30 PM, Dan Osipov wrote: Script take

Re: [PHP] Since I speak with some of you more than people I see in person....

2008-12-31 Thread Dan Shirah
7;t think > any song or sound I've ever heard in my entire life was as beautiful > as those few seconds. My heart literally feels so full that it could > burst at any moment. > Congrats, Dan! I'm right there with you! My wife is 7 months preggo right now! Wait until you get

[PHP] Re: [PHP-DB] data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
) to pass the band_id value via POST Then on your second page all you would have to do is get the value. Example: On the second page you would simply check the posted value of you "band" radio input: $band_id = $_POST['band']; Hope that helps. Dan

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Dan Shirah
> > > but, I'm more concern does client has to pay the changes/upgrade or it's > still "my obligation"? > > Of course you charge him. Christ if I was expected to maintain stuff > gratis that I wrote 7 years ago I'd be mullahed. > > -- > Richard Heyes I agree with Richard. I bought a car 7 years

[PHP] Re: [PHP-DB] Re: data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
> > Thanks for the aswers, but there is still some problems. > > I tested this code(below) and it works but when I add it to the rest of my > code it stops working. > > Here's the working code: > > page1: > > $bandname = "Someband"; > ?> > > > > > > and page2: > > Bandname is ! > > ___

[PHP] Re: [PHP-DB] Re: data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
On Wed, Jan 7, 2009 at 3:01 PM, Mika Jaaksi wrote: > Thanks! I got it working... > Excellent, happy to help.

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Dan Shirah
> "so would I be correct that the only advantage to > having a page with a php extension is that you can use a testing server?" There are FAR more benefits! 1) PHP is FREE! So you save money from the get go 2) PHP is open source! So it is constantly being updated and improved by users/devs. 3)

Re: [PHP] Been staring at the code for too long...

2009-01-09 Thread Dan Shirah
> >mysqli_stmt_prepare($stmt, "UPDATE database.table ( >FName, LName, email, phone, > url, record, >subscribed, date, > IPAddress, Business, >Ad

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Dan Shirah
> > Hi, > > I have one form where user fills data using radio buttons. Only one answer > goes from here to another page. > > FORM 1 > > > > 5 > > > 1 > > > 3 > > > > > --- > > FORM 2 > > There is another page has a form with 14 fields PLUS I need the data of the > p

Re: [PHP] Another beginner question

2009-01-13 Thread Dan Shirah
On Tue, Jan 13, 2009 at 10:17 AM, Gary wrote: > I have successfully set up the testing server, now I would like to test it > out on the remote server, but "put" does not seem to be working. I saved > the > php document, click put, nothing seems to happen. I am connected to the > remote server, b

[PHP] Suggestions?

2009-01-13 Thread Dan Shirah
the array at the end? Or should I not even use an array? Thanks, Dan

Re: [PHP] Suggestions?

2009-01-13 Thread Dan Shirah
On Tue, Jan 13, 2009 at 2:09 PM, Eric Butera wrote: > Are you asking how to do > > $holidays[] = date; > array_push($holidays, date); ? > > If you were generating dates to compare against today tho, you could > just return upon a match at that point and not even store them. No > point in creati

Re: [PHP] Suggestions?

2009-01-13 Thread Dan Shirah
On Tue, Jan 13, 2009 at 2:14 PM, wrote: > > Hard to say without knowing the data structures... > > You can't do a simple count of the holidays and add that, because you might > end up with yet another holiday in the result. > > Start at 12/23 and want to add 6 business days. > > You find 1 holida

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Dan Shirah
> Hi gang, > I was wondering if there is way to find out what is the time that every > day ends? I am planning to add this to the first page on an interface I am > developing. > > -- > Thodoris Doesn't every day end at 23:59:59? the next second would be 00:00:00...the beginning of a new day! :

Re: [PHP] Garbage Collection

2009-02-05 Thread Dan Shirah
ses with the "Y" flag. That would give you a current listing of active courses and who teaches them, and also retain the historical data if it need to be referenced later. If you don't care about historical data, you could just do a DELETE FROM my_table where course/tutor id = "x" But I would recreate an index on the table after deletion of records to keep the speed crisp. Dan

Re: [PHP] Preserving History

2009-02-05 Thread Dan Shirah
tor = Y course_table: course_id = 123 tutor_id = 7 title = Introduction to Moonshine active_course = Y A crude query to return all active tutors and their courses would be: SELECT tutor_table.first_name, tutor_table.last_name, course_table.title FROM tutor_table, course_table WHERE tutor_table.tutor_id = course_table.tutor_id AND tutor_table.active_tutor = 'Y' AND course_table.active_course = 'Y' That will return the course title and tutor name for all active events Hope that helps. Dan

[PHP] Using DLL with PHP

2009-02-06 Thread Dan Shirah
of how I would call and pass the variables to the DLL. I've looked into W32api, but not sure if that's even what I need. Any ideas? Thanks, Dan

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Dan Shirah
> > Check out the com [www.php.net/com] functionality > > Bastien > Alrighty, I'm trying to use the COM function, but not getting much of anywhere. This is what I have: DTM_CONVDMSToMultiTIFF("C:\TEST\04186177.dms", "C:\TEST\04186177.tiff"); } DMStoTIFF(); ?> But I am getting the error below: *

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Dan Shirah
> > I can't help much, but this might get you started. > > 1) Does the DLL you are trying to use actually supports COM. I know some > don't. > > 2) I'm pretty sure that the string you pass to new COM('...') should > be the name the class as registered with Windows, not the actual file > name. They

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Dan Shirah
> > I believe you do have to register it with regsvr32 for it to be visible. > > I think the GUID that Todd mentioned might even work, but I've only > ever used the ProgID. If you don't know the ProgID that is registered, > you should be able to find it in the Windows registry after you've > regist

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Dan Shirah
H, maybe it's not a problem with the DLL I'm trying to access because just doing a simple: $my_com = new COM("Excel.Application"); Gives me the same error: *Fatal error*: Uncaught exception 'com_exception' with message 'Failed to create COM object `Excel.Application': Invalid syntax ' I've c

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
Alrighty, so I went a different route... I created my own ActiveX DLL...one that I know I can register. Starting out really simple: //My VB code Public Function hello() As String hello = "Hello World!" End Function //My PHP code hello(); echo $output;} Hello(); ?> So, after I register th

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
> > It doesn't appear that your function accepts a parameter. What does > this do: > > //VB > Public Function hello(ByVal name As String) As String >hello = "Hello " & name & "!" > End Function > > //PHP > echo $new_com

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
> > Just guessing as I haven't used the PHP COM stuff, but what do you get > if you change ByVal to ByRef? > > -- > Thanks! > -Shawn > http://www.spidean.com > Ooops! My fault! I created a new dll so I could keep the currently working one and forgot to register it.. Registered and it allowed

Re: [PHP] Using DLL with PHP

2009-02-11 Thread Dan Shirah
MAYBE a little closer to a solution! //VB for Reference Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ (ByVal FullPathFrom As String, ByVal FullPathTo As String) As Integer Public Function hello(ByVal name As String) As String hello = "Hello" & name & "Worl

[PHP] Execute EXE with variables

2009-02-13 Thread Dan Shirah
Hello all, Can someone point me in the right direction? I'm trying to call an EXE from PHP and pass it two variables. I looked at the exec() command and I see that this can call the executable, but I don't see that it can pass the variables to it. Dan

Re: [PHP] Execute EXE with variables

2009-02-13 Thread Dan Shirah
> > Use the system() command, and enclose both your command and its > parameters in a pair of single quotes, as: > > system('mycmd -a alfa -b bravo'); > > Paul > -- > Paul M. Foster > Using both exec() and system() I am getting the error: Unable to fork

Re: [PHP] Whats the correct syntax for using query results in a new query

2009-03-03 Thread Dan Shirah
> > I'm trying to use the AdminID that returns from query #1 in the WHERE > AdminID = AdminID from Query 1 Okay, I think I understand what you are trying to do. //query 1 $query1 = "SELECT UserName, AdminID FROM admin WHERE Retail1 = 'YES'"; $result1 = mysql_query ($query1) ; while ($r

[PHP] numerically named member variables and objects

2009-03-11 Thread Dan Field
ation/views/scripts/ browse/search.phtml on line 62 I'm stumped. Any ideas? -- Dan FieldFfôn/Tel. +44 1970 632 582 Peiriannydd Meddalwedd Senior Software Engineer Llyfrgell Genedlaethol Cymru National Library of Wales

Re: [PHP] numerically named member variables and objects

2009-03-11 Thread Dan Field
On 11 Mar 2009, at 11:42, Dan Field wrote: As far as I was aware, member variable and object names had to start with a non integer chracter, however I am utilising a JSON lib which is providing me with the following resultset. As you can see a member class member is numerically named and

[PHP] Array Brain Freeze

2009-03-19 Thread Dan Shirah
e odd reason $stat_1 doesn't contain anything. Am I going crazy or am I doing something wrong? Thanks, Dan

[PHP] Re: Array Brain Freeze

2009-03-19 Thread Dan Shirah
gt; > In the past I have done so like this: > > $stat_1 = $char_result['stat_1']; > > But for some odd reason $stat_1 doesn't contain anything. > > Am I going crazy or am I doing something wrong? > > Thanks, > > Dan > Please disregard...the brain freez

[PHP] Java applet clearing session variables?

2009-04-02 Thread Dan King
t? Thanks, Dan

[PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
only display the information after the php script stops executing. I am outputting this after every echo: echo str_pad( "", 4096 ) . "\n"; flush(); ob_flush(); ob_implicit_flush(); Has anyone else had this issue? Anyone know how to

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
work at all even up to 144096 on the pad, but no dice. Ajax unfortunately isn't an option in this particular case. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month.

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
On Fri, May 1, 2009 at 10:40 AM, Robert Cummings wrote: > On Fri, 2009-05-01 at 10:34 -0400, Dan Joseph wrote: > > > > Ajax unfortunately isn't an option in this particular case. > > Why? Maybe you're thinking about it wrong. > > Maybe, I'm open

Re: [PHP] output buffer with Chrome issue.

2009-05-01 Thread Dan Joseph
gt; can then be queued for consumption by an AJAX script. > > Ah ok, I've never used either of those before. I am going to give that a shot and will let you know how it goes. I should be able to bolt that on quickly. Thanks! -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month.

Re: [PHP] How to include a java script in a php tag (form)

2009-05-12 Thread Dan Shirah
ere and how to put it. > > Could someone help me please? > Why not just have your "Send" button call the javascript? //Create your javascript function <!-- function myScript(){ your email javascript } //--> //Create your form //Make your "Send" button call your Javascript function HTH, Dan

Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-20 Thread Dan Shirah
> > I can't find anything like this in FPDF 1.53 or in the documentation for > version 1.60. I'd be interested if you can pinpoint it. > > Paul > Sorry, you need to load a class extension, see the website below: http://www.fpdf.de/downloads/addons/36/

Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-20 Thread Dan Shirah
did, you cannot disable or bypass this warning notification. HTH Dan

Re: [PHP] Alphabetical pagination

2009-07-14 Thread Dan Shirah
<!-- function searchLetter(letter) { document.my_form.letter.value=letter; document.my_form.submit(); } //--> //You could make a hidden form field to store the value of the letter selected. //Perform your query and search only for the letter if it isn't blank. //Print out all your letters //Have the links call a javascript function that updates the letter selected and resubmits the form to perform your new query $letter Something like that. I haven't tested any of that code just typed it up real quick to give you an idea of one way to possibly do it. Hope that helps. Dan

[PHP] dictionary/spell check...

2009-07-16 Thread Dan Joseph
ction? Yes.. I did google already... -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month.

Re: [PHP] dictionary/spell check...

2009-07-16 Thread Dan Joseph
On Thu, Jul 16, 2009 at 3:51 PM, Robert Cummings wrote: > Aspell. > >> Can anyone point me in the right direction? Yes.. I did google already... >> >> >> Thanks! -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month.

Re: [PHP] Search Query on two tables not working

2009-07-21 Thread Dan Shirah
> > Why isn't this working for searching? > > // Run query on submitted values. Store results in $SESSION and redirect > to restaurants.php$sql = "SELECT name, address, inDate, inType, > notes, critical, cviolations, noncritical FROM restaurants, inspections > WHERE restaurants.name <> ''

Re: [PHP] Search Query on two tables not working

2009-07-21 Thread Dan Shirah
On Tue, Jul 21, 2009 at 12:41 PM, Miller, Terion < tmil...@springfi.gannett.com> wrote: > Turned off the redirects on the whole script and tried to the the query to > echo and these are the errors I got: > > Notice: Undefined offset: 1 in /var/www/vhosts/ > getpublished.news-leader.com/httpdocs/Re

Re: [PHP] Freeing Memory

2009-07-30 Thread Dan Shirah
efore adding the above the process would take 20-30 minutes. After freeing the results after each insert my script completed in about 5-8 minutes. Just add that within your foreach loop after you execute your query that inserts the info. Hope that helps. Dan

Re: [PHP] Freeing Memory

2009-07-31 Thread Dan Shirah
> > How does that work considering that mysql_query() only > returns true or false on INSERT? I'd expect the script > to fail on $result not being a valid resource. > I don't know about mysql as I work with MSSQL Server and Informix, but for me it works like this: $insert = ifx_prepare("INSERT

[PHP] Displaying Results on different rows in tables

2007-01-18 Thread Dan Shirah
Hello all, I am trying to pull data and then loop through the multiple results display in seperate rows. My database contains several tables which are all tied together by the credit_card_id. After running the query, it ties the unique record together by matching the credit_card_id in both table

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Dan Shirah
The code above displays no information at all. What I want to do is: 1. Retrieve my information 2. Assign it to a variable 3. Output the data into a table with each unique record in a seperate row On 1/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Hello all,

Re: [PHP] Displaying Results on different rows in tables

2007-01-19 Thread Dan Shirah
Ah, I see. In Brad's reply there was two $result = mssql_query($sql) or die(mssql_error()); in the code. Removed the one from outside of the loop and it works fine now. Thanks to both of you for your help! On 1/18/07, Chris <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: >

[PHP] Conditional Select

2007-01-19 Thread Dan Shirah
I have a page that shows all outstanding tickets, what I'm trying to have it do is let users search by several categories. I want to be able to filter the results based on the user input. For instance, say I have an employee that wants to find ticket #2. He enters "2" in the Request ID field a

<    6   7   8   9   10   11   12   13   14   15   >