RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
try file_exists
-
[SOLVED] Zend Framework - n00b installation issue?
RichardRotterdam replied to deerly's topic in Frameworks
You'll find out soon enough it's all PHP so it should work. Hope it works. -
[SOLVED] Zend Framework - n00b installation issue?
RichardRotterdam replied to deerly's topic in Frameworks
if you have the following structure |-- application | |-- Bootstrap.php | |-- configs | | `-- application.ini | |-- controllers | | |-- ErrorController.php | | `-- IndexController.php | |-- models | `-- views | |-- helpers | `-- scripts | |-- error | | `-- error.phtml | `-- index | `-- index.phtml |-- library |-- public | `-- index.php `-- tests |-- application | `-- bootstrap.php |-- library | `-- bootstrap.php `-- phpunit.xml Then the public folder is where you usually place your php and html on your webserver as you would if you weren't using a framework. only it has a different name on your webserver probably http the rest you place outside that folder so it isn't directly accessable. That would be logical. And guys if I am totally off here please correct me.. -
[SOLVED] Zend Framework - n00b installation issue?
RichardRotterdam replied to deerly's topic in Frameworks
Have you tried developing on a localhost using zend framework? If not try I suggest you try that first. Also you might want to look into setting up a virtual host. That was one of the issues I had starting with CakePHP and ZF. As for installing ZF ,in the ZF download file there should be a batch and shell script included. You can use that to create the startup folder structure and put the files in the right places(the batch is for windows and shell for a *nix based OS). Once you have it running on your local pc it shouldn't be to hard to copy it to your webserver. The installation procedure is actually quite well written on the ZF site though. http://framework.zend.com/docs/quickstart -
Cant figure why this mysql giving me a errorr?
RichardRotterdam replied to Monkuar's topic in PHP Coding Help
just looking at the following query in your error it seems you forgot a single quote INSERT INTO ibf_itemshop_inventory(productid,memberid,paid) VALUES( '10','1','0') and btw if the id's are only suppose to be numbers/integers your better of checking if those values are indeed numbers/integers instead of using mysql_real_escape_string -
Uhm a couple of questions for you. 1. why are you using sessions it doesn't seem you really need it. 2. why are you using enctype="multipart/form-data" I don't see you are using any file upload. 3. What is it that your script is exactly supose to do? To be honest (and hope you don't take it as a offence) I think your script should be rewritten completely.
-
What ever the funk it is hope he'll stick around. He seems quite knowlegdable and I think he would be a loss for this community
-
Could you eleborate that? are you using a form if ($user =="") { echo "<div class='error'>Wrong username or password combination! You entered $user, $passwd.</div>"; } Hope this is for testing purposes echoing out passwords is not such a good idea
-
Couldn't agree with you more peace man
-
questions about the path of a php programmer
RichardRotterdam replied to talper's topic in Miscellaneous
As in many threads that I read in which some asks if learning a certain web language/programming language is required, I miss the motivation. In your case, why do you want to learn PHP? If you want to develop websites then certainly knowing HTML and CSS is necessary. What job is it that you seek? Is there a difference between a bird and a chicken? All chickens are birds but not all birds are chickens (even if I call all birds chickens). I think it's safe to say that the majority of webdevelopers know more then one language and not just PHP. Maybe you meant:"Is there a difference between a webdeveloper and a webdesigner?" In that case there certainly is. The webdesigner specialty is usually CSS and HTML along with some drawing tool such as photoshop. There is even differences between webdesigners that specializes on usability where others are specialized in the looks. The webdeveloper knows how to make it work(to put it very short its way more then that). Do note that my description is very compact and simplified there is way more to it. As for knowing a bit of both worlds, even though the webdeveloper and webdesigner play different roles, they both need to communicate with each other and it's a good thing when you both speak the same language. -
Looking at your code it seems to be an ajax function. I see that it will always alert "hello" so I don't see how that is a problem. Also i see a global var named http what's the jscode above your function insert? If I am correct it should be something like var http; if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari http=new XMLHttpRequest(); }else if (window.ActiveXObject){ // code for IE6, IE5 http=new ActiveXObject("Microsoft.XMLHTTP"); }else{ alert("Your browser does not support XMLHTTP!"); } Two other things: 1. I don't really see the point for using two functions instead of one here. 2. Can you be a little more descriptive on what your code is suppose to do and what it is that goes wrong?
-
Yup you should read up on those it doesn't seem you have a full understanding of what they are yet. You might also find ORM(object relation mapper) of interest.
-
Well ..... do you really want a dog to attack someone when you are not around. What if a dog attacks anyone that is not you. Imagine you have a kid over or someone that is really dear to you. However the dog just see that person as a trespasser and attack that person. Could you live with that?
-
Google up "ugliest dog". Come to think of it I'd love that one and teach it to kiss me mom or anyone that visits me.
-
I say get a dog like this *removed* Just the sight will scare someone off Well then again I think it's cute wouldn't you just love to be kissed by this cuty
-
Are you sure? I see a preload function but I do not see the function being called. Have you done a test clearing the cache of your browser while testing?
-
Reading through your post I notice you have 2 problems. 1. the javascript pre-load thing 2. image path issue To receive an answer which suits your needs I suggest you clarify your specific problem a bit more concering your image preloading. The thing is the first time an image get's loaded into your browser it will need to load that image, pre-loading won't speed up a thing. There is no magic javascript recipe to make imageloading faster.Why do you need the the image to be pre-loaded? Is there a javascript function depends on the image that needs to be loaded first? The image path issue I find a bit confusing can you clarify that?
-
I don't see how a div tag is related to a php function What exactly do you mean ???. Do you know the difference between clientside and serverside?
-
check your hyperlinks to the fullsize images. if i enter that directly into the urlbar of my browser I don't see a fullsized image
-
Ah so you have html stored in a string. As you posted in your comment you could use a regular expression. You can also use DOMDocument
-
unix shell script to DOS translation
RichardRotterdam replied to loquela's topic in Other Programming Languages
Use batch or any of the other options previously mentioned. That or use some kind of emulator -
I don't really see how learning power chords as the first thing would define a guitarist as a bad guitarist. Sure if power chords is the only thing you know that doesn't mean you are worth being called a guitarist but someone can certainly grow from there. In the end it's all about the fun someone has from learning a specific instrument. That fun might turn into loving that instrument and have that as a motivation for learning more about it. It's usually the passion for an instrument or maybe even always that will make someone grow from rookie to master. I myself started out with power chords and just trying out certain melodies I was familiar with. Before that I learned classical piano. I might not be a guitar virtuoso but far from sh*tty
-
Yeah true it's more then one chord but for simplicity it's pretty much the same grip for the majority of 'em. As for the strain everything you try on the guitar hurts the first week especially on steel strings. You're fingers tops will loose slight sensitivity. strain from chords you're shoulders might even cramp from holding the darn thing the wrong way. nah you could still do a lot of variation with those such as muted palm. Besides that it's an easy way to start if you're too lazy to learn the basic ABCDEFG chords indeed
-
As far as I've seen most people start out by learning how to play a power chord accompanied with a beer. A lot of the basic rock songs use that one chord and that chord only. As for the beer , yeah well that just gives you the illusion that you are playing better.