traq
-
Is it good to use header.php?
first, to clarify: you cannot "convert HTML to PHP." PHP is not another way to mark up webpages: it is a programming language that is very good at writing HTML markup. well i meant designing the whole working layout in html…
-
Is it good to use header.php?
Should I use a common Header.php and Footer.php Sure, many people start out learning PHP this way. I want to create a fluid Layout so is it ok to use Boilerplate.css [Dreamweaver's Fluid Design option] ...I was trying to understand…
-
how to insert config.php data from install.php
I mean no offense. This has nothing to do with what language we all speak. If you want an answer to a question, you need to ask a question. If you don't, then everyone is simply left to guess what you want. They probably won't be right…
-
How to secure your own Control Panel
If someone tries to access directly the "profile.php" page, they will get a 404 error(faked by me). Not really "faked," but I understand what you mean. But why? Do you object to simply telling the user that they need to lo…
-
How to secure your own Control Panel
My point was to make it impossible for them to acces my database or server-side. I don't want to do that just in case they hack in. I don't want them to hack in. One more thought on this subject: do you have a private server? with a …
-
Change Status of a Message from Read to Unread
@Hillcrest1674, it is less confusing if you post only one thread per topic. Change Status of a Message from Read to Unread
-
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…