PHP Classes

Missing files

Recommend this page to a friend!

      Wizard  >  All threads  >  Missing files  >  (Un) Subscribe thread alerts  
Subject:Missing files
Summary:Missing files
Messages:10
Author:Nuno.Santos
Date:2005-02-03 12:16:31
Update:2005-03-24 08:36:36
 

  1. Missing files   Reply   Report abuse  
Picture of Nuno.Santos Nuno.Santos - 2005-02-03 12:16:31
Heya,

Somo files that are required by the script are missing:

include_once("include/misc.php"); // for val function
include_once("include/log.php"); // for log object

:((


  2. Re: Missing files   Reply   Report abuse  
Picture of Paulo Paulo - 2005-02-03 15:12:55 - In reply to message 1 from Nuno.Santos
There are other files missing:

calendar-win2k-1.css
default.css
calendar.js
calendar-default-lang.js
calendar-setup.js
comboselect.js
tooltips.js


  3. Re: Missing files   Reply   Report abuse  
Picture of Dave Dave - 2005-02-04 06:29:56 - In reply to message 2 from Paulo
Hi guys

Thanks for the interest. Sorry for wasting your time! This class turned out to be a bigger monster than I originally thought.

I realised the other day that I had not finalised the uploads, that there were some things missing (though I have to admit, I didn't realise it was so much! Sorry again), but I couldn't connect to the phpclasses website -- I'm from South Africa, and our internet connection here, especially to overseas sites, can be quite bad sometimes.

The two php files have been uploaded today.

Comboselect.js is very much a work in progress -- the aim is to provide a dhtml equivalent of a comboselect box, a combination between an entry and a select. It works fine for one comboselect, but i've noticed something wierd for multiple comboselects on a page. Most likely an id of a div or something that is funny. I'm uploading now as well.

tooltips.js is a modified version of the tooltip code found on knoppix.org. It provides dhtml tooltips for any element and all sub-elements on a page.

I'll upload the default.css and the popup date selector php file (datepicker.php). The dhtml date selector files are *not* my work, but are released under an open license. I will upload the ones used in the class, but I also suggest that you keep tabs on the original author's work (Mihai Bazon, http://dynarch.com/mishoo/) -- if you have some spare cash, please donate some to him, as his work is outstanding.

Please note that calendare-default-lang.js is a symlink on my system to calendar-en.js from the jscalendar project. This is to make language modifications easy to the bigger system I am building here. You might notice calls in the wizard class to functions "msg" and "msg_exists" -- these are php message catalogue functions that I wrote. It's not necessary to have these message catalogue functions defined -- the default english will be used for the few places where the wizard defines readable strings for the user.

Also, please note that the full distribution of jscalendar includes other styles / colors and many language files. I'm not going to distribute them here, since the files will just get out of date.

=== some time later ===

Ok, i've addressed all the queries that I've seen. Please don't hesitate to add to this messageboard if there are any other problems!

  4. Re: Missing files   Reply   Report abuse  
Picture of Johnnie Dennis Johnnie Dennis - 2005-02-04 15:29:44 - In reply to message 3 from Dave
I just downloaded the new version and it looks like you're heading in the right direction. However - I did get this:

Warning: main(global.php): failed to open stream: No such file or directory in C:\WebServ\wwwroot\htdocs\Wizard\include\misc.php on line 2

Any clues?

Keep up the good work,
.jd.

  5. Re: Missing files   Reply   Report abuse  
Picture of Dave Dave - 2005-02-07 06:05:25 - In reply to message 4 from Johnnie Dennis
Thanks for the notice.

global.php actually just defines some global vars for the rest of the system from which the wizard code is ripped, so it's not essential to the wizard code.

You can download the (effectively) blank (but commented) global.php that I uploaded today, or you can just comment out the inclusion. The choice is yours.

Someone else also asked me about the post page. Yes, it *is* meant to be that simple. It's just a demonstration that the post works ok. So it *is* meant to just be a dump of the post array. I'm not imaginative enough to do something fantastic with the data. Sorry!

  6. Re: Missing files   Reply   Report abuse  
Picture of Robert Artigas Robert Artigas - 2005-03-10 19:24:10 - In reply to message 5 from Dave
Greetings -

Good News:

After changing the includes from "include/filename.php" to "filename.php" I got the test program to function.

Even though the images are missing the up/down when clicked are working.

Bad News:

The images are missing. So the up/down, calendar, etc. images do not show.

For some reason, the javascript is not executing on the date when the missing image is clicked.

Any assistance will be appreciated.
Thanks In Advance.

Roberto Artigas

  7. Re: Missing files   Reply   Report abuse  
Picture of Dave Dave - 2005-03-15 08:26:32 - In reply to message 6 from Robert Artigas
That might be because the libraries are *not* expected to be in the current directory of the calling script -- that would be cluttering things a little. Most people would place these inclusions in a directory as simply named as "include", to be found in your include path. Unfortunately, I can't seem to see a way to make the file structure apparent -- I can't set the path of the file in the generated tarball/zip file (unless I'm missing something here).

The images are a little more of a hassle -- I'll upload the images that I'm using, and I would expect that you would place them in an images/ directory, to be found off of the directory where the calling script is executing.

The good news for you, however, is that you should be able to use whatever image you would like for the date control. Specify the index "button_img" in the extra array that can be placed into the input specification. Still, I agree that I should have included these images in the file list -- like I said a post or three upwards: this class turned out to be more of a monster than I anticipated, and I've been sorting out dependancies for a while (:

  8. Re: Missing files   Reply   Report abuse  
Picture of Robert Artigas Robert Artigas - 2005-03-18 16:45:33 - In reply to message 7 from Dave
Greetings - Thank you for the update.

The reason for having everything in one directory is for testing purposes. Once I test and figure how everything works then I move it to the appropiate directories.

Regards,
Roberto Artigas

  9. Re: Missing files   Reply   Report abuse  
Picture of Robert Artigas Robert Artigas - 2005-03-18 17:16:38 - In reply to message 8 from Robert Artigas
Greetings - My apologies if this question is naive.

I am still not able to get the calendar button to work.

This might be some not understood concept on my part since I am ready new at PHP. Any sugestions on approach so I can learn to solve this problem would be very much appreciated. A pointer to some URL from where I can read up and figure out this would be usefull.

Thanks In Advance.
Regards,
Roberto Artigas

  10. Re: Missing files   Reply   Report abuse  
Picture of Dave Dave - 2005-03-24 08:36:36 - In reply to message 9 from Robert Artigas
If you are using the inline calendar (the default, which you will most likely be using, unless you actually changed the datepickstyle to popup in the wizard instantiation), then things should just work ok.

I've just done a debug run over the popup date selector, and I've found a horrible bug, which I've fixed -- I just hope I can upload the patched file now, since my internet connection is terribly shlow at the moment. So if you were trying to use the popup date selector, that might have been the problem: there was an unterminated string literal in the output javascript for the button.

In any case, the problem was a javascript one, not a php one. The lesson here is to get Firefox, and use the Javascript debugger which comes in firefox -- it's a lot more helpful than m$'s version in IE, which I have found to be terribly unhelpful.

Also, with respect to how you choose to check out the files in an archive -- that's fine, however you want to do it. But realise that if you don't lay out your files in the same structure that I use (which has now been explained in the latest version of wizard_documentation.html), then you can't expect things to work -- there are a number of interdependant files, which all expect each other to appear in pre-ordained relative positions, and if you change the positions, you can't expect the scripts to find each other. Still, whatever method works best for you (:

Try getting the latest version of wizard.php, datepicker.php (fixed for smaller popup) and wizard_documentation.php (as well as the images you want) or just get the full archive (remember to layout the files as instructed). But give me a little while to update wizard.php -- it's taken about 15 minutes just for this page to load.