[PHP] Editing Records

2001-03-28 Thread Curtis
Hello, Could someone point me in the right direction... I need to edit existing records in a mysql database using PHP. Thanks in advance Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] PHP, MYSQL & multiple records

2001-04-02 Thread Curtis
abase, but if I only want 1 it still inserts 5 Is there an example anyone knows of I can look at. Thanks Curtis -- 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

[PHP] PHP, MYSQL and Multiple Records revisited

2001-04-02 Thread Curtis
;); endif; ?> http://localhost/pic2.phtml" method="post"> Picture Number: Picture Description: Picture Description: Picture Description: Picture Description: Picture Date: You guessed it End Code= Thanks in advance Curtis -- PHP General Mailing List (ht

[PHP] PHP, MYSQL and Multiple Records - AGAIN :

2001-04-03 Thread Curtis
phtml" method="post"> Picture Number: Picture Description: Picture Description: Picture Description: Picture Description: Picture Date: After I get this attempt, I am going back to my other job "Brain Surgery" Thanks in advance "Sorry to be such a pain" Curtis

[PHP] Which is better??

2001-04-06 Thread Curtis
other page to submit the data. that displays "DATA SUBMITTED" Make sense? The reason I ask is that I am having problems making a field REQUIRED with option one. But all of my forms are set up that way. Thanks for any input. Curtis -- PHP General Mailing List (http://www.php.net/)

[PHP] Passing variables,,, I know its not this hard.

2001-04-09 Thread Curtis
way, but the correct way. Could someone point me in the right direction. Thanks Curtis -- 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] link variable to an html page...

2001-04-09 Thread Curtis
, can I pass more than one variable? use GET? Thanks in advance Curtis -- 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]

Re: [PHP] PHP context editor

2013-03-15 Thread curtis
Sent from my Galaxy S®III Original message From: Ashley Sheridan Date: 03/15/2013 5:03 PM (GMT-05:00) To: Sebastian Krebs Cc: gei...@b1-systems.de,georg ,PHP General List Subject: Re: [PHP] PHP context editor On Fri, 2013-03-15 at 12:05 +0100, Sebastian Krebs wrot

[PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Curtis Gordon
this shoudln't be a big enough problem to throw me off schedule. Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Curtis Gordon
d, my hairline, my marriage, and my sanity! Chris Wesley wrote: Oh, and $today['wday'] ... that's the day of the week. I'm almost positive you want the day of the month: $today['mday']. hth, ~Chris On Wed, 11 Dec 2002, Chris Wesley wrote: On We

[PHP] Acessing session vars

2003-08-15 Thread Ed Curtis
I just started using sessions and am having some trouble understanding how to pull values out of sessions to use in another page. I set the values as: session_start(); session_register{'magazine'); session_register('company'); The data is saved as a session because I can read the file located

Re: [PHP] PHP and LDAP over SSL

2002-08-26 Thread Curtis Robinson
Yea, I am using OpenLDAP. Putting the .ldaprc in the user homedir for the web server worked like a charm. Thanks. On Mon, Aug 26, 2002 at 08:37:52AM +0200, Stig Venaas wrote: > On Fri, Aug 23, 2002 at 11:52:11AM -0500, Curtis Robinson wrote: > > So, I see that php does not have the CA

[PHP] GD 1.8.4

2002-08-27 Thread Zach Curtis
I have spent most of the day trying to get gd 1.8.4, freetype2, libpng, zlib, and jpeg-6b to work with PHP 4.0.6 running on Solaris 7. I am not to yet to point of configuring this with PHP. I can't get 'make' to run on gd 1.8.4: gdft.c:36: freetype/freetype.h: No such file or directory gdft.c:37:

RE: [PHP] GD 1.8.4

2002-08-27 Thread Zach Curtis
OK. I ran 'make install' for GD 2.0.1 and that seemed to go smoothly. Thanks. Zach -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 2:42 PM To: Zach Curtis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] GD 1.8.4 GD1 uses Freetype

[PHP] Reconfigure PHP

