Skip to main content
3 votes
Accepted

Pset8 search.php permission issues, warnings & fatal error - fail to open CS50.php

@Vitale: I feel your pain! Permission errors can be really frustrating. You are impatient to get back to work, and in your haste, you reach for chmod -R 777 *, the biggest sledgehammer in your toolkit....
hotwebmatter's user avatar
  • 3,050
1 vote
Accepted

How to make search.php return results that are more relevant

It's as simple as turning this and obviously I would prefer "Cincinnati, OH" to be the first result. into computer code :) Kinda moves into the realm of computer learning/intelligence. First ...
DinoCoderSaurus's user avatar
1 vote
Accepted

pset8 - /search - I'm not getting any json outputs

If q= "Boca Raton, Florida, 33496" as in the commented example, program will take the elif branch, and a= db.execute("SELECT * FROM places WHERE place_name LIKE :q", q=q) will indeed return an empty ...
DinoCoderSaurus's user avatar
1 vote
Accepted

PSET8 search LIKE and MATCH SQL

The problem with the first sql is because of the action mentioned in this comment in CS50.php [emphasis added]: // replace placeholders with quoted, escaped strings You could add a var_dump($query)...
DinoCoderSaurus's user avatar
1 vote
Accepted

PSet8 Permissions Search

The lines referenced by the error messages appear to be in the area of CS50.php where it is looking up the configuration file. Make sure the permissions on pset8/includes/config.php pset8/config.json ...
DinoCoderSaurus's user avatar
1 vote
Accepted

problem with SQL sintax for MATCH AGAINST in pset8

"new" is a mysql stopword. Which I have interpreted to mean "noise" word, and thus ignored. It is also length 3; mysql minimum fulltext word length default is 4. If you try a MATCH against '+New' only,...
DinoCoderSaurus's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible