Jump to content

web2000

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by web2000

  1. Hello, I have an advanced system which has folders with up to 8 folders deep : http://192.168.0.1/webserver/dddf/dfdsfdf/sdfsdfsd/fdsfds/fsdfsdfdf/dfdsf/dfdf/sdfdf/ and it is very untidy for the user. How can i replace the url not actually go to that url but just replace it with http://192.168.0.1/webserver/ Thank you
  2. Hello, I am using the COM function to export data from PHP to Word. It works perfectly but the problem i have is that when the files are hosted on a local web server the file opens on the local web server rather than the client machine. Does anyone know how to do this on the client machine? Thanks, here is the code $word = new COM("word.application") or die("Unable to instantiate Word"); $template_file = "C:/letter.doc"; $word->Documents->Open($template_file); $current_date = date("d/m/Y"); $bookmarkname = "TODAYDATE"; $objBookmark = $word->ActiveDocument->Bookmarks($bookmarkname); $range1 = $objBookmark->Range; $range1->Text = $current_date; $word->visible = 1;
  3. Hi, Please can someone show me how to covert a US date to UK date eg mm/dd/yyyy to dd/mm/yyyy Thanks
  4. Hello, I am trying to work out the difference in months between 2 dates, can anyone help? Thanks
  5. Hi, I have got the following code to create a new word document and change the characters “” with “” but if the lengths are the same for instance “sam” and “dav” or “rag” and “dfj” it works but if the values are different lengths for eg “sam” “samasma” it doesn’t work Any help? Thanks $filename = "C:/Webspace/nich/tempdocs/agreement.doc"; $f="C:/Webspace/nich/realdocs/test1.doc"; $fp = fopen($f, 'wb'); $fp_temp = fopen($filename, 'rb'); global $T_Tenancy; $rentagreed = $T_Tenancy->rentagreed->GetValue(); $old_contents = fread ( $fp_temp, filesize ($filename)); fclose ( $fp_temp); $constants=str_replace("rent754",$rentagreed,$old_contents); fwrite($fp, $constants); fclose($fp);
  6. Hello, I have a very simple database with 2 fields, one a to date and the other a from date. Basically i want to find a calendar that can work with a to and from date rather than just one date field. Basically it is for a holiday booking system. Can anyone help?
  7. Hi, Do you know how i can also get the nocase in the list as well? Like at the moment if its 2, it will put 4, 6, 8, 10, 12 etc Anyway to get it 2, 4, 6 etc Regards
  8. You are a genius Thank you very much
  9. Hello, I have a listbox that is part of a submit form. I want this listbox to display values that are multiplied from another field in the URL. So...Basically when the page loads a parameter called 'nocase' has a value in the url, something like 6, 12, etc Say for instance the nocase parameter in the URL is '4' i want the list box to put 4, 8, 12, 16, 20, 24, And if the nocase URL parameter is 12, i want the listbox to display 12, 24, 36, 48, 60, 72, etc Please help...and stuck Regards
  10. [!--quoteo(post=374334:date=May 16 2006, 11:41 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 16 2006, 11:41 AM) [snapback]374334[/snapback][/div][div class=\'quotemain\'][!--quotec--] Sorry... your going to need to be more specific, supply more detail. You might also need to explain some of what this code actually does. Your using non standard object, how are we meant to know what they do? [/quote] Hi, I am trying to validate a label on a form, so that if the number is less than £250 it will give an error and wont continue submitting the form. Its validation
  11. Hi, On an editable form, when the user clicks on the submit button i want it to validate a label on another form and display the error on the form that has just been submitted. I am using Codecharge studio 3.1 Is this possible? I have got the following code but am having no luck If anyone knows of any alternative code please help Thank you very much [code]global $shoppingcart;       global $NewRecord1;          if (CCStrLen($NewRecord1->total->GetText()) && $NewRecord1->total->GetValue() < 250) {           $shoppingcart->Errors->addError("Im sorry, but it has to be more than 250");       };[/code]
  12. Sorry, I am a basic PHP developer. I have tried the modified code but with no luck. It doesn’t even give me errors it just display's a blank page
  13. Hello, I am trying to create a script that basically looks for a session, if it is there it will write the session value in to a text box, if it isnt it will create one using a mixture of time and ip address. It doesnt work and im not to sure why, i am not a great PHP developer Please can someone help me out here Thank you very much if (CCGetSession("username"); $shoppingcart->username->SetValue($username); else; $stamp = strtotime ("now"); $username = "$stamp$REMOTE_ADDR"; $username = str_replace(".", "", "$username"); $shoppingcart->username->SetValue($username); CCSetSession("username", $username);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.