RE: [PHP] Securing your Sites

2007-12-17 Thread Dan Parry
for supplying the source for these exploits... If I've made a mistake and compounded an incorrect situation I do apologise Dan [EMAIL PROTECTED] wrote: I want to personally thank you for 6 hours of work to remove the PHP-Back-door Trojan, that download from your site to my PC while viewing that POS you

[PHP] Problems with MIME emails and multipart/mixed

2007-12-14 Thread Dan Storm
). I cant see what I'm doing wrong. Could anyone please have a look at the two mails I've been comparing and tell me where I go wrong? The mails are located at http://pastebin.ca/815768 -- //Dan Storm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: running cmd via php

2007-12-11 Thread Dan
that exec doesn't always work some hosts have it turned off for obvious security reasons, also there's other alternatives other than exec such as shell_exec I think that's the name, etc although that's for Linux which can do a lot of the stuff that Windows can also. - Dan adam_99 [EMAIL PROTECTED

[PHP] Re: running cmd via php

2007-12-11 Thread Dan
that exec doesn't always work some hosts have it turned off for obvious security reasons, also there's other alternatives other than exec such as shell_exec I think that's the name, etc although that's for Linux which can do a lot of the stuff that Windows can also. - Dan adam_99 [EMAIL PROTECTED

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
); } And I get the error: PHP Warning: ifx_query(): supplied argument is not a valid Informix link resource I don't know if this is a step in the right direction or not. On 11/30/07, Dan Shirah [EMAIL PROTECTED] wrote: I'm not sure if we're on the same page. I have a stored procedure on my

[PHP] Re: PHP/AJAX File DragDrop

2007-11-30 Thread Dan
Unfortunatly javascript can't access the filesystem so it can't get filenames. The closest way you could do something like this would be to use Java (not javascript, totally different). It's a permissions thing, just the way JS and everything else is designed. - Dan Andrei Verovski (aka

[PHP] Re: how do i get a printout of original multipart post data

2007-11-30 Thread Dan
probably only have one), start capture. You'll now see all the packets going down the wire. Go ahead and do the post and you'll be able to see the post data. - Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
that error and how to get rid of it? Thanks! Dan On 11/30/07, Andrés Robinet [EMAIL PROTECTED] wrote: -Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 4:00 PM To: Daniel Brown Cc: php-general Subject: Re: [PHP] Calling a stored

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
to execute the procedure, right? On 11/30/07, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 30, 2007 1:39 PM, Dan Shirah [EMAIL PROTECTED] wrote: Hello all, I am having soem difficulty when trying to call an INFORMIX stored procedure with PHP. I have verified that the if() condition

[PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
a stored procedure in PHP before so I'm not even sure if I am on the right track. Any help is greatly appreciated. Dan

[PHP] Batch process PDF files -- reduce color depth and resolution

2007-11-29 Thread Dan Harrington
Hello, Does anyone know of a good PDF library that works well with PHP (or even not) that can process multi-page PDF files (I am talking thousands) and reduce their color depth from color to black and white as well as reduce the resolution. I'd like it to run well on Linux. Thanks Dan -- PHP

Re: [PHP] PHP + Amazon to retrieve book data

2007-11-22 Thread Dan Joseph
Hi Scott, This should help: http://hades.phparch.com/ceres/public/article/index.php/art::web_services::php5_soap/2 -Dan Joseph On Nov 21, 2007 7:39 AM, Scott Wilcox [EMAIL PROTECTED] wrote: Hey folks, Does anyone have any resources or links to resources concerning obtaining book data via

Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
; it is returning something like this: John Smith Bob Smith Jane Smith Robert Smith The gap between the names contains a single space . I tried to trim the results but cannot get rid of it. Any ideas? On 11/16/07, Jim Lucas [EMAIL PROTECTED] wrote: Dan Shirah wrote: Hello all, I am having trouble

Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
FANTASIC! Worked like a champ! Thank you to everyone. On 11/19/07, Philip Thompson [EMAIL PROTECTED] wrote: On Nov 19, 2007 12:16 PM, Dan Shirah [EMAIL PROTECTED] wrote: Jim, I used your suggestion and modified it a little bit. All of the names are pulled from the database

Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
into my table? On 11/16/07, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 16, 2007 1:57 PM, Dan Shirah [EMAIL PROTECTED] wrote: [snip!] if($cs_num 0) { while ($cs_row = mssql_fetch_array($cs_type)) { $cs_type2 = $cs_row['request_type']; $cs_first = $cs_row['first_name

[PHP] Loop issues

2007-11-16 Thread Dan Shirah
fingers around the right way to use it. Any help is appreciated. Thanks, Dan

Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
isn't just echoing in a loop, but defining an array of results to begin with. Then, of course, you can simply iterate over the resulting array when you display. Jeremy Mcentire Ant Farmer ZooToo LLC On Nov 16, 2007, at 1:57 PM, Dan Shirah wrote: Hello all, I am having trouble

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
Okay, so instead I should probably use: if($due_date != ) $insert2.=, due_date='$due_date'; Instead of using empty() On 11/2/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: TGIF!! I have an insert statement that checks to see if a condition

[PHP] Function return

2007-11-02 Thread Dan Shirah
TGIF!! I have an insert statement that checks to see if a condition is met. If it is, then it adds that value to the insert statement. However, when I try to run it I get the error: Can't use function return value in write context Below is a sample of what I am using which gives me the

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
Ah, okay. So I could probably simplfy it more by trimming it from the start like this?? $due_date = trim($_POST['due_date']); On 11/2/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, so instead I should probably use: if($due_date

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
in the format I want. :) On 11/2/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Ah, okay. So I could probably simplfy it more by trimming it from the start like this?? $due_date = trim($_POST['due_date']); that works; i personally prefer

Re: [PHP] Function return

2007-11-02 Thread Dan
to validate client side, none, absolutely none. Check that the date coming in is a valid date then create a date object with it, that way even if they somehow do slip past your date validation then the object just won't be created correctly. There's lots to validate. - Dan Nathan Nobbe [EMAIL

Re: [PHP] Pass Windows credentials

2007-10-31 Thread Dan Shirah
The server variable AUTH_USER contains the windows login name. If I rememebr correctly, within IIS you need to have your website setup for windows authentication. Otherwise you will only be pull the Anonymous access name for your server. I haven't worked much on Linux, so I don't know if there

Re: [PHP] Email question

2007-10-31 Thread Dan Shirah
Couldn't you just use the wordwrap function? Something like this: $my_text = This is a story all about how my life got flipped turned upside down. I'd like to take a minute just sit right there, I'll tell you how I became the Prince of a town called Belaire. $my_wrapped_text = wordwrap($my_text,

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?

[PHP] EMPTY??

2007-10-23 Thread Dan Shirah
I am having some issues with empty(). On my page I have a text area: table align=center border=0 cellpadding=0 cellspacing=0 width=680 tr td width=600 align=centerspan class=inputlblComments: textarea name=comments tabindex=39 rows=3 cols=45 wrap=soft/textarea /span /td /tr /table

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
Giragosian [EMAIL PROTECTED] wrote: On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: I am having some issues with empty(). On my page I have a text area: table align=center border=0 cellpadding=0 cellspacing=0 width=680 tr td width=600 align=centerspan class=inputlblComments

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
, 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 made two variables for the same posted value because I believe empty() does not work with strtoupper in front

Re: [PHP] EMPTY??

2007-10-23 Thread Dan Shirah
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 On Tue, 2007-10-23 at 13:20 -0400, Dan Shirah wrote: I am

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
/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: doing a var_dump($_POST['comments']; returns string(0) So the value of $comments in $comments = $_POST['comments']; SHOULD be equal to 0 or , right? In which case when I do my original

Re: [PHP] A two flavored post

2007-10-12 Thread Dan
the new JS generated link. - Dan Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10/4/07, tedd [EMAIL PROTECTED] wrote: Hi gang: I asked this question on the javascript list, but for some reason it's taking forever to post there. So, I figured that I would ask here

[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
(Query failed: br /.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? Aleksander Dan Shirah wrote: Ah, what a lovely case of the Friday morning brain

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-05 Thread Dan
in in an array in a session Dan [EMAIL PROTECTED] 10/3/2007 2:21 PM I need to retrieve a huge amount of data form a database and do so many times. To eliminate the overhead of connecting to the database and pulling down all that info over and over, I'm trying to pull it down only once

[PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Dan
to fix this problem or a more elegant solution to my huge data needs? - Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Dan
After thinking about this a while I also thought of making my own cache. The problem with that is would it be any faster or have any less strain on the server than having multiple requests/connections to the database? - Dan Per Jessen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Dan
The data doesn't change often but the querys do. Thats why I was origionally thinking of just storing the entire result in a session and just use the part of the session I needed. So caching wouldn't really work. That was something intresting though that I didn't know earlier thanks! - Dan

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

[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
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 done it before, but for some reason it's just

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

2007-09-22 Thread Dan Parry
of the variable variable assignation (which is best to be avoided :) ) 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
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 would be classed as 'exploitable

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 Parry wrote: I might be wrong

[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

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 result. I have verified that the correct values for my variables are being passed

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 2007 10:23:58 -0400, Dan Shirah

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
/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 record 20. print_r($result) onyl returns Resource id #3

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
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,10 to 10,20; the records being displayed are not updating

Re: [PHP] Page Numbering

2007-09-19 Thread Dan Shirah
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 the query. The calculation for the records that should be displayed per page

[PHP] [SOLVED] Page Numbering

2007-09-19 Thread Dan Shirah
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 included in it, I get the following error: Warning

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 turkish

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

[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: ?php $fruit = apple); $lines =

[PHP] Re: Opening a file

2007-09-05 Thread Dan Shirah
]: 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 trying to open the contents of the txt file using

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
, 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 contains a PHP page and a text file. I am trying to open

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

Re: [PHP] Opening a file

2007-09-05 Thread Dan Shirah
folder as mypage.php. mypage.php tries to pull the data contained in fruits.txt to see if the data matches toppage.php has mypage.php inserted as an include and checks for the result of $a and processes accordingly. On 9/5/07, Stut [EMAIL PROTECTED] wrote: Dan Shirah wrote: I did

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. mypage.php tries to pull the data

[PHP] Re: About Session And Cookies

2007-08-31 Thread Dan
Wow, you really need to be carefull when ever you're dealing with money, although if you're just handing the objects in a cart and passing that to a secure payment system then it's not as big of a deal. Cookies can be stolen. Sessions are vulnerable to snooping if you're on a shared server.

[PHP] Re: text to HTML

2007-08-31 Thread Dan
of paragaphs and newlines then go with Ron's solution, it'll work just fine. - Dan Ron Piggott [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a PHP command that turns text into HTML? EXAMPLE: before Hi. How are you doing? after Hi.p How are you doing?p -- PHP General

Re: [PHP] help with session

2007-08-31 Thread Dan
You should be sanatizing code here. When you save it to the session and when it's output. Look arround the newsgroups or online for info about it, it's everywhere. - Dan mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 8/26/07, Jason Cartledge [EMAIL PROTECTED] wrote: I

[PHP] Re: Which CAPTCHA is the besta?

2007-08-31 Thread Dan
... yes form scratch. If there's a one of a kind script nobody has seen it before and they probably dont' have programs to crack it. Plus it's really easy for users to use since it can be made simple. Plus then you have control over the source. - Dan Tony Di Croce [EMAIL PROTECTED] wrote

Re: [PHP] for loop inside a switch

2007-08-31 Thread Dan
Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times you're using a forloop, then the thing that you want to repeat(switch case) is INSIDE the for loop. - Dan Sanjeev N

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,

[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); = PHP

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- From: Dan Shirah

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

2007-08-22 Thread Dan Shirah
' div align='left'?php echo $deferred_wrap_comments; ?/div/td /tr ?php } ? /table ?php } ? 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

[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

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 multiple other sites but can't get it to work

[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: ?php

[PHP] Re: www.soongy.com

2007-08-17 Thread Dan
see the appeal, what is this for? - Dan Gevorg Harutyunyan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am Gevorg. I just wanted to introduce you my new PHP based work here www.soongy.com http://www.soongy.com/ . It is working on PHP and MySQL and here is used DHTML

[PHP] Re: string as file

2007-08-10 Thread Dan
Well, I have no idea what the Phython StringIO method does. Could someone explain in PHP terms maybe? Google gave me this explaining stringIO http://docs.python.org/lib/module-StringIO.html . It didnt' make much sense still after reading it though. - Dan Rick Pasotto [EMAIL PROTECTED

Re: [PHP] Code Igniter for 'novices' ?

2007-08-10 Thread Dan
Um yeah. The PHPpatterns.com site hasn't been updated for years. Plus I'm unable to find any actual content on anything there. I looked through the indexes but didn't find anything. Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] steve, though i havent used code

[PHP] Re: Forwarding $_POST[]...

2007-08-10 Thread Dan
has a specific function. Does anyone know of an easy to pass data between PHP files? - Dan Tony Di Croce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite

[PHP] Re: Object reference into variable?

2007-08-08 Thread Dan
. - Dan Sándor Tamás (GMail) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I forgot to tell you that I have to use PHP4.2 because of my web provider. Anything besides of _clone? SanTa - Original Message - From: Hamza Saglam To: Sándor Tamás (GMail) Sent: Tuesday, August 07

[PHP] Re: get domain component from email

2007-08-07 Thread Dan
yes co.uk is a tdl. - Dan Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED

[PHP] Re: get domain component from email

2007-08-07 Thread Dan
); $anarray = split(., $mailDomain); for ($i = 0; $i count($anarray); $i++) { if (in_array($anarray[$i], $TLDArray)) // if $anarray[$i] is a TDL then we move back 1 to get it's domain return $anarray[$i-1] . '.' . $anarray[$i]; } } - Dan Kevin Waterson [EMAIL PROTECTED] wrote

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Dan
Well then he needs an array of ccTLD's and pretty much anything that can follow a domain name. In my previous code change the array you're giving it to be of ccTLD's and also you might want to pass that array in through the funciton. As I said, been a while since I did PHP. - Dan Stut

Re: [PHP] get domain component from email

2007-08-07 Thread Dan
Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain

[PHP] Re: Premature Ajax-ulation

2007-08-07 Thread Dan
Ahh, the PHP newsgroup. The last place I thought I would see a refrence to a Defcon or Blackhat talk. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One of my developers saw the following article;

[PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Dan
I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something like, account created with password: whatever

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Dan
Thanks Stut and Daniel, I guess my fears were somewhat unfounded. At least in the case where you're the only one who sees the result. - Dan Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 8/7/07, Dan [EMAIL PROTECTED] wrote: I've always heard it is bad if you let

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Dan
anything. I'm not doing any database calls, just storing what they typed in either an array or a variable and echoing it. Simple as that. Is that insecure? - Dan Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm just forwarding this as a courtesy to the list, because

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Dan
with this myself. Plus it makes users once signed up feel more special. - Dan Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one time, at band camp, Stut [EMAIL PROTECTED] wrote: Which brings me back to my earlier question of why would you want to do this? I can't

[PHP] Saving

2007-08-06 Thread Dan
Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions and a couple properties variables. But now I need to be able to save the class to a file. Of course when you re-open the file the pointers will be

Re: [PHP] Saving

2007-08-06 Thread Dan
Aww fuck! I clicked the wrong newsgroup. Sorry about that guys. Stut [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dan wrote: Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread Dan Shirah
Thanks for all of the suggestions. While I agree that I shouldn't have to write a check for stupid users, the supervisor of the employees that will be using this application is VERY insistent! I am going to try the Javascript route...too bad the javascript forums are not as helpful as all of you!

Re: [PHP] Cut text from a string

2007-08-02 Thread Dan Shirah
Maybe I'm blind, but I don't see any commas in the text you are referring to. On 8/2/07, Don Don [EMAIL PROTECTED] wrote: hi all, am trying to cut some texts from a serries of string values e.g. this is how we do (50 cents feat. the game) give it to me (nelly feat timerland) let me hold

[PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-02 Thread Dan Shirah
off using two text areas? One for the dollar value and one for the cents? Or, do you think I would be better off trying to find some kind of javascript function that would check the value upon submit? Any help is appreciated. Dan

[PHP] Re: audio recorder

2007-08-01 Thread Dan
if they could record it using their own recorder, for example on windows there's sound recorder built right in. Then they could have a few takes and upload the best one. And all you would have to do is handle the mp3 or wav upload. - Dan John Pillion [EMAIL PROTECTED] wrote in message news

Re: [PHP] Authentication

2007-07-31 Thread Dan Shirah
local on the same PC. Win2k3 server, IIS, PHP and MSSQL Server. I have PHP installed for use with ldap and have NT Authentication set in IIS for the site. This allows me to perform the transparency, but I can't seem to extract the username. On 7/29/07, Stut [EMAIL PROTECTED] wrote: Dan Shirah

[PHP] Re: need insights on encrypting and uploading ASCII file using PHP

2007-07-30 Thread Dan
decrypt it later. - Dan John A DAVIS [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] We have various labs that submit coliform sample results in an ASCII file, quoted/comma delimited. We are being asked to encrypt this file for internet transfer. We are also being asked to create

[PHP] Authentication

2007-07-27 Thread Dan Shirah
, is there a function within this family that would work? Thanks, Dan

Re: [PHP] Authentication

2007-07-27 Thread Dan Shirah
[EMAIL PROTECTED] wrote: On Fri, July 27, 2007 12:51 pm, Dan Shirah wrote: I looked on PHP.net but I couldn't not find anything suitable to answer my question. Within PHP, is there a way to pull the name of the user that is currently logged into the PC? That data is not transmitted

[PHP] Re: need help,pls

2007-07-26 Thread Dan
about good books in the newsgroups in the past, and read that. Most of these topics are covered to some extent in a good book. Also your question is really hard to follow, take a look at this http://www.catb.org/~esr/faqs/smart-questions.html - Dan esimaje juan toritseju [EMAIL PROTECTED] wrote

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Dan
only the one specific image I use this on when generating it right? - Dan Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 7/27/07, Dan [EMAIL PROTECTED] wrote: Is this header you're refering to the header of the page which contains the image, or the image itself? - Dan

<    1   2   3   4   5   6   7   8   9   10   >