traq
-
Just finished the PHP class on Codecademy.com... Now what?
Do you have any suggesstions for how I can kind of create my own "Learn PHP The Hard Way?" Sure - try to follow the PHP manual. That should qualify as "the hard way." ... j/k; php.net is actually a fantastic resource. Whe…
-
How many people in here run Linux?
I'm guessing the only reason anyone keeps Windows is for Adobe Creative Suite. Am I right? -- @Joe_Temp Nope; all I need it for is IE testing. I still have Corel, but for graphics I mostly use Inkscape + GIMP nowadays. To be fair, while…
-
Web App registration methodes
Personally, I say no. Social media login - even if you fully expect everyone to use them - should be an alternative method of registration/login, not a replacement.
-
How many people in here run Linux?
mainly so I actually have a Windows somewhere, if I need it. that's what my wife's netbook is for : )
-
Just finished the PHP class on Codecademy.com... Now what?
The most I'd be willing to do is some copy and paste ...only thing is... I want to UNDERSTAND why I'm doing what I'm doing. Those would seem to be conflicting statements. As for LPTHW, agreed, great book (series). I don'…
-
How many people in here run Linux?
Ubuntu at home; plus I manage a server running CentOS. I converted after re-installing WinXP started to be a bi-monthly "thing."
-
.htaccess friendly url
Then stop telling it to. I wouldn't recommend it, though - there may come a time when you do want files to be accessed directly. For example, when you start serving scripts, stylesheets, and images. : )
-
FOR loop with counter in variables
I think the whole confusion is rooted in the way quotes have to be used. It sure confused me Remember, single-quotes ( ' ) make literal strings - every character you type ( except \, but let's not get into that right now) will be exac…
-
FOR loop with counter in variables
the_field( '"product_image_'.$i.'"' ); too many quotes. If get_field() returns a value, or false if there is no value, then you can do like so:
-
FOR loop with counter in variables
the_field() outputs, get_field() does not. So, get_field() returns its value? What does it return if there is no value?
-
FOR loop with counter in variables
Sorry about the stray }. (FYI: get_field returns a simple value, in this case an image url) Are you sure about that? You're using it as though it produces output directly.
-
FOR loop with counter in variables
I think this is what you're trying to do:
-
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…