[PHP] Alternative control structure syntax

2005-04-06 Thread Dan Rossi
Does anyone use it, is it more efficient on the compiler and coding to do this switch($i): case 0: break; endswitch; instead of this ? switch($i) { case 0: break; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Tomcat and php in Suse 9.2

2005-04-15 Thread Dan Rossi
I noticed you never had a reply for this, its probably because this is non standard, or totally not heard of. What I would do, (even though I have yet to try this), is run php standard as a module in apache, but then run the tomcat connector jk or jk2 into apache, so it will run seamlessly. The

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Dan Rossi
already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors.

Re: [PHP] dynamic class loaders

2005-04-19 Thread Dan Rossi
On 20/04/2005, at 2:52 PM, Richard Lynch wrote: I don't quite see how: can be sped up much... The problem isn't in the require function, but in the Class source bloat... But maybe I'm just being stoopid. First thing first, I am sure you are not new to the list and so arent I but dont try and

Re: [PHP] Re: dynamic class loaders

2005-04-19 Thread Dan Rossi
Thanks this seemed to work except say you had a class Packagename_Classname its trying to load the file like that Packagename_Classname.php On 20/04/2005, at 4:23 PM, Markus Fischer wrote: [EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to

Re: [PHP] Re: reverse MD5 ???

2005-04-22 Thread Dan Rossi
I don't think that's right. Collisions allow certain kinds of cryptographic attacks against things like MD5-based signatures but that is not at all the same as being able to simply determine the original message content from the digest. Rather, they allow you to substitute the original message wi

Re: [PHP] Dynamic Generating reports to print

2005-04-23 Thread Dan Rossi
On 24/04/2005, at 12:43 AM, Steve Brown wrote: I used to encounter the same problems with reporting in our business software. You can generate reports and spit out HTML in a new window and have the user print the report from the browser, but that has many drawbacks. It only works with simple dat

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Dan Rossi
From my knowledge amfphp is now vapourware, I am assuming lawsuits etc . PHPObject is the alternative, it however doesnt use the flash remoting component but has its own, it streams serialized data as an array from php classes. the sucky thing is you cant use the remoting monitor in flash

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Dan Rossi
grt, Evert Dan Rossi wrote: From my knowledge amfphp is now vapourware, I am assuming lawsuits etc . PHPObject is the alternative, it however doesnt use the flash remoting component but has its own, it streams serialized data as an array from php classes. the sucky thing is you cant use th

Re: [PHP] Global Variables

2005-04-28 Thread Dan Rossi
session_start(); $_SESSION['somevar'] = "foo"; u could also check out pear's HTTP_Session package. On 28/04/2005, at 7:06 PM, Dan wrote: Hi all. I taught myself PHP before the frenzy over register_globals. After a reasonable break from the language, I'm back for m

Re: [PHP] PHP Athentication with defined users in linux

2005-04-28 Thread Dan Rossi
On 28/04/2005, at 7:16 PM, Hesam Montazeri wrote: Dear Friends, I am just subscribe to this interesting list. I have a question about authenticating mechanisms. I want to implement login page which authenticate users against defined users on Linux Redhat 9.0 on the server machine. I don't want to d

Re: [PHP] PHP and Ajax?

2005-04-29 Thread Dan Rossi
its using the standard toolkit available in most browsers, what i find a pain in the ass is having to build the post data into a string before it can be sent, it should do it for u On 29/04/2005, at 4:40 PM, Hidayet Dogan wrote: Try SAJAX at http://www.modernmethod.com/sajax

Re: [PHP] PHP and Ajax?

2005-04-29 Thread Dan Rossi
hmm isnt the intention of httprequest is that u can send post data without leaving the page ? It has worked for me, except u have to build the post data yourself to send. On other similar circumstances i've had to post certain data from a post to the current database but also executr a script a

Re: [PHP] __autoLoad php5 callback is being triggered for every class ?

2005-04-29 Thread Dan Rossi
Its DB_Error which is the error callback for the PEAR DB. I dont know where its being references but its triggering my php error handler and i cant supress the errors for require. There is no such file DB/Error.php however i may have to create one just to make it go away :) On 29/04/2005, at 9

[PHP] FPDF, HTML and PDML

2005-05-04 Thread Dan Rossi
Hi there I am trying out the PDML class which interfaces the FPDF code for generating PDF's with markup language. The issue its I cant put straight html tables into it. Is there such an interface to FPDF that can be used to convert html to pdf. I have tried alot of them and none worked out of t

[PHP] PHP's auto_prepend_file inside an Apache Directory container

2005-05-04 Thread Dan Trainor
Hello, all - I've been tinkering around with PHP's auto_prepend_file, specifying this from inside an Apache VirtualHost container, something as such: blah blah blah php_value auto_prepend_file /super_duper_file.php THis works fine from within the VirtualHost cont

[PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
Hi there, I am looking at integrating XSL:FO and PHP to convert html templated data into pdf's using xml and xsl. I was wondering if anyone has had success with this ? I have seen the pear package which does this but requires the experimental java extension. Let me know, it looks easy executing

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? On using passthru: I do not think FOP has the option to passthru the PDF output from the comma

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 7:14 AM, Kristen G. Thorson wrote: Dan Rossi wrote: On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? LOL. Tha

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 8:28 AM, Dan Rossi wrote: For any interested parties, there is a tool called html2fo which will convert html to a formatted object file which can then be sent to FOP. I also found another example where any xhtml file can be transformed with a global xsl stylesheet to

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote: Dan, I have done this before, but it was only a proof-of concept excercise for me, so my procedure may not work for you. My test was against an Amazon web service and generating a PDF from the XML returned to me. This method used Apache&#

Re: [PHP] XSL:FO + PHP

2005-05-06 Thread Dan Rossi
Have you tried this? It seems HTMLDoc is still free... I've used that tool also... pretty satisfied. http://www.htmldoc.org/software.php I have used htmldoc in the past for this, but feel its a workaround, htmldoc is purely for generating manuals, which is what it does best, i wonder if it ha

[PHP] compiling dynamic extensions without root access

2005-05-06 Thread Dan Rossi
I was going to ask, without the need of requesting our admins to recompile php all the time is there a way in the meantime to compile extensions and load them dynamically without the need for root access to some of the php libraries ? I have always compiled in personally so have never tried it.

Re: [PHP] compiling dynamic extensions without root access

2005-05-07 Thread Dan Rossi
On 07/05/2005, at 3:16 AM, Rory Browne wrote: It depends: What webserver are you using? PHP/Apache will let you load extensions using .htaccess, which can be your own extensions, located in a directory that you have write access to. I've never tried it but something like php_extension_dir /home/yo

[PHP] Java in PHP5

2005-05-07 Thread Dan Rossi
Ok So I am looking at two possibilities of java integration, one via command line and one using the extension. I dont particularly want the experimental pecl extensions in my php therefore I want it dynamically loaded. I cant for the life of me find the Java extension, would anyone know where t

Re: [PHP] compiling dynamic extensions without root access

2005-05-07 Thread Dan Rossi
On 08/05/2005, at 1:03 AM, Rory Browne wrote: I believe(although I stand to be corrected, that there is a threading MLM on apache 2 - this would rule out dl() AFAIK We're not using Apache2 yet coz of the thread issue with php however i am setting up a prefork setup for development. -- PHP Genera

[PHP] using sockets to load a streaming windows media file

2005-05-07 Thread Dan Rossi
Hi there, is there anyway possible to load a streaming windows media file via a socket connecting to output its contents to the browser or a windows media object. My issue is I am spitting out an asx playlist file however for some freak reason, whenever i put control logic around where i am out

[PHP] Generating a php file

2005-05-11 Thread Dan Rossi
Hi there I am trying to generate a php file, which has variables that i need to have in it ie $_SERVER but not actually be parsed as they need to be in the actual script. I also need to send some variables to assign values to other variables in the script. How is this possible ? I have tried pl

Re: [PHP] include remote class

2005-05-11 Thread Dan Rossi
im doing include('http://www.mysite.com/class.php'); and then i create new instance but i get error - cannot instantiate non-existant class how can i get this remotely hosted class file to be defined? If you surf to that URL, do you see PHP source, or do you see HTML/nothing? You may want to use

Re: [PHP] Generating a php file

2005-05-11 Thread Dan Rossi
On 12/05/2005, at 6:03 AM, Rory Browne wrote: You can start by clarifying. I had to read your message three times before I got a vague understanding. What I'm hearing is that you want to put something like into a string? You are having difficulty doing this because you are finding that your string

Re: [PHP] Generating a php file

2005-05-11 Thread Dan Rossi
On 12/05/2005, at 8:01 AM, Rory Browne wrote: I'm still not sure I understand, although I'm getting there. This might be useful. $dynamicly_generated_script = "somevalue}'; ?>"; As might this: $dyn_gen_script = sprintf( '' , $this->somevar ); \ Ahh it looks like i have to addslashes to dollar signs

Re: [PHP] PHP 5.0. Save classes in a session. Need help now

2005-05-11 Thread Dan Rossi
I've done this by serializing and unserializing the the object. Its been discussed however using shared memory, shm is a better way to do it ? Sadly sh doesnt compile as default. On 12/05/2005, at 10:19 AM, Oscar Andersson wrote: Is it possibele to save a class in a session ex. $cl = new Class()

[PHP] alternating row color--newbie help

2004-04-15 Thread Montagna, Dan
;; } echo "".$row['name']."".$row['phonenumber']."".$row['age']. "\n"; echo "\n"; } //now let's close the table and be done with it echo "\n"; ?> I'd appreciate any hints on this... Thanks Dan

RE: [PHP] Re: Looking For Easy To Use Shopping Cart

2004-05-14 Thread Dan McCullough
There are several tutorials that are just the cart, probably some minimal code typing and fixing for your needs. MyMarket found on SourceForge is one. There was one on Monkey Junkies. FreeTrade is good. dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444.9808

RE: [PHP] Re: Looking For Easy To Use Shopping Cart

2004-05-14 Thread Dan McCullough
That's very simple. If you don't mind writing a bit of specific code you could do it in about an hour, there are many snippets of code for payment processors that you could use. Try Hotscripts.com. dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 60

RE: [PHP] Re: Looking For Easy To Use Shopping Cart

2004-05-14 Thread Dan McCullough
aging-Users-with-Sessions/623 http://tutorialized.com/tutorials/PHP/E-Commerce/tutorial/Building-an-E-Comm erce-Site-Part-3-Catalogs-and-Shopping-Carts/624 A little more involved. dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444

Re: [PHP] Getting whole URL

2004-05-05 Thread Dan Phiffer
available, this is a good way to check: echo ''; print_r($_SERVER); echo ''; -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DOM XML output whitespace

2004-05-23 Thread Dan Phiffer
Hello, Is there a way to get DOM XML to insert human-friendly whitespace between elements created programmatically? I'm using PHP 5 these days, so I guess I'm looking for some way to tell a DomDocument to prettify its save() output. Thanks! -Dan -- PHP General Mailing List (http://w

[PHP] Re: DOM XML output whitespace

2004-05-25 Thread Dan Phiffer
Martin Geisler wrote: I don't remember any more where I found this, but with formatOutput = true; ?> you get what you ask for: formatted output. Excellent, that did the trick! Thanks, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular expression question

2004-05-27 Thread Dan Phiffer
/ [^\\\] # Don't match if a backslash precedes \[ # Open bracket ([^\]]+?) # Text, including whitespace \] # Close bracket /x "; Nothing seems to change if I keep adding backslashes to that first matching thingy (i.e. the esca

[PHP] TIFF display problem...

2004-06-21 Thread Dan Joseph
read in images from a secured directory and display it on the page. I was using JPGs before and now need to display TIFF files. We have the plugins for IE all setup. Could someone tell me how I could fix this? I'm at a complete loss... -Dan Joseph -- PHP General Mailing List (htt

RE: [PHP] TIFF display problem...

2004-06-21 Thread Dan Joseph
Hi, Yeah, positive, I should probably clarify more. session_start(); is what causes it not to display, and gives me the error. The error is that the site cannot download the file. -Dan Joseph > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED]

RE: [PHP] TIFF display problem...

2004-06-21 Thread Dan Joseph
Hi, The only problem with turning them off is I need the page to be secured. My only option is session tracking. -Dan Joseph > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 4:42 PM > To: [EMAIL PROTEC

RE: [PHP] TIFF display problem...

2004-06-21 Thread Dan Joseph
Hi, that probably would work better, however, the if control isn't what's fouling it up. I can omit that and leave session_start() in there, and its fouled up. Session_start() is the culprit. -Dan Joseph > -Original Message- > From: Daniel Clark [mailto:

RE: [PHP] TIFF display problem...

2004-06-21 Thread Dan Joseph
Hey Matt, That was the trick, thanks.. I passed that function... what is it... session limit cache something or another. Worked like a charm! Thanks much! -Dan Joseph -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 5:02 PM To

[PHP] TIFF images

2004-06-25 Thread Dan Joseph
o display the TIFF images also. Can anyone please help? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DomDocumentType in PHP 5

2004-06-28 Thread Dan Phiffer
uery this structure using getElementById Sorry if I'm missing something obvious. Also, is there a better list/newsgroup for this? Thanks, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPEclipse?

2004-07-12 Thread Dan Joseph
Hi, I was wondering, is anyone running Eclipse 3.0 w/PHPEclipse 1.1.0? I'm having trouble getting it working. I downloaded the July .ZIP file and unzipped it into the plugins directory. Its not recognizing it. Anyone have this working? -Dan Joseph -- PHP General Mailing List

RE: [PHP] OO woes

2004-07-12 Thread Dan Joseph
Hi, Doesn't sound like an OO issue, sounds like you're kiling the query with the '. You should go thru and maybe do an str_replace( "'", "\'", $_POST['test'] ) on all your post variables. -Dan Joseph > -Original Message--

RE: [PHP] PHPEclipse?

2004-07-12 Thread Dan Joseph
LOL.. I read all these "PHPEclipse is great!" reviews. It relaly does look good. Bummer you couldn't get it working either. I have EPIC installed, a Perl plug-in, its working fine, so I know plugins are working. Ahh well, maybe someone will read the list and have an answe

RE: [PHP] PHPEclipse?

2004-07-12 Thread Dan Joseph
How did you get it installed? Did you just extract the zip into the plugins directory? -Dan Joseph > -Original Message- > From: Andrei Verovski (aka MacGuru) [mailto:[EMAIL PROTECTED] > Sent: Monday, July 12, 2004 4:36 PM > To: [EMAIL PROTECTED] > Cc: Dan Joseph >

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, if ($_SERVER["HTTPS"] != "on") { $newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("location: $newurl"); die; } That's how I do it.

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, That code I sent is running on a Cobalt Linux server. -Dan Joseph > -Original Message- > From: Jamie [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 13, 2004 3:37 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Detecting if browser is using a HTTP or > HTTPS

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, Can you post your code so we can look at it? -Dan Joseph > -Original Message- > From: Jamie [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 13, 2004 4:48 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Detecting if browser is using a HTTP or > HTTPS conn

RE: [PHP] textarea/display question...

2004-07-20 Thread Dan Joseph
Hi, With textarea, there is no value... $foo -Dan Joseph > $foo = 'blah'; > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Money format

2004-07-20 Thread Dan Joseph
Hi, From php.net/sprintf: I think you'd have to format the . and , a bit differently, but that should be a start. -Dan Joseph > -Original Message- > From: Lukáš Moravec - PTV Servis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 2:10 PM > To:

[PHP] get all except 1

2004-07-20 Thread Dan McCullough
wn on that page. So can I do something like $story_sql="SELECT * FROM story WHERE approved = 1 AND editionId = $eid EXCEPT nid = $nid"; $nid is the id of the story whos detail page we are on Am I thinking correctly? dan mccullough tf: 866.298.3991 w:

RE: [PHP] get all except 1

2004-07-20 Thread Dan McCullough
Anything wrong with SELECT * FROM story WHERE approved = 1 AND newsId != $newsId AND editionId = $eid ORDER BY newsSortOrder ASC dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem

RE: [PHP] get all except 1

2004-07-20 Thread Dan McCullough
Thanks. Discovered some old code after writing. Boy its been awhile. dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity

RE: [PHP] what is difference between php and perl

2004-07-22 Thread Dan Joseph
erence choice. PHP was designed for dynamic web pages, Perl was designed to be a unix programming language that evolved. -Dan Joseph > #!/usr/bin/perl > > print "HTTP/1.0 200\r\n"; > print "Content-Type: text/html\r\n"; > print "Set-Cookie: SESS=123fdfd...

[PHP] LDAP

2007-08-21 Thread Dan Shirah
Okay, hopefully someone can help me out here. I've gone over ldap at php.net and multiple other sites but can't get it to work. Everytime I run the query my results are "0 entries returned". My AD tree is: CN=Users,DC=domain,DC=us. I have the AD Server set so that anonymous access to retrieve in

Re: [PHP] LDAP

2007-08-21 Thread Dan Shirah
Nothing is being blocked since both servers are inside the DMZ. On 8/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On 8/21/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Okay, hopefully someone can help me out here. I've gone over ldap at > > php.net and mu

[PHP] LDAP ***RESOLVED***

2007-08-21 Thread Dan Shirah
Apparently even though our Domain Administrator said anonymous access is enabled for the server, it still did not like me trying to query AD anonymously. I created a username/password with limited priviledges to AD and now it works like a charm. Below you will find my finished code: >Could not c

[PHP] mail() issue

2007-08-22 Thread Dan Shirah
Hello All, I am having an issue with mail. include '../../Process/include/LDAP.php'; echo $user_email; $to = $user_email; $subject = 'Request Submitted Successfully!'; $message = "Congratulations!\nYour request has been successfully submitted.\nThis is an automated email, please do not reply."

Re: [PHP] mail() issue

2007-08-22 Thread Dan Shirah
The "." (period) is simply the end of my sentance in the email. The "From" address is specified in the php.ini and is fully qualified. If I hard code the value of $to into the mail function it works fine. $user_email = [EMAIL PROTECTED] $to = [EMAIL PROTECTED] mail($to, $subject, $message); = P

Re: [PHP] mail() issue

2007-08-22 Thread Dan Shirah
Found the problem. At the very end of the include file was an extra break which was being pulled into the $user_email variable. Removed it and everything is working great now. Thanks so much! On 8/22/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > -Original Message-

[PHP] Table shows even when if () is false

2007-08-22 Thread Dan Shirah
ven if there is no data retrieved? Below is my code: DEFERRED PAYMENT REQUEST COMMENTS \n"); ?> Thanks, Dan

Re: [PHP] Table shows even when if () is false

2007-08-22 Thread Dan Shirah
Ah, I see. Changed and working. Thanks Jay! On 8/22/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > [snip] > $deferred_comments= "SELECT * FROM comments WHERE credit_card_id = > '$credit_card_id' AND request_type = 'D'"; > $result_deferred_comments = mssql_query($deferred_comments) or

Re: [PHP] Recompiling PHP with mssql

2007-08-23 Thread Dan Shirah
You shouldn't need to recompile PHP. Just go into your PHP.ini file and uncomment the line: ;extension=php_mssql.dll After that you can go to the [MSSQL] section of the .ini file and change the rest of the settings however you want them. IE. Allow persistent connections, timeouts etc. Then, just

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Dan Shirah
I personally think it sounds like a pretty fun job with a lot of potential. Even if you don't get hired on as staff after the contract is up, you're still potentially walking away with: 1 - Some excellent business contacts 2 - First hand experience in developing their new applications 3 - More mark

[PHP] Opening a file

2007-09-05 Thread Dan Shirah
Good Morning! Opening this file is proving to be a pain. I have a folder that contains a PHP page and a text file. I am trying to open the contents of the txt file using file() but it keeps erroring out. Below is the code I'm using to try and open it: So, I'm setting my variable, opening my fil

[PHP] Re: Opening a file

2007-09-05 Thread Dan Shirah
nction.in-array>]: Wrong datatype for second argument But the file IS in the same folder. On 9/5/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Good Morning! > > Opening this file is proving to be a pain. I have a folder that contains a > PHP page and a text file. I am tryin

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
the same folder, then $lines = file("fruits.txt") should be valid. On 9/5/07, Richard Davey <[EMAIL PROTECTED]> wrote: > > Hi Dan, > > Wednesday, September 5, 2007, 3:24:43 PM, you wrote: > > > Opening this file is proving to be a pain. I have a folder that co

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
mypage.php and fruits.txt have the same permissions. The IUSR(internet user) account has the following permissions: Read & Execute Read On 9/5/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > I did a > > if ($lines === false) { > echo "lines is false"; > } > > like you suggested and i

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
processes accordingly. On 9/5/07, Stut <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > I did a > > > > if ($lines === false) { > > echo "lines is false"; > > } > > > > like you suggested and it displays that text...but it still make

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
Ah, okay. Would this also work if I wanted to apply this to multiple other pages located within different areas of the site tree? On 9/5/07, Stut <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > So: > > fruits.txt is contained in the same folder as mypage.php. >

Re: [PHP] php5: capital "I" letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Dan Shirah
Now that's service! On 9/6/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 9/6/07, Roman Neumüller <[EMAIL PROTECTED]> wrote: > > I'm a german web-designer living in Turkey. > > Sometimes I use opensource software like gallery2 or WP to have > customers > > have some > > nice web albums or blog. The

[PHP] Page Numbering

2007-09-19 Thread Dan Shirah
Hello all, I am having a problem with trying to display a set amount of records from my result. I have verified that the correct values for my variables are being passed to the query. The calculation for the records that should be displayed per page is correct. The total number of records returned

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
. Lensselink <[EMAIL PROTECTED]> wrote: > > On Wed, 19 Sep 2007 10:05:40 -0400, "Dan Shirah" <[EMAIL PROTECTED]> > wrote: > > Hello all, > > > > I am having a problem with trying to display a set amount of records > from > > my > > resu

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
Actually, the query you mentioned will select records 11-20 because it counts 10 records backwards starting with record 20. print_r($result) onyl returns "Resource id #3" and not the actual data. On 9/19/07, T. Lensselink <[EMAIL PROTECTED]> wrote: > > On Wed, 19 Sep 200

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
On 9/19/07, T. Lensselink <[EMAIL PROTECTED]> wrote: > > On Wed, 19 Sep 2007 10:48:20 -0400, "Dan Shirah" <[EMAIL PROTECTED]> > wrote: > > Actually, the query you mentioned will select records 11-20 because it > > counts 10 records backwards starting with

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
played results being the same every time. On 9/19/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > That gives me an array of the 10 records that are being displayed every > single time. > > It's like even though the variables in my query are changing correctly > from 0

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
im Lucas <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > Hello all, > > > > I am having a problem with trying to display a set amount of records > from my > > result. > > I have verified that the correct values for my variables are being > passed to &

[PHP] [SOLVED] Page Numbering

2007-09-19 Thread Dan Shirah
WHERE my_table.column = 'P' AND credit_card_id NOT IN ( And it works like a champ. Thank you very much to everyone that helped me on this! On 9/19/07, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Dan Shirah wrote: > > Whenever the query has the NOT IN inclu

RE: [PHP] Access name of variable in $_POST array

2007-09-22 Thread Dan Parry
at the top of the script that the form posts to... > > > > print ''.print_r($_POST, true).''; exit; > > > > That will display the contents of the $_POST array and you should be > > able to figure out where everything is. > > > > By the sounds of it the

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
ng to upload I might be wrong but this would be classed as 'exploitable'... Webservers should not be allowed to read from or write to clients... Of course there is ActiveX... Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
> -Original Message- > From: Jeff Cohan [mailto:[EMAIL PROTECTED] > Sent: 23 September 2007 02:45 > To: php-general@lists.php.net > Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads > > > > Dan Parry wrote: > > I might be wrong but this wou

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
> -Original Message- > From: Ray [mailto:[EMAIL PROTECTED] > Sent: 23 September 2007 02:25 > To: php-general@lists.php.net > Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads > > On Saturday 22 September 2007 7:44:55 pm Jeff Cohan wrote: > > Dan Pa

[PHP] IF's!

2007-09-26 Thread Dan Shirah
Okay, I know this is probably a real easy fix, and I could swear I've done it before, but for some reason it's just not working. Below is my query, it does a conditional search based on info put in a form by the user. If I put in a valid letter/name for the last_name that I know is in my database

Re: [PHP] IF's!

2007-09-26 Thread Dan Shirah
ryone to wade through the trash to get to the issue. Thanks for the help, Dan On 9/26/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On 9/26/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Okay, I know this is probably a real easy fix, and I could swear I've > do

RE: [PHP] counting with leading zeros

2007-09-28 Thread Dan Parry
Can I please interject and say that I vastly respect Tedd(ddd) and Rob(bb?) and their opinions Dsn -- Dan Parry Senior Developer Virtua Webtech Ltd   Company Number: 5078356 Vat Number: 827044536   [EMAIL PROTECTED] www.virtuawebtech.co.uk 01745 354924 > -Original Message- >

[PHP] Empty Array?

2007-10-05 Thread Dan Shirah
Ah, what a lovely case of the Friday morning brain farts! I have a query that selects some data from a table based on the current ID selected. If the query does not return any results, I want it to continue to another query that will insert a record into the table. Below is what I have...but it

Re: [PHP] Empty Array?

2007-10-05 Thread Dan Shirah
Okay, gotcha! I changed it to this and it works: ".mssql_get_last_message()); } ?> Thanks! :) On 10/5/07, Aleksandar Vojnovic <[EMAIL PROTECTED]> wrote: > > I think the $lock_result is just a resource #id you haven't fetched any > data yet. True? > > Aleks

[PHP] EMPTY??

2007-10-23 Thread Dan Shirah
I am having some issues with empty(). On my page I have a text area: Comments: I then submit my page and on the following page I put the posted value into two variables. $comments = strtoupper($_POST['comments']); $check_comments = $_POST['comments']; I made two varia

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
I did a simple test like this on my save page: And it returns So, that should show me that there are no place holders, no characters, and no carriage returns for the value of $comments, correct? On 10/23/07, David Giragosian <[EMAIL PROTECTED]> wrote: > > On 10/23/07

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
} It SHOULD just bypass that and continue with my code, but instead it gives me the error, "Changed database context to Database." On 10/23/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 10/23/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > I mad

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
On 10/23/07, Nathan Hawks <[EMAIL PROTECTED]> wrote: > > > > Note: empty() only checks variables as anything else will result in a > parse error. In other words, the following will not work: > empty(trim($name)). > > > http://www.php.net/manual/en/function.empty.php

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
> > > > > "Does it look the same way if you view source?" > Yes. > > >

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
n't exist because its condition had not been met! On 10/23/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 10/23/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > doing a var_dump($_POST['comments']; > > > > returns string(0) &quo

Re: [PHP] Question

2007-10-26 Thread Dan Shirah
This is a PHP users mailing list. If you have a question, you can send it to php-general@lists.php.net and whoever can help you with it will reply. On 10/26/07, arash moosavi <[EMAIL PROTECTED]> wrote: > > I have Question In PHP Where Can I send it to Give my answer? >

<    9   10   11   12   13   14   15   16   17   18   >