traq
-
Encrypted code base64 Problem [Closed]
i don't have money to buy the theme That's besides the point. Regardless of how you or I feel about sneaky-looking code, if you don't intend to abide by the terms of this theme's licence, then you should not use it. Just b…
-
Encrypted code base64 Problem [Closed]
take that line and replace the word eval with print. That'll show you the raw code they're eval'ing. You say it is "malicious," what is it doing? It looks like the author is simply trying to force you to have a link to hi…
-
ul Problems in PHP
@traq, you still left that first echo there :P lol, cr*p, fixed it. thanks (Of course, this is all still assuming that, if wp_list_categories doesn't find anything, it doesn't return anything [printable] either. I don't know t…
-
ul Problems in PHP
found it. IIUC, with the args you're using, a category with no items will output an empty string. Is this correct? If so, you can do:
-
ul Problems in PHP
...and I don't use WP : ) what does the function wp_list_categories do? Can you show an example of what it outputs? Basically, my point is that, when you use echo, you've committed yourself to making a list (because you've alre…
-
ul Problems in PHP
don't use echo: instead, generate the list first.
-
Custom CMS tutorials?
Have you actually looked at the Kirby code base? I have, in fact. A few months back I was trying to solve a php5.4 compatibility problem (in the markdown parser, as it turns out), and I was also looking at adapting a twitter-login class for it…
-
Custom CMS tutorials?
Now is node.js the next generation of cms? Is it worth going that route ? node.js is not a CMS (or anything like one). node is a server-side implementation of JavaScript. It might be worth your while reverse engineering a nice simple CMS…
-
Troubleshooting for a warning:[Web App from scratch series]
Your earlier warning ("Connection failed: SQLSTATE[28000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)") was being generated in that catch block. When you tried my new exit command, we foun…
-
Troubleshooting for a warning:[Web App from scratch series]
Did you check your dsn string, username and password? Are they correct?
-
Troubleshooting for a warning:[Web App from scratch series]
Still it keeps giving me the Connection failed error. Access denied for user 'u265831516_nick'@'localhost' to database 'u265831516_first' Does it always give that error (can you ever connect to your DB, even in PHP…
-
Troubleshooting for a warning:[Web App from scratch series]
How you connect to your DB will depend on how your DB is set up. You should be able to get host/user/pass/etc. from your host.
-
Troubleshooting for a warning:[Web App from scratch series]
It's looking for a file named FirePHP.class.php in your /home/u265831516/public_html /site/inc/FirePHPCore/ directory. Does that file exist on your server?
-
Can everything that can be done with JavaScript, also be done with Jquery?
What I'm getting at is that "either/or" questions are meaningless when you're dealing with subsets. How do you define using jQuery "without" regular javascript? What's the difference between this var el = docu…
-
Can everything that can be done with JavaScript, also be done with Jquery?
jQuery is a JavaScript library, not its own language: everything jQuery can do is done in JavaScript.
-
How to remove the Empty 'space' coming from database?
nvm @pixelgrid beat me to it : )
-
Simple PHP gallery with admin management
It's more work than you think, with details you'll need to attend to (especially if you want to manage uploading and resizing images). If you don't know where to start, and don't want to hire someone, you'd be better off us…
-
Major Problem (MAMP/MySQL) - Help??
if /Applications/MAMP/Library/bin/mysql -u root worked without entering your password, that means you never set a password for root (by default, the password is blank). Besides, if you're already logged in (you already have a mysql> pr…
-
Large text files
When you say "text file," do you actually mean "text"? You say formatting is important, which leads me to suspect your files may be rich text or other document formats (like .doc, etc.).
-
Major Problem (MAMP/MySQL) - Help??
xampp (the linux version of mamp) includes its own mysql, and doesn't add anything to the path (so you can't use the command without a path). try using the path to mamp's mysql (I am guessing that it is something like /Applications/M…
-
Fatal error: Out of memory
Do you have a dedicated server? don't know That probably means you don't. Therefore, my first comment applies: You probably won't get this to work without a dedicated server. How big are the writes you…
-
Fatal error: Out of memory
Do you have a dedicated server? . How big are the writes you're making? . And why you declare variables global after defining them in a class method [?] ( @Crocodillon ) Did you try gc'ing inside your loop? Did you check …
-
.htaccess error
yes, there should be a single space. Also, you don't need two rules: just make the trailing slash optional. RewriteRule ^([-_a-zA-Z0-9]+/?)$ profile.php?u=$1
-
What Web Developer Qualifications should I look for?
Does having a knowledge with Frameworks (eg. zend, codeigniter ) a "must" requirement? ( Are you using such frameworks )? "yes": "no"; ( see what I did there ) :p Personally, I'd be more interested if they a…
-
Create a condition between SAVE and SAVE&PUBLISH
@ajnoguerra no problem. If you're not too far along, I really would encourage you to switch to the mysqli extension. It is designed with an object-oriented interface, but it also has functions for procedural coding that are very similar to t…
-
Create a condition between SAVE and SAVE&PUBLISH
okay... $title = $_POST['title']; // . . . "INSERT INTO posts ... VALUES('$post_title' ... First and foremost, never put user-supplied data directly into SQL. Your current code is wide-open to SQL injection atta…
-
Client amendments
I'm interested in learning more about "the spec", if you want to elaborate please do. -- @Crocodillon Well, "the spec" is the part that describes the goals and requirements of the project. I try to keep it in simple, u…
-
Create a condition between SAVE and SAVE&PUBLISH
I'd recommend changing your form to give "Save" and "Save & Publish" the same name (with different values, of course), so you don't have to have separate checks for them. See the code I originally posted for an ex…