Jump to content

x_maras

Members
  • Posts

    56
  • Joined

  • Last visited

About x_maras

  • Birthday 09/10/1985

Contact Methods

  • Website URL
    http://www.siteseeing.gr

Profile Information

  • Gender
    Male

x_maras's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, I decided that I must learn a framework so I choosed zend framework. I installed the zend community server and tried to follow some tutorials. The first thing that I tried to do was to use the zend tools and the command "zf create project" in order to create the folder structure automatically. I couldn't do it for the directory htdocs so I created it in another directory and I just transfered it to the htdocs. My first project was called "helloworld" ... So I went to the following directory helloworld\application\views\scripts\index and I changed the content of the index.phtml in order to show in my browser something like "Hello zendframework world". Unfortunately when I type localhost/helloworld in my browser showed only the directories in this directory. I checked the .htaccess and it was as it should be. 1st Why my command didn't create the directory structure in the htdocs? 2nd Does anybody know why I couldn't see the helloworld message that I wrote in the index file located to the directory that I mention above?
  2. OK This was perfect. 1000 thanks
  3. Hi, I am inserting some numbers, which I get from the url, into a database. In the database the type of these fields are both "float(11,7)". My problem is that the number changes a bit when it goes to the database. It changes in its last digit but it is important for me even this digit... here I ve got an example of the numbers 40.6366335 22.9522282 (these are two numbers that I get from the url) 40.6366348 22.9522285 (and these are the same numbers stored in the database) Is there a way to have in the database the first numbers? Thanks, Dinos
  4. Thanks a lot!!! That worked perfectly
  5. Yes of course I do! But I don't know if I will ever use this code in an online application. I just want to figure out why this happens
  6. Hi, I am trying to learn ajax so I decided to make a simple captcha. The good thing is that it works the bad thing that it has an one click late response... I will try to explain you what I mean with one click late response. I have a a form and instead of submit button I have a normal button which onclick calls 2 functions. <input name="submit" value="Eisagwgi" type="button" onclick="testCaptcha(); calculateLatLng();"/> The first checks the captcha and if its right then stores '1' in a global var. The second one checks this global variable (and some other checks and calculations) and if the value is '1' then inserts some data in a database. else shows a message next to the captcha box. So when I press this button and the captcha is wrong it shows the false message. If the the inserted captcha is right in the first click shows the false message and if I click again the button shows the correct message and continue with the database thing. I would really appreciate it if someone could explain me why this happens. I could also post my code (it is not a secret) but I didn't want to make the already big post, bigger. Thank you in advance, Dinos
  7. Worked perfectly! Thousand thank you! Can I also ask something? The parameter in '~\s+~', what does exactly?
  8. Hi, I want to read a file which is of unknown format. It has experimental data in rows and columns. The first like has the names of each column and then in each line are some numbers. Between every word or number result there are spaces, but in some there is one space in other 2-3 and in some even 4-5. an example of how the results are in the file is 167160 99999 19960101 57.0 24 52.7 24 1002.5 24 1000.7 24 6.0 24 10.1 24 22.0 30.9 61.5 53.6* 167160 99999 19960102 57.3 23 49.5 23 1003.6 23 1001.8 23 7.9 23 3.3 23 7.0 999.9 62.6 51.8* 167160 99999 19960103 54.9 24 45.7 24 1002.6 24 1000.8 24 7.6 24 8.4 24 15.0 999.9 57.9 51.8* So I dont know how i would be able to read this file and work with the columns I want to. I would appreciate some help in this.
  9. Thanks for all the help. Actually I uploaded the files that do the insert in my webhost and it inserts properly the data. The problem was only in my localhost (working on wamp). Can the the problem be in the settings of the database in my localhost?
  10. My new problem now is when I insert the some data to the database then they are inserted like ???????. my php files are utf8?
  11. 1000 thanks!!! after adding this it worked! Thanks again! :D
  12. Hi, I'm making a script and I m using for first time greek characters. I started to write a simple drop down menu that loads some city names from the database. The names are in Greek in the database and the database is set in utf8_general_ci, but in the drop down was appearing only some "?????????" question marks. I also add this in the code in the head part <meta http-equiv='Content-Type' content='text/html; charset utf-8'/> and finally I added this in the file I make the connection with the database mysql_query("SET NAMES 'utf8'", $conn); after the final addition the characters changed from question marks and now the drop down appears like this I think I m close to solve it, but probably I m missing something. If anyone knows something I would appreciate it. Thank you in advance!
  13. Hi, I want to append 2 xml files they are similar but not the same and I want to append them. The first contains some more nodes from the second but they have the same structure. e.g. <items> <item> <node1></node1> <node2></node2> <node3></node3> <node4></node4> <node5></node5> </item> <item> . . . </item> . . . </items> What I want is to take all the item nodes from the second file and to append the in the first file as childs of the "items" node. Any tips would be appreciated! Thanks in advance, Dinos
  14. Hi, I have a table with two cells in each raw, in the first cells some content and in the second a button showing some charts. I want to make a button, so someone can copy the whole content into clip board. I thought to place an id to each cell and then copy the content of the cells... There is where I need some help. I found some javascript functions, but not working right for me. Any help would be appreciated
  15. no the images/available.png is a relative path from where the php file (the included one) is. In the same folder is also the css file and I use the same path for the css too. e.g td.example { background-image: url(images/example.png); } and this works. After reading your post I tried a relative path from where the wrapper is but nothing. I tried something like this before a couple of weeks with joomla and everything was working fine...
×
×
  • 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.