Jump to content

esport

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by esport

  1. Thanks heaps gizmola it works. Is it possible to have both of these rewrites working at the same time. ie. for both ports
  2. Hi Guys, I have just had an SSL certificate installed to my site. It was installed to the subdomain. I have a rewrite on the sub domain so http://orderonline.mydomain.com.au uses web servers from the same server but in another account. This rewrite work fine. RewriteCond %{SERVER_PORT} 80 RewriteRule ^orderonline/?$ /~dsoft/themes/RIV00/ However I can't seem it work with the https. The https is directed to the subfolder 'orderoline'. How do I do a rewrite for the https to point to the same directory as /~dsoft/themes/RIV00/ Thanks in advance. Daniel
  3. Hi, I am developing a website for a client an when viewing the website in ie6 the background image doesn't appear and instead is replaced with a grey background. Here is a link to the site http://www.dairytechrefrig.com.au/new/ If you view it in FF or any other browser including ie but not ie6, it appears correctly. I have attached a screen shot of the website in what it looks like in ie6. Here is code i am using. #middle{ background-attachment:fixed; background: url(../images/middle.jpg) no-repeat scroll left top transparent; background-repeat:no-repeat; position:relative; height: 231px !important; margin-top: 52px; width: 969px; display: block; overflow: visible; } [attachment deleted by admin]
  4. Hi Guys, I have a query with a sub query in it. I runs extremely slow and i was wondering if there is an alternative way to optimise it. I want to count the number sold between 2 dates and grouped by state. Here is what I currently have SELECT erg.Manufacturer (SELECT SUM(NumberSold) as num_sold FROM erg_data erg_vic WHERE erg_vic.DeliveryState = 'VIC' AND erg_vic.Manufacturer = erg.Manufacturer AND (DeliveryMonth='12' AND DeliveryYear='2010')) AS num_sales_vic , (SELECT SUM(NumberSold) as num_sold FROM erg_data erg erg_nsw WHERE erg_nsw.DeliveryState = 'NSW' AND erg_nsw.Manufacturer = erg.Manufacturer AND (DeliveryMonth='12' AND DeliveryYear='2010')) AS num_sales_nsw FROM erg_data erg WHERE (DeliveryMonth='12' AND DeliveryYear='2010') GROUP BY erg.Manufacturer All information is from the 1 table. How do i count and group at the same time without the sub queries. Hope this makes sense. Thanks in advance Daniel
  5. thanks for your help thorpe. I will give it a go and get back to you. I have no experience in web services so its all new to me. I am a web developer and have been programing in PHP for many years. I did a little bit of research and i am assuming these lines go in the file httpd.conf. Now I'm using a hosting company to host my sites, so i will need to get in contact with them to get me access to this file. Thanks Daniel
  6. Thats what I was planning to do. I was hoping to have the application in a central point which each account will access the application. However each account to appear as if they are on there own server rather than appearing on the central point in which they access the application from. Im still a little confused how to go about this.
  7. hi thorpe, thanks for your prompt reply. I'm going to use a VPS to host the application. I'm not sure exactly what you mean or how to access the application from other accounts on the vps. However there are going to websites that don't sit on this vps. Is this not possible for these domains? Daniel
  8. Hey guys, I'm developing an online ordering system portal with multiple accounts. Each account will access the one system so if I make any updates on the system, all accounts will receive the updates.I'm thinking to have each account as a sub domain. eg. shop1.example.com shop2.example.com Each account will be accessed by external websites. I'm not sure if this is possible or how to go about this. How do I make it so when they go to shop1.example.com it will display there website. So if there website was shop1.com and they go the ordering section, how would i make it so shop1.example.com will be aliased as shop1.com. This is so when people go on there website it seems like the ordering system is on their website account not on another website. I hope this makes sense. Any advice would be much appreciated. Thanks Daniel
  9. I managed to work it out. I did sub queries. eg. SELECT c.id as client_id, ( SELECT COUNT(p.client_id) FROM projects p WHERE p.client_id = c.id ) AS num_projects, ( SELECT COUNT(o.client_id) FROM client_opportunity o WHERE o.client_id = c.id ) AS num_opportunities FROM client c
  10. Unfortunately it didn't work. It produces the same count value for both tables. It seems like it produces the highest count value. Thanks Daniel
  11. Thanks for your help. I will have a go and let you know how i went. Daniel
  12. Hi Guys, I have a table of categories. I want to display all the categories. I also want to display how many times they appear in 2 other tables. I could do 2 more queries to count the number of times they appear, but i was wondering if i could do this in 1 query so I could order them asc and desc by the number of times they appear in other tables. Thanks Daniel
  13. Does anyone have any ideas? I have no idea why this error is being produced? What causes this error. Its passing the file across.
  14. Here is the code that calls the image upload class and attached is the image class file $upload_class = new Upload_image; $upload_class->temp_file_name =$_FILES['photo']['tmp_name']; $upload_class->file_name = $photo_name; $upload_class->upload_dir = $image_url; $upload_class->max_file_size = 100000; $upload_class->max_width = $widthArray[$i]; $upload_class->max_height = $heightArray[$i]; $upload_class->extension_array = array('jpg','jpeg','jpe'); $check_ext = $upload_class->validate_extension(); $check_size = $upload_class->validate_image_size(); $i++; $upload_class->upload_image(); [attachment deleted by admin]
  15. Hi Guys, I have an image upload script that was working fine on one server and now is producing errors on another. The function that I am using is: getimagesize() and is producing the error message: Filename cannot be empty in Now the php version is 4.4 GD library is installed and enabled. Not sure what causes this error. I echoed $_FILES['file']['tmp_name'] so I know there is something being passed to the function. ?? Any ideas. I have done a little research on the forums and net but cant find an answer. Cheers d
  16. I have attached the php file to the post. not sure if it will help. [attachment deleted by admin]
  17. Hi, No I can only post a certain number of form elements/objects to the point the rest are ignored. So basically the form is not 100% completing the submission or when the data is being processed it only allows a certain number form objects. I haven't worked out to how many the server can accept before ignoring the rest of the data. It hit the point around 300 form objects being posted before I start noticing it. Weird gear huh?? I know its a lot of of form data being processed but I'm not aware if there is a limit. I have emailed the web server guys and still awaiting a response.
  18. Thanks heaps for your advice. I will get back to you and let you know how I go.
  19. It seems like it cuts off the last of the form elements that are being posted at a certain point.
  20. Hi Thanks for your reply, I printed the post variable out, it prints the value out successfully, only until I have reached a certain point of lines of adding a new lines, the print_r statement returns blank. I have for example 10 form elements per line, with very little data in each that is being posted. When it reaches 30 lines (so you can say there are 300 form elements being posted), the last elements of the post don't seem to be received. I haven't yet determined to which point they are cut off. Im working on that now. My post_max_size is set to 8M.
  21. here is the form def. <form action="<?= $_SERVER['PHP_SELF'] ?>" method="POST" name="expenses" enctype="multipart/form-data" >
  22. Hi guys, This is a strange one that I haven't ever come across. I have a loop that generates rows of form input fields. echo '<table>'; for($i=0; $i<$num_entries; $i++){ echo '<tr>'; echo '<td><input name="expense_details[]" type="text"></td>'; echo '<td><input name="expense_amount[]" type="text"></td>'; echo '<td><input name="expense_date[]" type="text"></td>'; echo '<td><input name="expense_id[]" type="text"></td>'; echo '<tr>'; } echo '<table>'; The user can add or minus the amount of $num_entries before submitting the actual form. However I can generate up to 30 rows before things go wierd. When I submit the form, for some reason I cant access the post data anymore. I know the form is being posted because it refreshes the page, but it doesnt look like it is passing the data across. Is there a limitation on how many form objects you can post? Any ideas would be good. Thanks daniel
  23. cheers mate, I will have a look and let you know.
  24. Hi Guys, I have .csv file that I want to extract each bit of data which separated by the comma. This is how I am currently doing it. list($part_number, $description, $brand, $rrp, $location) = explode(",", $line); However if there is a comma that is used inside quotation marks, the function 'explode', picks the comma up and throws off the rest of the data. For example 400001,"HEAD, CYLINDER",TGB,0.00 ,0 Notice the "HEAD, CYLINDER". That should not be split up. Im sure there is a way to do this by using regexp but I have never used reg exp before. Could anyone help? Thanks Daniel
  25. Hi Guys, I have stumbled across a little problem and need some guidance. I have a DIV object that is set a certain width and has a background colour. The div represents a horizontal graph. Within the bar, i want to have more bars, I have inner DIV objects inside this container div that are positioned within. Example <div style="width:20px; height:30px; background-color:#00FFCC"> <div style="height:100%; width:2px; position:relative; left:40px; float:left; background-color:#00660;"> </div> <div style="height:100%; width:2px; position:relative; left:42px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:44px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:46px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:48px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:50px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:52px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:54px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:56px; float:left; background-color:#006600;"> </div> <div style="height:100%; width:2px; position:relative; left:58px; float:left; background-color:#006600;"> </div> <!-- This div is being pushed below because the total of widths of the inner divs is greater than container div causing it to be pushed below --> <div style="height:100%; width:2px; position:relative; left:60px; float:left; background-color:#006600;"> </div> </div> The last div is being pushed below because the total of widths of the inner divs is greater than container div causing it to be pushed below to new line. The reason I need to keep the container div a certain width is because it represents a graph. Does anyone have any ideas how to maintain the div on the same line without adjusting the width of the container div. Thanks d
×
×
  • 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.