traq
-
how to insert config.php data from install.php
thx alot but fopen() need 0777 permation to can open file and write on it @johncruz 's script does not involve writing to the file (in fact, he opens the file in read-only mode). how to do this ? Is this related to your chmod thread?…
-
PHP-General - Change Status of a Message from Read to Unread
Is that really hard to do ? Who knows? Depends on how sharp your coding skills are. If you have no idea where to start, my best guess is that it will be a "learning experience" for you, and maybe fairly difficult. You need to provi…
-
The usage of === in PHP
Of course, looking closer at it, that's because it appears to be set to 0 immediately. That's because octal (base 8) uses the digits 0-7. 08 is invalid, and so produces 0. @unasAquila, treating an octal number as a string won't…
-
The usage of === in PHP
So, outside of most people not being aware of the difference, are there any downsides to using ===/!==? == is a leading cause of logical (referring to the programmer's logic, not the parser's) comparison errors. In most cases, using …
-
Why does it give an infinite loop(beginner question)?
almost no one offers any explanation about how or why it's different (especially for beginners); and it follows that there are even fewer examples in code or tutorials.
-
Why does it give an infinite loop(beginner question)?
learned it from javascript, where == is arguably useless and completely counterproductive.
-
Why does it give an infinite loop(beginner question)?
Not critical here, but on a related note, I always recommend using === for comparison except in situations where you specifically want type-juggling. Example:
-
problem with chmod() function
are you running under safe_mode? Many web hosts disable system function like chmod() (some more eloquently than others). Additionally, you won't be able to chmod any files you don't own in the first place.
-
Do we need mysql_real_escape_string when we use mysqli ?
more specifically, no, do not use mysql_real_escape_string() with ext/mysqli. You cannot mix the mysql_*() functions with mysqli (functional or object-oriented styles). It may or may not throw any errors, but it will not do anything useful (and ma…
-
Friendly URL | GET parameters lost
Here's what I do - a very similar approach: .htaccess # if the filename is a "real" file or directory, don't rewrite. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # if not, take the entire UR…
-
How to pull dynamic data from a database with JQuery and display it in a webpage table?
I don't know ASP, but the first few results here look promising. JSON itself is nothing more than a text format for data exchange - just a way to serialize things to pass them back and forth (e.g., from server-side to client-side applications)…
-
How can I force email programs to show images send in html email?
If you're asking about examples of the security risks, here's a starting point. Whether you're talking about privacy (spammers know they have a good email address if you request the image from their server) or more serious security p…
-
lol no problem
i'm trying to get a badge for the author attribution instead of the two links would look better... You should try contacting the author directly to see if you can change how you credit him - we can't do that. My suggestion is still t…
-
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.