User Profile
Collapse
-
Thanks for the links, just got CS4 and am all of a sudden lost!!! -
When the sun comes up in the East, it starts off as a good day. -
-
need help in where to start
I want to create a fun script (LOL)
What I want to do is create a script where when you type in a word (each character will have its own input field) it will return a jpg or gif, something like a word scramble.
I want to incorporate as many arrays as possible as to not have to repeat the code over and over., ie [a-z0-9] will give a return with it's exact corresponding pic.
can someone direct me to a tutorial... -
Thank you for sending me over to the 'help' file. Will get back to you if I have any problems.Leave a comment:
-
Yeah the script is old, if you know of another script that uploads and displays an image along with text, I would appreciate the location of it.Leave a comment:
-
script carrying over file with no problem but not text
Could use some help here.
This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working????
from the form I want to carry over two lines of text and I can't find the error on why it isn't working.
Any help is greatly appreciated.
Here is the form
[code=html]
<form enctype="multip art/form-data" action="./cgi/upload.pl"... -
php5 not working Apache 2.2
Just compiled PHP 5.2.5 for an acquaintance who was having a problem getting his PHP to work.
now this is driving me nuts.
Added following to httpd.conf
LoadModule php5_module modules/libphp5.so
AddType text/html php
AddHandler php5-scripts php
Error log is giving up the following when running phpinfo()
(8) Exec format error: /phpinfo.php failed
Premature... -
OK I will try,
the current code is:
Code:blah blah blah ### THE LINE BELOW I WANT TO INCLUDE AS A SEPARATE FILE ### with the script reading the following line into it. @sc_discount_logic = ("1005||||5%", "1500||||5.00"); blah blah blah
Code:Leave a comment:
-
Here is one more tutorial / example if you are storing your data in a MySQL DB
mysql countLeave a comment:
-
Leave a comment:
-
Yes it is a txt file. I would insert it into the actual script but the end user needs to alter just the one line and honestly don't trust them with the rest of it.
LOL...Leave a comment:
-
-
use external data import value into script
I am working on a shopping cart and have implemented a coupon hack for it. What I am trying to do (without breaking it too bad, LOL ) is to have the values stored in an external file and call it when needed. Like require in PHP.
Is there an example of a line of code that will work for my application?
I have been reading all over the web and see require() and use() but am not understanding the foobar
... -
-
OK ! Great ! the stripslashes worked.
Now I have another issue :(
the output should be
Code:@sc_discount_logic = ("1009||||5%", "1500||||5.00");
Code:".@sc_discount_logic = ("1009||||5%", "1500||||5.00");."
So I changed the string from
Code:<textarea
Leave a comment:
-
You need to ensure that the items in the cart are actually there.
If your view cart is working then it is not carrying over to the checkout.
You can also check to see that the items are stored within the array. I recently used the below script to find an error in one of my scripts.
Code:function show_array($array) { foreach ($array as $value) { if (is_array($value)) {
Leave a comment:
-
Need to remove escape (backslash)
I am using the below script to open a file and rewrite it. When it rewrites it adds backslashes because magic_quotes_on on any text that contains a single or double quote.
Code:<?php if($_POST['edit']) { $filename = $_POST['file']; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); echo "<form
-
-
You will need to use stripslashes() in order to get rid of the backslashes
[php]
echo stripslashes($r ow['lastname']);
[/php]...Leave a comment:
No activity results to display
Show More
Leave a comment: