I want to test private method in the class with phpUnit. How can I do this?
I am creating a file upload system for uploading images in an admin system.
I already have the file location locally on the computer. We can say it is C:/mypic.jpg
I could use a form that th...
My goal is to convert a series of formulated text strings into actual values.
First I concocted a string $WKWK which represnts the following.
$USERID = $_POST[USERID];
$EMAIL = $_POST[EMAIL...
Hello experts
This is my first question on EE so please forgive me if I need to be asking the question in a different way.
The example found at 'http://www.fornewbie.com/article/php/crea...
why this site is hacked ? what should I do now? how should I avoid this?
take a look on datetime.jpg . I am creating a advertiser's record table . "date_time" column shows the submittion time of an advertisement whereas "notification" column time is the expiry time...
how can i fix this problem
for php info please look at this link http://www.koh-samui.com/phpinfo.php
Hello, I have php application that process URL and KEYWORD to get me information about site position in Google search page. For example when I type www.cars.com and keyword audi, application c...
How can I allow users to only enter a valid telephone number?
This should include US and international numbers.
Thanks,
JB
trying to insert multiple records (spec_id)s. using multiple select with the code below. here's the form part:
<form method="POST" name="Form1" class="form" action="<?php echo $editFormActi...
I want to decompress ZIP files on my server. phpinfo() tells me:
-------------
ZLib Support enabled
Compiled Version 1.2.1.1
Linked Version 1.2.3
-------------
So I thought I can ...
Inlcuded below is the code I am using.
Currently this will create my DOM XML file, save it to the server
Then prompt me to download the file.
I am trying to perform this operation without...
Experts: Thanks for your assistance.
I have a text character string with lots of words and random characters throughout separated by blanks. I would like to eliminate all of the short word...
Hello there,
I'm having some trouble at trying to make a script to login to myvodafone account at vodafone's website (https://my.vodafone.pt/guest/)
I've tried the attached code snippet ...
Hello all,
I am rather unskilled with PHP and trying to make a form which does two things, first it collects data from the user and sends an email with that information to an address, and s...
I have a file like this:
yellow
red
black
How can I double the words, with Perl or PHP (Windows command-line), obtaining this?
yellowyellow
redred
blackblack
I have a file like this:
yellow
brown
red
How do I add with Perl or PHP (command-line in Windows) - with the fastest execution time - the fixed text "100" to the beginning of every lin...
I have a php file to send email.
I concat all string of the email into $m
But \n now print \n and no more add a line breakt.
What can i do to skip a line? It worked on PHP4 and no more o...
PHP
why i received this error message
Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\test.php on line 516
Warning: Invalid argument supplied for foreach(...
How can I prevent user to multiple click on the submit button?
Hello:
I need send an email to my customers 15 days before his domain expirate. I have a MySQL Data Base with all the information (domain_name, expirate_date, owner, email) I Think that we ...
I have the following PHP statement:
preg_replace("/%BEGINt%.*%END%/", '', $Content);
that is supposed to yield a result that omits %BEGIN% MyInnerText %END% from $Content
it works ...
Hi All,
I'm pulling what little hair I have left out on this one. Perhaps a fresh set of eyes on it would help.
I have a VPS through HostMySite (just in case this matters).
I have been...
I am trying to run this include
<?php include_once("../gbcf-v3/form.php"); ?>
on this page
http://www.dialektinc.com/dolce/contact.html
Is there a php configuration that needs to ...
dear experts,
i want to get the first date and the last date of a month in unixtimestamp format.
for example:
i want 1/7/2008 0:0:0 and 31/7/2008 23:59:59
so i did:
mktime(0,0,0,7...