Testing Webpage
I think I've finished my website and I'd like to know if I can ask people to take a look at it to see if they get any errors but I don't know if I can do that. I wasn't able to find it in the FAQ or guidelines. So is this ok?
View Complete Forum Thread with Replies
Related Forum Messages:
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html web page to web page. 1. URL; 2. Cookie; 3. Form; 4. Session; All the examples I found are move distinguished variables from page to page, such as "?weight=20&name='apple'". I need users choose from the first web page (the arrays will be generated), then use it in second and third html web pages. How do I transfer them (arrays) and which way is the best? For example, if I have two arrays, $fruit[] = array("apple", "pear", "orange"); and associative array $myCats["Me"]="Merry"; $myCats["Pi"]="Pippin"; $myCats["He"]="Hergie";
View Replies !
Testing For Php?
How can I do testing in php? I just did a quick search and I cannot find too much info about it. The one sounds promosing is phpunit.de. Is it the right place?
View Replies !
Testing With IE 6 And IE 7
The problem that occurs is when you use the "check" validation for username and email address. We would like anyone with IE 6 and/or IE 7 to help us out and view this link to see what occurs from their end. Do you get a JS error? Does it work the way it should by displaying an ajax response such as "Username is currently available" Code:
View Replies !
Testing Of Var
I have two form fields called $bride and $groom which means the person need to type in both and then i want to test it in my MySQL database. What i've done is redirect the form to the same page which is the index.php page and then i said if ($submit) so now i want to test it in the database. but how can i bring up a popup menu if its not right and if it is how can it link directly to the wedding.php page with its variables without putting another button if its right.
View Replies !
Testing Php
I need somewhere to test my php. I cant pay for anything because im only 13, does anyne know about some sites where I can enter my scripts and get a preview of what they would look like.
View Replies !
PHP Testing
I would like to test some of my PHP scripts. Does anyone know of a free web hosting service that offers some PHP support (and maybe mySQL support). A long shot I know. But perhaps worth asking. Replies by stickymail please - no ads (even for free services) in the forum. P.S I will get paid PHP hosting in time. But just for this small interim period - anyone know of a free service? Or perhaps even just an online PHP script tester/debugger.
View Replies !
Testing For Empty Set?
basically, i want to query my db and see if the user has input a valid #.... if it matches a record im my table 'plu_coupons' then i will execute the code that allows a user to proceed... if the number input by the user does not match any of my records, he/she will be redirected to the sign-in page...
View Replies !
Help Regarding Testing Web Page
I have developed a website in my local machine using PHP, MySql and apache. It's not uploaded on the net. The pesrson for whom I have developed this wants to test it before actually putting it online on their website. How do I let her test it? Is there a way?
View Replies !
Testing If A Value Exists.
Im trying to create a function that tests if a 'Username' exists in a particular table. If the value is found then the code generates 'Username1' as the username, and check if that username exists. If it does, it continues onto generating 'Username2' and so on. <? //testing with username andrew $name = "andrew"; mysql_pconnect("server", "username", "pass"); mysql_select_db("db"); $result = mysql_query("SELECT Username FROM users WHERE Username = '$name'"); $num_rows = mysql_num_rows($result); if ($num_rows > 0): $count = 1; While ($num_rows > 0): //$username = $username.$count; $result = mysql_query("SELECT Username FROM users WHERE Username = '$name'"); $num_rows = mysql_num_rows($result); print($username.$count); $count = $count + 1; endwhile; //---- else: print("ok"); endif; ?>
View Replies !
Testing Cacheability
I have dynamic pages that get content from a database. I have written some code to send a last modified header when significant revisions are made in the content test. Found a site that tests this and improved from no info to the message below. have I accomplished anything as far as conveying to search engines that there is fresh content and what else do I need to do? This object doesn't have any explicit freshness information set, so a cache may use Last-Modified to determine how fresh it is with an adaptive TTL (at this time, it could be, depending on the adaptive percent used, considered fresh for: 2 days 14 hr (20%), 6 days 11 hr (50%), 1 week 5 days (100%)). It has a validator present, but when a conditional request was made with it, the same object was sent anyway. It doesn't have a Content-Length header present, so it can't be used in a HTTP/1.0 persistent connection.
View Replies !
Testing Mail
my server was on a windows system and as such I just setup my mail via php.ini. now that its on linux I had to setup sendmail. whats the driest/easiest/boiled down code to use/test if mail is working right.
View Replies !
Testing PHP Scripts
There are many things you will want to consider when testing your PHP scripts. Of course your main objective in testing a script is to make sure it works as expected. Also important, however, is security. There is a nothing worse for a website than a security problem. Any PHP scripts you write need to be tested thoroughly to make sure they are secure and that they will work under any condition the user can throw at them. Code:
View Replies !
Testing For Substring
I have a news headline grabbed from another page in the same site. The data is captured like so: $post=mysql_fetch_row($res2); $post=$post[0]; I then do a strlen analysis on $post, chop it off at $maxlen, and add ellipses. This all works fine. The problem occurs if $post contains <pre> data and the headline is chopped before the closing </pre> tag. The missing </pre> ruins the page layout for everything that follows. * The <pre> tag may or may not be present * If <pre> is present, it may or may not be at the beginning of the string I have looked at substr, strstr and strpos, but none of them seem to quite be what I'm looking for.
View Replies !
Testing Strings
How can I check a string is just made up of letters and hyphens. I've looked at preg_match etc but they don't seem to test for only letters and numbers.
View Replies !
Bb Testing Problems
I am testing phpbb on an apache system how do I test registration it doesnt email to user accounts, when I try to register with a previous account it doesnt let me fine. when I delete the user account from user table. it still tells me that the user is there but I havent even been able to set a new username at the registration page cause it doesnt even allow it to get past the age page without saying the user is already there.
View Replies !
Problem Testing Php
I've just installed php on 2003 and iis 6.0 for the first time. I'm quite sure i've done all the install correctly but when i created the test index.php test file and open a browser to check it i get the message No input file specified For info the index.php contains the following: <?php phpinfo(); ?>
View Replies !
Testing Number?
What's the best way to test if a value is a whole number greater than 0? If $quantity=2 is there a built in function or something test $quantity.
View Replies !
Testing Value Of DropDown Box
im setting the value of a dropdown box with : $Result2 = mysql_query($Query2, $Link); ?> <option value="" selected>All</option> <? while ($Row2 = mysql_fetch_assoc ($Result2)) { ?> <option value="<?=$Row2['eFrom']?>"><?=$Row2['eFrom']?></option> <? } mysql_free_result($Result2); ?> Theres more around it just a brief snippet, it loads fine after this is loaded im trying to test the value of the selected field. and well it doesnt seem to want to test with the code below. ive been looking and i cant find the correct syntax to test it. here is what im using anyone know the correct way to test this? Code:
View Replies !
Security Testing
I've been doing an online proofing system for the company I work for. It's not exactly complex but if someone with some PHP experience could test it out for security or give some guidlines on good ways to test it I'd appreicate it. The people who are likely to be using it will probably not have too much knowledge of the launguage so it doesn't need to be over the top secure, just enough. Basically, if you can do anything that obviously shouldn't happen to the database or see any of the other users data, hack into either the admin area or other accounts etc.
View Replies !
Localhost Testing Speed
I'm currently testing my PHP scripts in two locations. The first is my workplace, where I am using Windows 2000 SP4, and IIS. The other location is my home, where I also use Windows 2000 SP4 and IIS. The problem, is that when I run PHP scripts on my work PC, it takes a couple of seconds to display the page. But when I do exactly the same script at home, it is near instant. Are there any configuration changes I should make to IIS or something which may be different. The only real difference between the two machines, is that my work one is on a corporate LAN.
View Replies !
Testing For Empty Variables
I am retreiving the results from a randomized multiple choice quiz sent from a another php page using: foreach($_POST AS $field=>$value){ How do I check to see which questions were not checked?
View Replies !
Testing For Writable Files
I'm trying to test for any files that are writable. I created 2 files to test, one writeable and the other not. I've tried various ways of addressing, but get WRITABLE every time. <?php clearstatcache(); $filename = "/home/circlec/public_html/test1.php"; if (is_writable($filename)) { echo $filename.'<b style="color:red"> WRITABLE</b>' } else { echo $filename.' SAFE' } ?> Can anyone give me some ideas?
View Replies !
Form Field Testing
I have this site which people submit sites to it. What I need is for when they submit their info to the form, they enter their url into the form field and then next to that there is a test button, when they click this button in a new window it will load their site. I know there is a way to do this with java and php but not sure how to do it. Also is there a way to have it so their site is scanned and if it contains popups they will be denied access to join?
View Replies !
Testing If Two Fields Have Data In Them
Im trying to test if two fields have been entered at the same time I have tried many combinations but cant get it. My last effort was if(isset($_POST['Link'] && isset($_POST['uploadedfile'])){ die('You can't select to upload a link and a file at the same time.'); } else { STUFF HERE; } but still cant get it to work.
View Replies !
Stress Testing A PHP Server
If you want to stress test your Apache/PHP server just have a small little typo like this: $errCodes=range(910000,9100005); in your code instead of $errCodes=range(910000,910005); Some serious crunching will go on! Off course don't do this on a production server!
View Replies !
Dreamweaver Testing Server Help
I am trying to set up a localhost testing server on windows xp home system using xampp. It installs and runs fine but I am having issues trying to get dreamweaver MX to connect to it for testing a MySQL database and PHP pages. Also wondering how to view php pages on local machine with IE7.
View Replies !
Testing For The Existnce Of An Array?
What is the best way to test whether an array exists and contains specific items. I have a script that won't know ahead of time if values will be passed to it via an array. I've tried using isset but I still get an "uninitialized string offset: 0" error. Here's what I'm attempting: isset($table['width']) ? $width = $able['width'] : $width = "100";
View Replies !
Testing PHP4 Compatibility
I am a new php coder, learning php5. If I am trying to make a website on a server that supports only php4, is there a good reference to use to test if the code I am making is backwards compatible? or is php very BC friendly?
View Replies !
Testing Which Button Was Pushed
i am trying to figure out why why a script of mine doesnt work any more. i moved from a server with PHP Version 4.4.2. The new server is PHP Version 5.0.5-2ubuntu1.2 . the script worked fine in the old server but from what i can see it does noto check which button is now being pushed. to check it i used if(isset($buttonName)) { //do stuff} here is a cut down example of what i mean: PHP Code:
View Replies !
Testing With Selenium, And Selnium.php
I've been working on a website (windows/PHP/APACHE/MYSQL), doing both the coding and testing/QA. for unit tests, I use jsUnit (javascript), and simpleTest (PHP). when I needed automated UI tests, I've explored selenium which is a marvelous tool. (see http://www.openqa.org/selenium/). now that the need for more sophisticated testing came up, I've looked into the selenium RC (remote control), which also enables starting up a browser and commanding it with various languages (C#, java, perl, python, ruby...). I wouldn't mind so much introducing another language, nevertheless it will be simpler to write the tests in PHP. I came across this: http://pear.php.net/pepr/pepr-proposal-show.php?id=413 which seems to be just what I need, however the remark says it doesn't work on windows. I've searched far and wide for an underground PHP<->selenium RC library, so far to no avail. so: 1) has anybody had any experience with this combination? 2) why isn't the word "selenium" mentioned in this group? a google groups search doesn't return any results. and don't tell me that it's a programmer's and not QA group. in the perl/ruby etc groups I did find discussions.
View Replies !
Testing For Emtpy Result.
I'm working with a bit of a messy query but I'm not looking for tips on improving it (it's been a headache enough, haha). Basically, my site posts articles written by multiple authors. In the past we'd associate these articles with a user_id referring to the "Multiple" author, but now writers want their own writing within an article to be linked with them. This led to me splitting the article table in two: we have review_index which has all the generic/global data for the article (band name, record label, etc), and review_pages which has a (non- unique) field review_id which links to the id row in the review_index table. With me so far? The form I wrote for admins to post multiple author reviews works like this: - asks them for global variables and inserts them - asks them to add a review and select username for an author - upon submitting this, offers them to post another (still associated with the original globals) or lets them close the job. It's done in this way because in order to associate the review_id with the id field, I have to KNOW what the id field in the review_index is going to be. I can't just +1 to the most recent one, since this'll cause issues if we delete reviews etc. So what this means is, when a user clicks onto an article while we're in the process of posting it, they may load a page with all the globals in place, but none of the actual content. I'm trying to echo a simple "Please reload the page in a few minutes" message, but can't get a working result. I've tried variations on: if ($review_text = null) { echo "come back soon!"; } if (empty($review_text)) { echo "come back soon!"; } if (!$query_result) { echo "come back soon!"; } but none of these display. Is there a solution here? It's a trivial issue really since it's essentially catering to people who click on an article within a 1 minute or so period, but still.
View Replies !
Testing PHP Locally In Windows 98
Is there any way to test out a PHP script in Windows 98 without uploading it to a server and trying it there? I'd like to see the results of my PHP without having to upload it with every change...
View Replies !
Testing If A Link Has Been Clicked...
I have this bios link on a dynamic php menu...there are two bios under bios...what i want is to test and see if the bios button has been clicked...if so, i want two sub-menu links to appear below the bios link...I understand I'll need to do an if...else here but how do I test to see if that bios link has been clicked?
View Replies !
Testing Mysql Query
Basically I am using PHP 5.1.2 with Apache 2.0.5 on a FreeBSD 5.4 box with Mysql 4.1.1 running. I am attempting to write information to a Mysql table called Jabber. I can connect successfully, query data, and write data pretty much without problem. My problem is this. I am trying to do some duplicate checking on this table so I query the dbase with the following: /* Searching for username in Authreg database and assiging it to variable */ $query1 = "SELECT * FROM `$table` WHERE username='$username'"; $query1_results = mysql_query($query1) or die("Query Failed"); $existing = mysql_result($query1_results, 0,0); Problem is this. When a user already exsits in database I have a conditional if statement that looks like such: /* Conditional statement that searches for exsiting username */ if ($username == $existing) { die ("Please select a unique username"); } else { .... } And it errorr out telling me to, "Please select a unique username" as stated above. When I am adding a new user to the database above I get the following error in my logs or in the browser depending on what --display-errors= is set to in my php.ini.: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /usr/local/www/sfg/add_jabber/add_test.php on line 38 I know this error is happening as a result of the following line when the user is not present in the database: $existing = mysql_result($query1_results, 0,0);
View Replies !
Testing String For Substring
I have some php scripts that I use on several machines. Each machine has an identical copy of a mysql database that the scripts run against. The only differences in the DBs are the user names and passwords (they all differ). Fortunately, each machine is a different version of Unix or Linux, so I've instructed the script to do a uname test before connecting to the local database. However, I don't know how to test the variable that contains the uname string. $x = php_uname(); print $x; // The print looks like this: Linux localhost 2.4.22-gentoo-r5 #4 Mon Feb 2 18:28:44 EST 2004 i686 if ($x contains "gentoo") // How do I test this string for "gentoo" { connect to this db } else ......
View Replies !
Testing To See If A Page Is Active?
I have a Shoutcast station that is on and off pretty regularly. I'd like to make a "power light" on my website to detect whether the station is on or off. I'm not quite sure what the best language to handle this would be, but I think PHP should be able to do it... The station is basically outputted as a link, like this: http://www.myurl.com:8000/listen.pls If it's on, it pops open the app and goes to town.. If it's off, it gives a "page cannot be displayed error" (I'd like to do something about that, but that's a different story). So basically, I want to query the link, and if it comes back active (or true or 1 or whatever), then it includes a certain graphic; if it's not active (or false or 0 etc.) then it'd include another. I'm thinking it'd be use simple if/else statement, something like this: $radiostatus = *radiostationquery* if ($radiostatus == true) { echo "poweron.gif"; } else { echo "poweroff.gif"; } But I'm not sure what *radiosationquery* would be. Seems like it'd be a pretty simple command. Someone (familiar with coding, but not php) suggested the Get() command might be a way to do it.
View Replies !
Testing If An Array Is Empty
Have tried to google this without 100% satisfaction. A function reads a mysql record into an array and returns it, if it doesnt exist it returns '' or FALSE. What ways do I have to test that my returned array is not empty
View Replies !
Unit Testing POST In PHP
I would like to fake a file submission POST for testing purpose. I have PHP 4.2.2 with PEAR 1.3.1 including PhpUnit 1.0.1. I want to know how to make a testing context that deals with $_FILES and move_uploaded_file for my unit tests.
View Replies !
What Is Better - One Field Or Eight - Mysql Bit Testing
I have to store up to eight boolean bits of information about an item in my database. e.g. [ ] with restaurant [ ] drive-through facility [ ] yellow windows [ ] wifi factilities etc... There are three ways of storing this information in my mysql database A. add eight fields (tiny integer) B. add one tiny integer and create a function in PHP that can translate the number stored into a eight boolean values (the bits) C. create a table which list ItemID Associated characteristics In C, you will only list the characteristics that are true for the item listed. Option B is the most efficient in MySql, but would you recommend it when creating a PHP website. The problem is that the user needs to enter them with a nice webform, etc...
View Replies !
Testing Mail() Function From My Pc
i have apache, mysql and PHP setup on my pc for development purposes and i can run the scripts fine - except when it comes to the mail() funtion what is the easiest way to set it up so i can send email's using the mail() funtion at the moment i upload it to my donain and test it but that is a pain
View Replies !
Stress And Load-testing
My employer has asked me to find and compare various tools used for stress-testing a PHP application that was developed in-house. I have poked around and found tools such as Dieseltest and Apache Jmeter, but I wanted to check here to see if anyone has had success with other tools (or recommends those two above anything else). Both JMeter and Dieseltest allow you to write custom scripts to test the application, so one of the developers will be assisting me there (my PHP knowledge is very basic, I'm just a humble administrator), but one of my managers has suggested to look into the benefits of running a tool on the server itself vs. running the tool off of a client machine. It would seem that it would be better to run the tool from a client when performance testing as it would add additional load to the server during the test.
View Replies !
|