[PHP] Curl
Sorry for the repost but it looks like weekends are not the best time to ask questions. Does anyone know of a way to see the exact request that Curl is sending (other than just printing the variable that is posted)? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Get Rid of this Crook
Could someone that this ass of the mailing list Daryl -Original Message- From: MARIAM ABACHA [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:02 AM To: [EMAIL PROTECTED] Subject: [PHP] ASSISTANCE NEEDED Hello, I am sorry for the embarrassment this letter might cause you as we have not had any correspondence before this letter. I got your address through my nephew with Nigerian Military Chamber of Commerce industry and Mining during my research for a reliable and trustworthy partner who l can do business with though l did not disclose the nature of the business l intend to do with whoever he recommend for me. I am DR. MRS MARIAM ABACHA, wife of the late Nigeria Head of State, General Sanni Abacha who died on the 8th of June 1998 while still on active duty. I am contacting you in view of the fact that we will be of great assistance to each other likeness developing a cordial relationship. I currently have within my reach the sum of Twenty - Five Million US Dollars (US$25,000,000.00) cash which l intends to use for investment, like Real Estate Development specifically in your country. This money came as a payback contract deal between my late husband and a Russian Firm on our countries Multi-billion dollars Ajaokuta Steel Plant. The Russian Partners returned my husband's Share of USD$25,000,000.00 after the death of my husband and Lodged in my husband's Security Company of which l am director right now, the new Civilian Government have intensified their probe on my husband? Financial and oil company. In view of these, l acted fast to withdraw the US$25,000,000.00 from the company vault and deposited it in a Security Company. I have since declared the Security Company bankrupt. No record ever existed concerning the money traceable by the government because there is no documentation showing that we received the money from the Russian. Due to the current situation in the country concerning government attitude towards my family, it has become quite impossible for me to make use of this money within. Let me refer you to the front page of this day newspapers of 10th March 2001. You can check it through their website www.thisdayonline.com the present government in Nigeria had frozen and seized all our bank accounts both here in Nigeria and abroad.Thus consent l shall expect you to contact me urgently to enable us discuss in detail about this transaction.Bearing in mind that your assistance is needed to transfer this fund, I proposed a percentage of 30% of the total sum to you for the expected service and assistance, 5% for offsetting minor expenses incurred in the course of this transaction. Your urgent response is highly needed as to stop further contacts. All correspondence must be by the email address [EMAIL PROTECTED] I will give you my Tel numbers where you can contact me when I hear from you. I must use this opportunity to implore you to exercise the utmost indulgence to keep this matter extraordinarily confidential whatever your decision while await your prompt response. NB: Because of the security being mounted on the members of my family, l has decided that this transaction exist between you and my nephew Dr. Azeez Bello. Remember to include your private Tel/fax or mobile number for easy communication. Best Regards. DR. (MRS) MARIAM ABACHA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Register Globals
I would like to rewrite my scripts to work when register globals is off. The problem is that my scripts encompass several thousand files. Does anyone have any suggestions for an effective tool to help in this process? Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] replacing everything between 2 strings
look into opendir and readdir with opendir you can open a handle to a directory and use readdir in a loop to look at every file (fopen or whatever to load each file) then parse your files. readdir may help you verify the files you are working on at least have the right extension. Daryl -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 6:52 PM To: [EMAIL PROTECTED] Subject: [PHP] replacing everything between 2 strings Is there a way to replace everything between 2 given strings if it exists? Say I have: $str = "replace anything and everything in here."; Now I want to replace everything between the word "replace" and "here.", so the new string could read something like this: $str = "replace NOTHING here."; So it keeps the two end points but just replaces everything in the middle with a new specified string. Please help me if you can. Thanks. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I'm really getting annoyed with PHP
Ok, if it has worked on one machine then the problem is not "with" PHP. Programming languages always do exactly what they are told (but, unfortunately not what we think we have told them). One important difference between most windows and linux setups is is case sensitivity. Windows sees $x and $X as the same variable but Linux does not. so it could be a case issue. If you could send me the original code and errors (off list) I will be happy to look at it for you. Daryl -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 5:21 PM To: Miles Thompson; Petre Agenbag; Beauford.2005 Cc: [EMAIL PROTECTED] Subject: RE: [PHP] I'm really getting annoyed with PHP --- Petre Agenbag wrote: > If you want to "use PHP", then you must use the headers() function. > BUT, with the header function, you MUST make sure that there will be > absolutely NO output to the page before the header() function is > called, not even a space... > Otherwise, you can simply use a meta refresh... The meta tag just allows you to specify HTTP headers in your content, and most browsers try to interpret them as if they were included in the proper section of the response. Since we are all PHP users, there is no reason not to put headers in the header section of our responses. If you want to add a Refresh header, you can do something like this: header('Refresh: 3; url=http://www.google.com/'); Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I'm really getting annoyed with PHP
Well, I know I am not running the latest version of PHP but I don't believe this is accurate. I believe PHP case sensitivity is based on the os that processes the file. Can anyone clear this up. Daryl -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:41 PM To: Daryl Meese Cc: [EMAIL PROTECTED]; Miles Thompson; Petre Agenbag; Beauford.2005; [EMAIL PROTECTED] Subject: Re: [PHP] I'm really getting annoyed with PHP Daryl Meese wrote: >One important difference between most windows and linux setups is is case >sensitivity. Windows sees $x and $X as the same variable but Linux does >not. so it could be a case issue. > The two OSes do that with /files/, but PHP doesn't rely on the OS to check variable names. PHP is case-sensitive, no matter what OS it's on. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHPSESSID AND SID
This should be a simple question but I can't find the answer in the manual. is it necessary to global variables or constants in functions? i.e. function Foo() { global $PHPSESSID; global SID; // how would you do that anyway? } Thanks in advance Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Stop neurotic posting
Ok, John, I for one really appreciate the humor in your response ;>. That being said, my suggestions are as follows: When a 'helper' comes across a post that they can answer or help with they should scan their newer emails to see if this has already been done to their satisfaction. This practice is precisely why I have not posted very many answers (other than limited knowledge ;)). Maybe RTFM could be said in a slightly more kind manner. For example (add slight sarcasm where appropriate): "Please refer to the php manual on the function "virtual" at the following url php.net/virtual. You may also find the answer to this question in our list archives at . (include any other sources you think may be helpful) This list is very busy and those of us that monitor the list with the intention of helping people that are having difficulties would greatly appreciate it if you would consult these two sources before posting a question in the future. This practice usually gets you a more accurate answer in less time and frees our time so we can use it to help people with more difficult issues. Thanks, Your Name For my part on at least one occassion I posted a question to the list after reading the manual (which in that case was clear as mud) and got the "RTFM". I was tempted to respond with IDRTFM - GFY. Daryl -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:39 PM To: andu Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stop neurotic posting andu wrote: > This is a very busy list, over 100 message in a quiet day and most > people are helpful and decent, don't mind reading and learning. > Unfortunately there are some who mostly post stuff like 'read the > manual' and other shit like that. Stuffing e-mailboxes with such garbage > day after day doesn't do anybody any good even if the manual is not > being read as much as it should be. Is it too difficult to not answer > the post at all if you disagree with the content? Please search the archives... this argument has been made before. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] limiting functions
Ok, lets see if I can sum this up. I have a number of scripts that my clients (on a virtual host) can include into their PHP scripts to use my software. While my scripts need clear access to all functions (exec, eval, unlink, etc) I would like to stop my clients from having access to some of the more dangerous functions. But, I believe if my script is included in theirs it will be running from their directory and, therefore the httpd.conf file will be no good. A quick thought -- It would be nice if we had a "authorization code" in the php.ini file that the more dangerous functions (exec for example) could be forced to receive before operating. So, if I was exec'ing adduser and my security string was "123" the call would have to be exec("adduser", "123") before exec would do anything. Does anyone have any ideas as to how this may be done? Thanks, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] File upload HELP!!!
Hello, Have had similar problems with filenames containing spaces and, I imagine the & symbol might cause some problems but maybe not. Check if the file spaces are '%20', I also recommend removing odd characters with an eregi_replace statement ($filename = eregi_replace ("[^a-z0-9]","", $filename);). I think you will find that the spaces are the problem. Daryl -Original Message- From: Ian Young [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: [PHP] File upload HELP!!! Tearing our hair out here. Have been trying for ever to get files to upload. The good news. We are connecting to database and obtaining information on filename, size, type etc but no file!. Have made a tempdir d-ol/temp and have configured php.ini to reflect this.Maximum file size is the same a s maximum for server. Using the fileman script to test everything. Following error message found. Warning: stat failed for terms & conditions.doc (errno=2 - No such file or directory) in /www./d-ol/fileman.php on line 109 Warning: fopen("terms & conditions.doc", "r") - No such file or directory in /www.d-ol/fileman.php on line 110 Warning: Supplied argument is not a valid File-Handle resource in /www.*/d-ol/fileman.php on line 111 Warning: Supplied argument is not a valid File-Handle resource in /www.iysearch.net/d-ol/fileman.php on line 112 Lines 108 to 112 read as follows: $file_name = $write_dir.$input_file_name; $file_size = filesize ($file_name); $fp = fopen ($file_name, 'r'); $data = addslashes (fread ($fp, $file_size)); fclose ($fp); Hope you can help Ian J Young Principal Ian Young Executive Search 39 Palmerston Place Edinburgh EH12 5AU **IMPORTANT* *** This e-mail contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of, distribution, copying or use of this e-mail or the information in it is strictly prohibited and may be unlawful. If you have received this in error please inform us at the above address then delete the e-mail and destroy any copies of it. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sorting problem
Using the asort function will sort and keep the keys attached (there is also arsort for sorting in reverse order with the keys attached). You may already know that you will need to do something like: while(list ($key, $value) = each($arrayname)) { //$key is the array index, $value is the array value body here } to see them in the correct order. -Original Message- From: Sparky Kopetzky [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 6:07 PM To: PHP General Subject: [PHP] Sorting problem I need to sort an array and have the key 'follow' the value. I know I could splice a string, sort it, then split it again but what a pain. Is there a simpler way? Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sorting problem
ckeck out asort and arsort Daryl -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:41 PM To: Sparky Kopetzky Cc: PHP General Subject: Re: [PHP] Sorting problem On Fri, 27 Jun 2003 17:06:50 -0600, you wrote: >I need to sort an array and have the key 'follow' the value. I know I could >splice a string, sort it, then split it again but what a pain. Is there a >simpler way? AFAIK, there's no one-liner answer here. the usort() family of functions pass either the key or the value, but never both. I think you'll have to write this up yourself... depending on your data, you may find that ksort() will get it 95% in-place, and a quick custom bubble sort will get you the rest of the way. Or you could just code up your own quicksort. Alternatively, if you tweaked your data so it was a numerically-ordered array of arrays, eg array(array('key','value'),array('key','value'),array('key','value')) instead of array('key'=>'value','key'=>'value','key'=>'value') then usort() would become a useful solution. BTW, what's the data source? If it's coming from a SQL query, you can sort the data on the way in and solve the problem that way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sorting problem
David, See what you mean. I guess we need some clarification on the original question? Thanks -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 8:09 PM To: Daryl Meese Cc: PHP General Subject: Re: [PHP] Sorting problem On Fri, 27 Jun 2003 19:45:27 -0500, you wrote: >ckeck out asort and arsort I'm looking... My understanding was that the original poster wanted to sort an array by "value"|"key" ("sort an array and have the key 'follow' the value") eg 'pear' => 'green', 'orange'=> 'orange', 'banana'=> 'yellow', 'tangerine' => 'orange', 'apple' => 'green' becomes 'apple' => 'green', 'pear' => 'green', 'orange'=> 'orange', 'tangerine' => 'orange', 'banana'=> 'yellow' However, asort() produces (here, anyway) : 'apple' => 'green', 'pear' => 'green', 'tangerine' => 'orange', 'orange'=> 'orange', 'banana'=> 'yellow' It's not explicitly stated in the manual, but it seems that when the values are the same, the order of the keys associated with them is not defined. Even if it happened to produce correct output on one system, I wouldn't trust it in production code. Of course, I could have mis-read the original question... I can see how "have the key 'follow' the value" could be read as "have the key maintain it's association with the value". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] 'Cannot send Headers' Problem!! MOre..
Ok, It is not the location of the that matters here. I assume the login function included below is called from the function is_admin that is called in your code somewhere around line 54. That means that HTML has already been output (everything above line 54) and therefore the header and setcookie functions will fail. Try moving the $admin = is_admin() call above all the HTML in your pages. Maybe right after the include line. Daryl -Original Message- From: PHPSpooky [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 2:22 AM To: 'Rasmus Lerdorf' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre.. Glory! I have two files, directory.php and global.inc.php In directory.php ... this is the first line : followed by the HTML tags.. and at Line 54 begins the php code in this page.. I have tried a lot of things.. moved the incude function to the top, given all HTML statements in echo .. things like that.. nothing has worked so far. Thanks, PHPSpooky > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 28, 2003 11:50 AM > To: PHPSpooky > Cc: 'Marek Kilimajer'; [EMAIL PROTECTED] > Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre.. > > First, where is your header call? And when you do a view source on the > page with the error, what do you see before that error is shown? > > -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sorting problem
asort should do the trick. Good Luck Daryl -Original Message- From: Sparky Kopetzky [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 9:50 AM To: Daryl Meese; David Otton Cc: PHP General Subject: Re: [PHP] Sorting problem Yes, I need the key to remain associated with the value as the key links the value to a directory. Can't have files going into the wrong places. So if asort does the job, I'll try that and see if the code breaks or not. Sparky - Original Message ----- From: "Daryl Meese" <[EMAIL PROTECTED]> To: "David Otton" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 19:17 Subject: RE: [PHP] Sorting problem > David, > > See what you mean. I guess we need some clarification on the original > question? > > Thanks > > -Original Message- > From: David Otton [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 8:09 PM > To: Daryl Meese > Cc: PHP General > Subject: Re: [PHP] Sorting problem > > > On Fri, 27 Jun 2003 19:45:27 -0500, you wrote: > > >ckeck out asort and arsort > > I'm looking... > > My understanding was that the original poster wanted to sort an array by > "value"|"key" ("sort an array and have the key 'follow' the value") > > eg > > 'pear' => 'green', > 'orange'=> 'orange', > 'banana'=> 'yellow', > 'tangerine' => 'orange', > 'apple' => 'green' > > becomes > > 'apple' => 'green', > 'pear' => 'green', > 'orange'=> 'orange', > 'tangerine' => 'orange', > 'banana'=> 'yellow' > > However, asort() produces (here, anyway) : > > 'apple' => 'green', > 'pear' => 'green', > 'tangerine' => 'orange', > 'orange'=> 'orange', > 'banana'=> 'yellow' > > It's not explicitly stated in the manual, but it seems that when the values > are the same, the order of the keys associated with them is not defined. > Even if it happened to produce correct output on one system, I wouldn't > trust it in production code. > > Of course, I could have mis-read the original question... I can see how > "have the key 'follow' the value" could be read as "have the key maintain > it's association with the value". > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] UPS
If anybody has implemented UPS's shipping registration software using PHP & Curl and found away around the error "the xml document is poorly formed" when it was not please let me know how. Sorry for the lack of detail but UPS is FULL OF Lawyers and I don't want to violate the license agreement. Another question, are there any characters that would break the CurlOPT_POSTFIELDS operation. I think some characters in the input they are requesting back may be causing the failure. Thanks, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Curl
Is there any good way to see exactly what Curl is sending as a request? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Curl
Well, I have printed the variable but, I thinks some character in my post may be messing things up. So, while I know the variable I need to see if that is actually what is sent. Daryl -Original Message- From: Suhas Pharkute [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:29 AM To: Daryl Meese Subject: Re: [PHP] Curl You can form the url forst in a variable echo it for testing and then u can send variable to curl Suhas - Original Message - From: "Daryl Meese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 1:32 AM Subject: [PHP] Curl > Is there any good way to see exactly what Curl is sending as a request? > > Daryl > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] disabling functions
Can I edit the disabled_functions setting on a per directory bases. If the answer is yes, what will be the impact on scripts that: 1. are in another directory where the functions are allowed. and 2. are included into a script in the directory where it is not allowed will those functions operate when included into the disabled directory because the directory they are in is enabled? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] disabling functions
Ok, that being said how can I keep some functions available for use with my scripts and disable their use by others. Even while allowing the others to include my scripts into their own and still have the functions operate? For example, I write a script that calls exec(), my script needs to be able to run the function, even when my script is included into another users script who cannot themselves run the function. My initial thought is that it would be nice if we could declare a security string in the php.ini file. If this string is left null (the default) all functions would operate as normal. If the string was not blank, then the user would have to pass that variable into the secured functions as another argument. if the security string is set to "1234" then exec(mycommand) would need to be exec(mycommand, "1234") to work. It sucks, but we often need to be able to use functions that should be off limits to others. Daryl -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 10:28 AM To: Daryl Meese Cc: Php-General Subject: Re: [PHP] disabling functions On Mon, 30 Jun 2003, Daryl Meese wrote: > Can I edit the disabled_functions setting on a per directory bases. No, you can not do that. Due to performance reasons it won't be implemented either. Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php-general as REPLY TO
Well, what we have here is a classic business example. If PHP (and this list) were operated commercially then it would behove them to consider examining what their customers percieve as an inconvenience and remove that situation from the relationship to the satisfaction of the majority of their major customers. I am not so sure that the same basic customer service advise does not hold true here as it is the fact that people use PHP and this list that makes them living entities. Now, some questions: 1. I think the archives would better serve the PHP community as a whole if they were more complete (default to list). 2. If this were a business it would usually be unwise to suggest your customers get good equipment (a better mail system). Would you agree? 3. Is it more important to serve those people who do not subscribe (read contribute) and only use the list for their own purposes, to serve one person quickly, or to serve the entire community to the best of your ability. Personally I don't really care but, I think I would make the default "reply-all" for the betterment of the entire community. Daryl -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 4:47 PM To: Doug Essinger-Hileman Cc: [EMAIL PROTECTED] Subject: Re: [PHP] php-general as REPLY TO On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: > Having said this, I suspect that you and I will continue to disagree, > which is perfectly okay. If this list changes the default I will be > happy. If it doesn't, I will learn to adjust. One request I make is > that folk, including you, Derick, refrain from sending replies to my > email to both the list *and* my personal inbox. There's no need to > waste the bandwidth. You'll have to learn to adjust then I guess. And do those 2k really matter? Come on... Just get a good mailer that defaults to "Reply-All" (like, mutt, pine, pcpine) Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." - Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Yahoo Stuff.
Does anyone know why I get an email from Yahoo Groups everytime I submit to this list? The email comes from: Yahoo! Grupos [EMAIL PROTECTED] .com.br] and the body is: Olá [EMAIL PROTECTED], Recebemos sua solicitação para entrar no grupo BUNDAS2003 do Yahoo! Grupos, um serviço de comunidades online gratuito e super fácil de usar. Este pedido expirará em 21 dias. PARA ENTRAR NESTE GRUPO: 1) Vá para o site do Yahoo! Grupos clicando neste link: http://br.groups.yahoo.com/i?i=JahBLwdWc4CuYfaEw-x7X8UMS3Y&e=darylm%40magias oftware%2Ecom (Se não funcionar, use os comandos para cortar e colar o link acima na barra de endereço do seu navegador.) -OU- 2) RESPONDA a este e-mail clicando em "Responder" e depois em "Enviar", no seu programa de e-mail. Se você não fez esta solicitação ou se não tem interesse em entrar no grupo BUNDAS2003, por favor, ignore esta mensagem. Saudações, Atendimento ao usuário do Yahoo! Grupos O uso que você faz do Yahoo! Grupos está sujeito aos http://br.yahoo.com/info/utos.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Curl
Does anyone know if there are any special steps to get Curl to submit data in an iso-8859-1 format? Or, for that matter what the standard format for Curl is? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] An Error Tracking System
Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have also written an error handling system that emails me if certain kinds of problems arise. The problem, I only want to receive an email if the problem occurred in one of my library files and want the other developer to see the error if it is in their file. TIA, Daryl Meese Magia Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP within Frames
Ok, this is just a guess but, it is based on experience. Lets say you have the frames page (frames.php), it has two frames show_a.php and show_b.php, the code for each is simple print "$a" and print "$b" respectively. If frames.php?a=hello&b=world is called and the frame sources are set to show_a.php and show_b.php they will print nothing because they do not know what the variables $a and $b are. If you change the frame src values to show_a.php?a=$a and show_b.php?b=$b they will work. So, my question to you is do your framed pages know the values of all necessary variables? Daryl Meese, Jr. Magia Software magiasoftware.com -Original Message- From: KB [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP within Frames Hi, Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. If I run the code outside of Frames it works fine! I've can't find any decent references for PHP in Frames. Your help would be appreciated. Thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Site Replication Software
Does any one know of some good PHP software to replicate websites (allow customer's to choose a template based website, etc.) Can't seem to find anything. TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Multiple values in a form option field
Hello, See Below. -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 2:05 PM To: [EMAIL PROTECTED] Subject: [PHP] Multiple values in a form option field I have a php page that has a web form on it. I do a query to populate the options in a drop down box in the form. [code] $query_data1[1]"; } ?> [code] $query_data1[0] is a userID number $query_data1[1] is the user's Email address So when the user selects an email addres from the drop down box, the userID is stored and later writen to a database. What I now need to do is store not only the userID but the email address as well. Is there a way using a form to store 2 values using one drop down box? So basically I want to store the userID and the Email address to a variable in the form so that both may be written to different fields in the database later. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I sometimes build the value of the list option like this: Email Address Then use the split function (split("~!~", $var)) to get the two (or more) values without reliance on javascript. Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Imap function problems
Hello All, I am having some strange problems -- code I tested a while back has broken and I'm not sure why. I am receiving an email with an attachment (testing.doc). when I get the message I call imap_fetchstructure then check the length of the parts array, which is one. It used to always be (at least) two if their were attachments and zero otherwise. Now it is one and the file information (name, etc) is no where to be found. There is a new entry in the message structures parameters array named BOUNDARY, with the boundary value. If I call imap_fetchbody with a body part number of two then I get the body of the attachment but, can't get the name, etc. Any ideas? Running PHP 4.3.x Calling print_r on the message structure returns stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1 [subtype] => MIXED [ifdescription] => 0 [ifid] => 0 [bytes] => 27074 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => BOUNDARY [value] => =_NextPart_000_000D_01C3DB7A.5BC1DAB0 ) ) [parts] => Array ( [0] => stdClass Object ( [type] => 0 [encoding] => 0 [ifsubtype] => 1 [subtype] => PLAIN [ifdescription] => 0 [ifid] => 0 [bytes] => 16 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => CHARSET [value] => iso-8859-1 ) ) ) ) ) TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Imap function problems
The contents of the mail file are located below -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Imap function problems On Friday 16 January 2004 05:19, Daryl Meese wrote: > I am having some strange problems -- code I tested a while back has broken > and I'm not sure why. > > I am receiving an email with an attachment (testing.doc). when I get the > message I call imap_fetchstructure then check the length of the parts > array, which is one. It used to always be (at least) two if their were > attachments and zero otherwise. Are you sure that your message is a properly formatted one? Not one that is designed to exploit flaws in Outlook (and siblings)? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- >From [EMAIL PROTECTED] Thu Jan 15 14:21:01 2004 Received: from desktop (commons10k1.mo24.107.117.24.charter-stl.com [24.107.117.24]) by magia1.tempdomainname.com (8.12.10) id i0FLKx8O088767 for <[EMAIL PROTECTED]>; Thu, 15 Jan 2004 14:21:00 -0700 (MST) From: "Daryl Meese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: testing again Date: Thu, 15 Jan 2004 15:21:46 -0600 Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_NextPart_000_0013_01C3DB7B.4A12C3F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal This is a multi-part message in MIME format. --=_NextPart_000_0013_01C3DB7B.4A12C3F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit testing email body --=_NextPart_000_0013_01C3DB7B.4A12C3F0 Content-Type: application/msword; name="testing.doc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testing.doc" 0M8R4KGxGuEAPgADAP7/CQAGAAABIQAA EAAAIwEAAAD+ACD/ // chopped out for brevity AA== --=_NextPart_000_0013_01C3DB7B.4A12C3F0-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] xored TruStudio PHP Editor
Does anyone know how to get the "hover" functionality working in xored's webstudio/trustudio for PHP. TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [OFF] - Fraudulent web orders - any ideas?
If the problem is only with AmEx then the question is: how important is AmEx to your business? Stop accepting them or don't accept them for a little while. Just a thought because AmEx doesn't make up much of our business. Daryl Meese On Monday 23 August 2004 23:33, Brian Dunning wrote: > The plot thickens. I added AVS *and* CVM to the site - and the Amex > orders are still going through. Amex ignores CVM, and the address was > correct, so the thieves must have gotten ahold of printed statements > that show the billing address. Any idea how to combat THAT? They are > using fake IP addresses now so I can't keep up by blocking IP's. > > Your clever ideas appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP & tpop3d
If any one can help be with a PHP script that creates flat file format auth files for tpop3d please respond to me off list as this is only semi-PHP related. Actually, I already have the script but the authentication isn't working & I think it might be because I don't understand the crypt() requirements for both (and how to make them cooperate). Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Functions on File
Hello all, Is it possible to use the imap functions on a file instead of opening a mail box via imap_open? I have create virtual users and am having a large amount of difficulty getting authentication to work. Since they will be checking their email through our software, and have already authenticated to use it, I would like to just open the file then use the imap_* functions to process it. TIA, Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Online Office Suite integrated w/ PHP
Hello all, I'm looking for suggestions on what open-source office suites can be: 1. Offered over the Net as a service 2. Integrated with other apps (preferrably using PHP since the other apps are in PHP) 3. Possibly extended using PHP TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FreeBSD to Linux -- PHP Issues
Hello all, I am considering changing hosting providers and moving from FreeBSD to Linux. My question is are there any PHP related issues to moving (functions that don't work on Linux but do on FreeBSD, etc)? I doubt there are but have to cover the bases. Also, if you got any suggestions for hosts with solid dedicated server plans I would appreciate replies of the list. Thanks, Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cron Jobs and php as apache module
Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi & apache module I don't know how to do this. Any help would be appreciated. TIA Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Imap functions (imap_fetchstructure)
Ok, here it goes When I began developing in PHP a call to the imap_fetchstructure function on an email with attachments created a 'parts' array that was indexed numerically. Meaning I could say: if (count($message->parts) > 0) for ($x = 0; $x < count($message_parts); $x++) // do some processing Then I upgraded PHP. I'm not sure which upgrade changed it's workings but it definately changed by 4.3.4. Now, from what I understand the parts array is indexed with things like 0, 0.1, 0.1.1, 0.2. Worse yet, the count($message->parts) call doesn't even seem to return accurate information. In particular it behaves as though a parts array exists on messages without attachments. Enough background, is this new code "broken" or is this the way it should have behaved the whole time? If it is not-broken or has not been fixed: 1. How can I get an accurate count of the parts array, determine if attachments are present, and determine what the valid array indexes are? 2. Do you know of any email classes/applications that work with these changes? TIA, Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail header problem
Hello all, When I use the PHP mail function to send emails, with a header of "From:[EMAIL PROTECTED]"; bounced and otherwise undeliverable messages come back to the user "www", not the user I indicated the mail was from. Is this a PHP or MTA issue? Is there something I can do about it? TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php