Jump to content

Forki

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by Forki

  1. I made a website with AJAX and PHP for uploading and managing files. Not only files but also a lot of metadata and permissions. I have one page with a private, shared and public workspace. A form to create/modify/move/delete a folder or file is just a new layer on top of the current contents of the webpage. When a user presses submit, data is send to server thru ajax, data is checked. If OK a return message is send with an OK and the form disappears, otherwise the fields with the errors are highlighted. For a file upload I use a hidden iframe where the server sends a generated javascript: when OK form disappears, otherwise fields with the errors are higlighted. It is not just a file upload, but users has to specify a lot of metadata for each file depending on the type. For large files I need something for the users so that they can see that the upload is busy, but I would like to close the form so that the users can contunue working. For this I need the upload of the file and display of the progress bar take place in a a different window or in another frame/place. I will probably will have to use a perl-script to accomplish this, but I want to keep it as basic as possible. Just a progressbar, or maybe bytes send versus total bytesize, ... But only one file needs to be uploaded at the time. Any solutions ? Thanx, JM
  2. Are there any zend certified engineers present ? I would like to know if the online courses are worth their money. Are the teachers good ? Or do they just read from a textbook ? Can you ask questions ? Do you have a lot of contact with your fellow students ? Did you learn a lot ? Apart from the six hours a week online training, how much time do you have to spend each week learning, making homework, ... ? Does the online training prepare you for the certification exam ? When your applying for a job as webdeveloper, say you already learned PHP on your own and have a couple of months to half a year workexperience, does it makes a difference when you are a Zend Certified Engineer ? [url=http://www.zend.com/education/php_training_courses/courses]http://www.zend.com/education/php_training_courses/courses[/url] Thanx
  3. Hi, I'm studying for webdeveloper. The trainer only comments when it doesn't work, but I am also interested in comments on programs or pieces of code that work : can it work better, faster, shorter, ... I made an object to show a monthly calendar using PHP, OOP and DOM (and MySQL). If possible I would like some more experienced programmers to review/comment  my code (logic, design, code, names, ...). I hope to learn from it. For more information, an example and to download the code : [url=http://www.johan-mares.be/webdevelopment.php?htt=6&lang=en]http://www.johan-mares.be/webdevelopment.php?htt=6&lang=en[/url] Thanx, Johan
  4. A while ago I posted a question here about a calendar with a monthly overview. I downloaded a couple of examples but then I got some inspiration myself: to use DOM. A search in the downloaded examples showed that they didn't use DOM so for the moment I ignored them. I would like discuss the logic (different steps) here and get some reactions. Step 1: A correct month First I check the given month : if empty, not correct or invalid I use the current month. If correct (YYYYMM) I use the given month. Step 2:  Create an empty month (table) Using heredoc I create a table for the month. I don't know the number of rows, but I do know the number columns (7, one for each day of the week). In the thead I place a link to the previous month in the left column and a link to the next month in the right column. In the center (colspan=5) I place the month and year. In the tbody I place a row with 7 cells (th) with the days of the week, starting with monday. I close the heredoc. I put this string in a DOMDocument with loadHTML. As main node I choose the tbody (getElementsByTagName) and I append a row (appendChild). I determine the first day of the week using date("N", ...), if it is greater than 1 (=monday) I have to insert a number of empty cells. I give those cells a certain class with setAttribute. After this I use a for loop to loop through the month from 1 to the number of days in the month (date("t", ...)). For each day I create a cell with a certain class and an id-attribute (id="d01", "d" + day of the month with 2 digits). In the cell I also place the day of the month. Last, if the month doesn't end on a Sunday I have to add a number of empty cells. I save this DOMDocument in a string using saveHTML Step 3: Adding activities I put the string in a DOMDocument using loadHTML. I retrieve all the activities with the necessary data for the given month from database. I loop through this data and for each activity I determine the id ("d" + day of the month). Then I search the cell with the corresponding id. You can only use getElementById when your DOMDocument is linked to a DTD so I wrote a new function getElementByTagAndId. With this function I loop through all the cells until I find the one with the right id-attribute. The function returns a reference to this node. Next I test if this cell contains an unordened list. If not I add an unordened list, otherwise (this day has more than one activity) I refer to this node. I add a listitem with a link. The link points to a page with more information about this specific activity. Once this is done for all activities I save the DOMDocument in a string with saveHTML. Using echo or print you can show this month on screen. For the moment I am interested in reactions on the logic. I am willing to publish the code and link to an example, but for the moment it is still quick and dirty, but I started rewriting it using OOP. Johan
  5. I am kinda new here and it looks very promising, but none of your feeds passes the validation test at http://validator.w3.org/feed. That's a bit disappointing, because it ain't that hard to create a valid RSS feed. Hope you can fix this soon. Kind regards,
  6. After I chose a username and password and verifief email. When I try to login i get redirected to http://www.phpfreaks.com/feeds/comments.xml and since that is not i valid feed it shows the following error: XML Parsing Error: prefix not bound to a namespace Location: http://www.phpfreaks.com/feeds/comments.xml Line Number 18, Column 6:     <dc:date>2006-09-01</dc:date> ------------^ Johan
  7. I am looking for a script that retrieves data (workshops, courses, trainings, ...) from a database and presents it in a montly overview. For example : Augustus 2006  with a link or button to the previous and next month and then a table, 7 columns (one for each weekday) with name of weekday as a heading. When there are no activities, an empty cell is shown, when there is an activity the name is shown (as a link to more information) and the time the activity it starts. I am sure such script exists wether it is on this site, in PEAR, PHPClasses, ... but can anyone recommend a script ? thanx,
×
×
  • 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.