traq
-
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…
-
Create a condition between SAVE and SAVE&PUBLISH
The most straightforward approach would be to use the value of the submit button (I'm assuming "Save" and "Save & Publish" are the submit buttons) to decide whether or not to toggle the publish field. . // . …
-
Client amendments
+1 always have a good, detailed spec. My Agreements are two-part - the Terms, and the Spec. The Spec is almost always 3-4 times longer. My Terms usually include this regarding amendments: Any work requested which is not specified in the Agre…
-
Nice and Simple Contact form error
Don't know, then. The message you gave isn't coming from your script. It sounds like a 404 (not found) message.
-
Should I use this script or write my own
@anirudhvr I'll take a look, but I'm pretty busy with another project ATM. For now, I'd suggest (at a minimum) changing mail('mail@gee-mail.com', 'subjectir' , $body); ...to something like mail('mail@…
-
Fatal error: Out of memory
How big are the writes you're making? Can you break it into smaller chunks and gc between loops?
-
Should I use this script or write my own
It looks promising. There are no email headers set in the mail() function; you'll need to add them. Have you tried it?
-
PHP contact page doesn't work
The code is being parsed (as evidenced by your error messages), so they do support PHP. Do they not support the mail() function?
-
Fatal error: Out of memory
Everything here is great advice. You can also use gc_collect_cycles() to make PHP clean up after itself more often. It might be helpful for you to call that at the beginning of each loop. But CrocoDillon is right about that code - there's a…
-
What is JSON? And should I be using it?
JSON is just a text serialization of javascript object literals. They can contain only data, however (key:value pairs; not functions). Observe: // javascript object literal { key1: 'some value' , key2: true } // JSON representati…
-
Fatal error: Out of memory
As I said, if you don't have a dedicated server, you probably won't be able to do this. Do you have a dedicated server?
-
Video vs Text tutorials
and it's easier to create. I'd agree that it's easier to hit "record" and do something on your desktop than to sit down and write, but that doesn't mean you'll end up with a good video. That's like mashi…
-
PHP contact page doesn't work
two things: If you copied/pasted that directly from my post, you're going to need to do a little fixing. Here on css-tricks, I have to indent the code to make it display in a code block. HOWEVER, a "real" heredoc must have NO chara…
-
Nice and Simple Contact form error
Are you sure the form's action is correct?
-
PHP contact page doesn't work
Can you post your current code so I can check it out?
-
Fatal error: Out of memory
Are you on a shared host? You probably won't get this to work without a dedicated server. There are any number of places that a configuration might be preventing you from raising the memory limit (at all, or past a certain point). Might be S…
-
PHP contact page doesn't work
this: mail($to, $subject, "From: $email"); ...is the first part of your problem. You're putting your email headers where the email body should be. Maybe you meant to do this? $body =
-
How do I keep or retain my form values even if the form has been submitted?
Should it output any error if there is no validation used? [...] Will I encounter any problems with this? At a minimum, you need to be sure you don't output any HTML or JavaScript with the values (use strip_tags() or htmlentities()) as a…