2002-08-28 Thread Zach Curtis
2 and used 'make install' in: /usr/local/src/gd-2.0.1 I didn't specify any special installation instructions for these programs/libraries. How can I determine what directories to point the 'with' statements to? Thanks much. Zach Curtis POPULUS -- PHP General Mailin

[PHP] Configure 'with' PHP

2002-08-28 Thread Zach Curtis
search for libgd.so which is located in /usr/lib. What am doing wrong? Am I pointing to the correct gd location and/or freetype location? Regards, Zach Curtis POPULUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with variables and PHP/HTML

2002-09-24 Thread Ed Curtis
RL such as: It becomes a null value or doesn't get passed at all. I thought this might have something to do with track-vars but track vars are enabled by default in PHP since before my version. When I compiled everything I compiled PHP as a DSO. Any ideas? TIA, Ed Curtis -- PHP Gener

Re: [PHP] export data to text file

2002-09-28 Thread Curtis Gordon
Why not write to a file on the server and generate a link to it? Collect info > write file > user downloads file Curtis Diana Castillo wrote: >okay, how can I write a file in csv format either to the browser or to the >server? If I use the Mysqladmin page I get all the fields,

Re: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Curtis Gordon
This is how I do it. I fire a javascript when the link is clicked, which in turn submits a form targetting the page you openned (named of course). function donewpage(){ open window named "mywindow" submit form targetting "mywindow" blah blah blah } sorry to be so brief but the hockey

[PHP] Running a PHP Script from UNIX Command Line?

2002-07-17 Thread Zach Curtis
t really echo any results back, but logs its results. The script it too time consuming to be run by having someone running the script through a web browser and waiting for it to complete. Thank you very much. _____ Zach Curtis Programmer Analyst POPULUS www.pop

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
2003-09-11 at 15:39, Ed Curtis wrote: > > Is there any type of criteria that would point a user to directoryA or > > directoryB? > > > > I recently rebuilt a site that handled a couple thousand > > different working directories for clients but used only one set of

[PHP] File Types

2003-09-15 Thread Ed Curtis
I currently limit file types in an upload script by using an allowed types array $allowed_types = array("image/jpeg", "image/gif"); I also need to allow files of with the following extentions. .tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps Is there a site out there anywhere that gives the mime ty

Re: [PHP] File Types

2003-09-15 Thread Ed Curtis
On Mon, 15 Sep 2003, Raditha Dissanayake wrote: > You don't need to look any further than mime.types files included in > your apache distro. Did that as well as googled for the list of extensions. Still can't seem to find the mime type for .pm7, .p65, .qxp and .pmd. -- PHP General Mailing List

RE: [PHP] File Types

2003-09-15 Thread Ed Curtis
On Mon, 15 Sep 2003, Javier Tacon wrote: > > You could use the function exif_imagetype() to see what type of file > has been uploaded. > The filetypes are not all images types. Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Types

2003-09-15 Thread Ed Curtis
> Didn't google hard enough :) > > .pm5 application/x-pagemaker > I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as > well. > > pmd is also pagemaker according to filext.com, as well as some software I've > never heard of. > > QXP is a good one, and you may need to

[PHP] One variable not equal to 2 values.

2003-09-25 Thread Ed Curtis
How would I write this statement: if $thisvar is not equal to this value or that value. { do stuff } Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Avoiding "Warning - Page Expired"

2003-09-30 Thread Ed Curtis
Is there any way to avoid having this happen using php if someone sits on a page too long and clicks the back button to go back to a form they have filled out and not having the values in a session? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Multidimensional Arrays

2003-10-20 Thread Ed Curtis
I'm trying to submit multiple values to a variable within an tag by using a value such as value="this,that" There are multiple statements on this form each counting up from 1 using $count and $listings as such. This and That That and This On the recieving side I'

[PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
I currently use number_format() and str_replace() to remove a "," or "$" if entered and reformat it as a price for an item. I've asked the user not to use decimals but some still do. How do I remove a decimal and anything after from a number in a varable? Thanks, Ed -- PHP General Mailing Li

Re: [PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
Thanks! Works like a charm. Ed On Tue, 4 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <[EMAIL PROTECTED]> > > I currently use number_format() and str_replace() to remove a "," or "$" > > if entered and reformat it as a pr

[PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
Duh. Yeah, works like a charm. Thanks, Ed On Thu, 6 Nov 2003, Jay Blanchard wrote: > [snip] > $price = "1234.567890"; > > $price = number_format($price, 2, '.', ''); > > echo $price; > > Returns 1234.567890 > > Should return 1234.57 correct? > [/snip] > > Use a new variable to hold the modif

[PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with something someone type in from a form stored in $new_text. How would I go about comparing them to see if they are different or exactly the same? strcmp doesn't look like it will handle this too well

Re: [PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I guess I did miss that it says that the comparison is case sensitive and binary safe. Thanks, Ed On Wed, 19 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <[EMAIL PROTECTED]> > > > I currently store text from a MySQL blob field in a string $orig_text

[PHP] array problems

2003-11-25 Thread Curtis Maurand
utside the loop $content_array is not available. What am I doing wrong? Thanks in advance. Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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-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

[PHP] Building a query string

2003-12-03 Thread Ed Curtis
This list has helped me out alot and I hope it can do it one more time. I need to build a MySQL query based on 11 different options from a form. Some options will have values others will be checkboxes to say include in the query. How I thought about going at it was using a default query string

Re: [PHP] Re: Building a query string

2003-12-03 Thread Ed Curtis
> To answer the question, $query_str.=" AND garage = '$garage' "; > > BUT. If $garage is an id (numeric), then you should use > $garage=abs($garage) first in order to defeat SQL injection. If it's a > string, well, say so and we'll tell you what to do (a lot to explain, > and not useful if it's an

[PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
I've read through the archives and run through some of the suggestions given for progress bars and pop ups with animated gifs and haven't had much luck. I've had the most luck using the pop-up window method. In the element I call onSubmit="{open some window here}" This works as the pop-up appe

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
> If I understand you correctly, when you call window.close on the next > page you want it to close the child window. I am not sure if this is > possible > with Javascript if you go to a new page, it might be. You would want > to not call window.close but something like myPopUp.close() on the

Re: [PHP] Re: progress in PHP

2003-12-22 Thread Ed Curtis
> Now that might interest me. So what has been added to the PHP codebase > that makes this work? And what tweaking would I need to do? [Can't I > just have it display in the current window? Why bother with a popup?] >From rumors I've heard on the list a future version of PHP may have a progr

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Ed Curtis
> Join the 11,000 people who use megaupload progress bar (with a little > help from perl) > http://www.sourceforge.net/projects/megaupload/ I tried. It wasn't worth all the perl mods I would to have had to install to make it work. Ed -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] picturing webpage

2004-01-09 Thread Ed Curtis
king for but this might be what you're after. It was posted on Freshmeat just this week. http://www.babysimon.co.uk/khtml2png/ Ed Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
> [snip] > OK, but how? I already use GD, I need to now how to create a thumbnail, > > somebody now how to use the GD functions to create a thumbnail??? > [/snip] > > http://www.php.net/GD Personally, I think Imagemagick's mogrify works alot better. I've been using GD for the past few months a

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
> No need to copy+mogrify; just use > > convert [options] /path/to/old /path/to/new > > instead :-) I wasn't aware of that command. This list is great!! Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 --silen

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 d

[PHP] Problem installing extension

2001-05-21 Thread Ben Curtis
I'm having problems loading an extension I just compiled into PHP 4.0.5 on linux. On startup I get this... PHP Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20001222/myextension.so' - cannot open shared object file: cannot load shared object file: No

[PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
by a four character $int_id d22ad bbaw Here is the regular expression I am trying to use that does not find the match and produces "Warning: REG_BADRPT". (eregi("^\$password+[[:space:]]*+\$int_id", $file_array[$i])) Any corrections? Thanks in advance. Zach Curtis POPUL

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
, it's variable. Zach -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 9:58 AM To: Zach Curtis Subject: Re: [PHP] Reg Exp Help how can I see that it isn't a 6 char $password with a 3 char $int_id ?? > Thi

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
nt: Friday, January 25, 2002 10:29 AM To: Zach Curtis Subject: Re: [PHP] Reg Exp Help but if the positions as fixed, why don't you use the substr, and then trim th result? Edward ----- Original Message - From: "Zach Curtis" <[EMAIL PROTECTED]> To: "Edward van Bild

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
day, January 25, 2002 10:29 AM To: Zach Curtis Subject: Re: [PHP] Reg Exp Help but if the positions as fixed, why don't you use the substr, and then trim th result? Edward ----- Original Message - From: "Zach Curtis" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek

RE: [PHP] Reg Exp Help

2002-01-25 Thread Zach Curtis
or less overhead than a single regular expression? Thank you. Zach -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 11:36 AM To: Zach Curtis Subject: Re: [PHP] Reg Exp Help You said: > The password and int_id begin

[PHP] Array() Limit

2002-01-29 Thread Zach Curtis
Is there a limit to the number of key=value pairs that can be stored in an array? Or is this more a function of RAM limits? Thanks. Zach Curtis POPULUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Moto

2002-02-19 Thread Ben Curtis
I noticed this server-side scripting language which has an interesting twist: your code can be complied and loaded as an apache DSO. Would this be feasible with PHP? -- This space for rent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Moto

2002-02-19 Thread Ben Curtis
Not PHP itself, heh, but PHP scripts that you write. Moto scripts can be interpreted by moto, just like PHP, but the scripts can also be compiled as DSOs. On Tue, Feb 19, 2002 at 11:58:52AM -0500, Gary wrote: > Ben Curtis wrote: > > >I noticed this server-side scripting language

Re: [PHP] Re: Moto

2002-02-19 Thread Ben Curtis
http://www.webcodex.com/moto/ On Tue, Feb 19, 2002 at 05:07:14PM +, Nick Winfield wrote: > On Tue, 19 Feb 2002, Ben Curtis wrote: > > > Not PHP itself, heh, but PHP scripts that you write. Moto scripts can > > be interpreted by moto, just like PHP, but the scripts can al

[PHP] Which Portal System?

2002-02-20 Thread Curtis Strite
I'm looking for some recommendations on which portal system to use for my website. I have sifted through most of what I think will suite my needs at hotscripts.com. HOwever I wanted to get some feedback from somone who has used any of the ones I'm looking at before I take the time to set it up a

[PHP] Executing a time intensive script

2002-04-18 Thread Zach Curtis
to the authenticated area without that delay? Another thought I had was to get the function.php script that contains the function to execute on its own based on time (e.g., run every hour on the hour). Is there a way to do that? Thank you. _ Zach Curtis Programmer Analys

[PHP] Cookie Name=Value Pairs

2001-12-17 Thread Zach Curtis
What is the syntax to set multiple name=value pairs in a cookie? Thanks. Zach Curtis POPULUS -- 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

[PHP] undefined symbol error

2001-04-13 Thread Curtis Maurand
et an undefined symbol and its looking for gss_mech_krb5. anyone have any ideas of what I need to install. I have installed all the latest kerberos packages from redhat, including the development packages. I running with kernel 2.2.17-14 and its apache 1.3.14 Curtis -- PHP General Mailing List

[PHP] $PATH_INFO strangeness

2001-08-20 Thread Brian Curtis
direction of some good documentation on said subject? TIA. -- Best regards, Brian Curtis -- 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] PHP4 and PHP4 w/ EAPI sharing same libs

2001-09-23 Thread Brian Curtis
hanks. -- Best regards, Brian Curtis -- 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]

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Ed Curtis
You could try this: http://marginalhacks.com/Hacks/html2jpg/ Save the page as an image, and then run it through the printer. It does have some overhead though to get it done. Hope it helps, Ed On Tue, 27 Jul 2004, Vern wrote: > I feel like I taking a hammer and well I'm sure you all know

[PHP] session_cache_limiter confusion

2004-08-20 Thread Ed Curtis
I've been looking through the online docs and man is this one confusing. Seems there are plenty of different ways to use this. Using this with forms, what is the best setting to avoid back button mishaps? (none,private, etc..) Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Ed Curtis
If you have a Linux box available here's something to try although it does have some required software. http://www.babysimon.co.uk/khtml2png/index.html There is also a link on the site for a commercial product for Windows that does the same thing. I can't endorse either one as I have not used

[PHP] Correct context

2004-09-20 Thread Ed Curtis
Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AND $ro

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Ed Curtis
On Mon, 20 Sep 2004, Jay Blanchard wrote: > There are several ways here is one > > if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner > Change" != $entry) || ("Price Change" != $entry))) > > Note the parentheses to define preference order. That's what I was looki

Re: [PHP] Chrome 1.0 released

2008-12-24 Thread Ed Curtis
Bill Guion wrote: At 9:30 AM -0500 12/14/08, tedd wrote: At 3:08 PM -0800 12/13/08, Yeti wrote: I have to defend poor little IE a little now. It supports XHTML and CSS2 pretty well so far. And those standards came out a couple of months ago. Even a blind pig finds an acorn every once in a wh

[PHP] Which file "Included" me?

2009-02-18 Thread Ed Curtis
Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it's called from a certain URL. t

Re: [PHP] multiple choice dropdown box puzzle

2009-02-23 Thread Curtis Maurand
$driverresult = mysql_query($driverquery, $mysql_link); print("\n"); while ($driverrows = mysql_fetch_array($driverresult)) { print(" '$driverrows[0]'>$driverrows[1]\n"); } print(" \n"); } HTH Curtis

Re: [PHP] Re: New Horizon! scam

2009-03-02 Thread Ed Curtis
Alan Bell wrote: that would appear to be a scam of some sort, not sent by Alan Lord at all, he can spell electronic and generally speaks English. Alan. Alan Lord wrote: New Horizon! i would like to introduce a good company who trades mainly in electornic products. Now the company is under sa

Re: [PHP] CSS & tables

2009-05-15 Thread Ed Curtis
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise.

[PHP] db query not working

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query ("DELETE FROM tmphitsmag"); $result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE company != ''"); if ($row = mysql_fetch_array($result)) { do {

[PHP] db query not working as expected

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query ("DELETE FROM tmphitsmag"); $result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE company != ''"); if ($row = mysql_fetch_array($result)) { do {

[PHP] php and javascript error

2007-03-07 Thread Ed Curtis
I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur becau

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without the 'or die()' after it (or any other means to check if mysql_query

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur because I'm sending the variables to another script that d

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just saying it's OK, when it

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
It is an old guy thing, at least in my case (trivia: I was born the day after the ENIAC was turned off) Aha! October 3, 1955 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searching IDE.

2012-06-13 Thread Curtis Maurand
pse+PDT. >> What is your opinion? I've seen these articles posted at infoworld. http://www.infoworld.com/d/application-development/review-2-php-tools-rise-above-the-rest-189085 http://www.infoworld.com/d/developer-world/infoworld-review-eight-php-power-tools-737 Cheers, Curtis

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Curtis Maurand
o the authentication correctly. --Curtis Matijn Woudt wrote: > Op 17 jul. 2012 05:23 schreef "James Newman" > > het volgende: >> >> I'm having a few authentication issues and I'm not sure if it's my code >> or >> the web service I'm con

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 a

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] 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] 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

[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

[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

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

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 de

[PHP] Stupid question

2013-02-26 Thread Curtis Maurand
, $_u_id); $_getSubTotal += $_pdetail->_subTotal; $_counter++; } } I'm getting: Call to undefined method MDB2_Error::fetchrow() anyone have any ideas? Can I not pass a database handle to a function? Thanks, Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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,

Re: [PHP] Stupid question

2013-02-27 Thread Curtis Maurand
website are incorrect and should be fixed. Thanks for the lesson. --Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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

[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? t

  1   2   >