Jump to content

Search the Community

Showing results for tags 'joomla'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

  1. On my Joomla 2.5 / Virtuemart 3 website I get the following error - Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 I'm told on the Virtuemart forum it might be something to do with the PDF invoice generating (which I or my clients never use - only the admin order confirmation e-mail is used). Can someone please tell me how to fix this? Thanks.
  2. Using Joomla 2.5 and Virtuemart 3. I've had a client tell us that they're getting e-mails (admin order confirmation email) that are different orders from the same person at the same time. After some test orders I've seen that what happens is when PayPal is used, and the customer is being redirected or has been, they then press the back button in the browser, amend the order and send it again. This sends 2 e-mails to the shop and causes confusion. Is there a way to stop this? (Other than a big bold message warning not to do it)
  3. I'm building a form for an organisation that organises a workshop for teenagers. There is an option to bring one or both parents to the workshop. So for each parent, there's a dropbox to answer the question "Will you participate in the workshop as well?" Depending if one, both or no parents will join, the user will be redirected to a different url after submiting (submit is always in the same place). The form is built with chronoforms in Joomla. This is the code for the dropdowns, please note that I can't change the values "Ja" or "Nee" because these option values are also sent to an exterior, custom made program so i'm not allowed to change it. Code for the dropdowns: <select class="cf_inputbox validate-selection required" id="select_17" size="1" title="verplicht veld" name="oudersessieouder1" style="width: 193px;"> <option value="">Make your choice</option> <option value="Ja">Yes, will participate</option> <option value="Nee">No, will not participate</option> </select><label class="cf_label" style="width: 150px;"> Will this parent join the workshop?</label> <select class="cf_inputbox validate-selection required" id="select_18" size="1" title="verplicht veld" name="oudersessieouder2" style="width: 193px;"> <option value="">Make your choice</option> <option value="Ja">Yes, will participate</option> <option value="Nee">No, will not participate</option> </select><label class="cf_label" style="width: 150px;"> Will this parent join the workshop?</label> And this is the after submitting, here I can write the code to redirect depending on the values of the previous two dropdowns: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>bedankt</title> </head> <body> <script> if (one parent comes, so one of the 2 dropdown values will be "Ja") window.location.replace("http://www.website.be/inschrijven-pe-jongeren-1-parent.html") else if (both parents come, so both dropdown values will be "Ja") window.location.replace("http://www.website.be/inschrijven-pe-jongeren-both-parents.html") else window.location="http://www.website.be/inschrijven-pe-jongeren.html" </script> <p align="center"> </p> </body> </html>
  4. Hello, I'm trying to populate a dropdown box in a RSForm using this code: //<code> $db = JFactory::getDbo(); $db->setQuery("SELECT Bruel_ID FROM mpctz_rsform_bruels"); return $db->loadObjectList(); //</code> However, it displays nothing in the box and some code outside of it (see attached file). Can anyone help? Thanks, Dani
  5. I have a Joomla website having one folder for audio files in it and their links are saved in database. Now I want to show two calendars to the user at front end, so that they can choose that from when to from he want to download the audio files? for e.g he can select june-2-2014 in one calendar and august-2-2014 in second calendar, now on clicking download button the files residing between the two specific dates must get archived into one zip file and then start downloading... i have a reference link for creating a zip and downloading the zip :http://coursesweb.net/php-mysql/create-zip-file-archive-php_cs now i am stuck that how to get the selection of user from calendar , save it into the array , and from the array get the files from the folder matching the array indexes and then zip , download them. please tell me how to achieve this task ?
  6. Hello, I have developed a website pponlinestore.com. I need an urgent help with couple of things. The website is made in Joomla and I have installed hikashop (business edition) for shopping cart. 1) In the above mentioned website, while the checkout process, we accept the customer's address. On the address input form, there is another section for complimentary address. At present it is in one single column. But I want to put it in two columns, but I don't know how to do it. i.e. I want the second column to start from "Complimentary Address". 2) On the "Cart" module on the right, when user clicks on the cancel button of X icon, it directly cancels the order. I want to add another radio button there to add the same product back in case any user have accidently clicked on cancel icon. The purpose is to add flexibility to the site for the user so that he shouldn't go through beginning and he can immediately add the same product back from the same location. I hope I have mentioned my queries / requirements properly. Any help would be much appreciated. Thanks in Advance, Gaurav Kakade
  7. HI All, I need some suggestions on how to proceed on with component development. and any logic code or similar coding will be very much appreciated. The component should display the list of contents displaying some columns from a table(ie.,scncontent) from database similar to web links component along with the tool bar (new,edit,publish,unpublish,trash etc., actions ) and with pagination also . This component should be designed with MVC architecture. On clicking new or edit icons, a form should be opened and data should be saved or updated to database. And in the front end component, items should be displayed in a clickable format. on clicking the item , all the data of the respective item should be displayed. Thanks in Advance. Regards, Sridhar
  8. I'm trying to implement a custom css style for each of the K2 templates. I wrote a com_K2 override. I add this string to a K2 template php files <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/html/com_k2/templates/default/k2c.css" type="text/css" /> but it adds itself in the body of the page. Is there a way to put this string into <head> tag? I'm not savvy in PHP, so any advice would be appreciated
  9. Hi All, Currently building a Joomla component. Having an issue with data being duplicated when I click the save button. Instead of the item in the database being updated a new item is being created, has anyone faced this issue before? I am wondering if it might be to do with my database design. I have named the primary key as journal_id, but I see in the tutorial it is set just to id, is this a requirement for Joomla to function properly? Any help with this issue would be gratefully received. Andrew
  10. Hi All, I am currently trying to learn how to build Joomla Components. I am building a component which will function as a "Magazine Library". I have been following the guide found here and modifying it accordingly to fit my needs: http://docs.joomla.org/J3.2:Developing_a_MVC_Component/Adding_backend_actions I am doing quite well, but I seem to have hit a snag, during development I changed the name of one of the views from journallibraries to journallibrarys, just to make it a little easier to follow the guide. I have the first view which outputs a list of the magazine articles in a table and has a menu at the top to "Add", "Edit" and "Delete". When clicking the Add and Edit function the next view loads fine which shows the form to allow adding or editing of an item. The menu also appears so you can save & close or just close. When I click Save & Close or indeed Close, it redirects to a form which does not exist, which is the "journallibraries" form which was originally in this component. I have been through all of the code and I cannot find a single reference to this view, what I want to know is if anyone has had a similar problem to this, or if anyone knows where the code might be which is responsible for the actions that occur when "Save" is selected. I have uploaded the component admin part (which is all I have done so far), so if anyone has 5 minutes to help me identify this problem I would be eternally grateful! Cheers, Andrew com_journallibrary.zip
  11. Hi All, I have a question for you all. My client would like a component developed for Joomla that will allow them to upload PDF magazines to the website and then it be output on the PDF in a secure format so they cannot be downloaded or copied. Does anyone know of an open source solution that might enable me to do this. The requirement is that this not be made using flash so that it will work on iOS devices. There are two ways I can see this working, either when the PDF is uploaded it gets converted into a different format so it can simply be integrated into the page when output, or the PDF gets uploaded as it, and it output in some wrapper that will protect it, im really not quite sure, you any advice will be great! Thanks for your help! I look forward to hearing your responses.
  12. Hi Guys Just to ask if do you know any code or module pluigin that i can have like this in my screenshot? (i attached it) thanks Please help i am using CMS - Wordpress, Joomla and even Drupal can any one please help me? thanks and Advance
  13. Hi everyone, i recently purchased the jbjobs component for joomla and have been modifying the views to suit my needs. i've reached a dead end though. i have a php bit that needs to be combined with a table, but i have not managed to make it work. can someone please lend a hand? thanks <?php $db=JFactory::getDBO(); $q = "select * from #__jbjobs_employer where user_id=".$job->employer_id; $db->setQuery($q); $employer_record = $db->loadObject(); '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>';echo ($employer_record->show_addr == 'y')? "".$employer_record->street_addr : JText::_('JBJOBS_NOT_DISPLAYED').'</tr> <tr> <td>'; echo ($employer_record->show_location == 'y')? "".$employer_record->city.', '.$employer_record->state : JText::_('JBJOBS_NOT_DISPLAYED').'</td> </tr> <tr> <td>'; echo ($employer_record->show_phone == 'y')? "".$employer_record->primary_phone : JText::_('JBJOBS_NOT_DISPLAYED').'</td> </tr> <tr> <td>'; echo ($employer_record->show_fax == 'y')? "".$employer_record->fax_number : JText::_('JBJOBS_NOT_DISPLAYED').'</td> </tr> <tr> <td>'; $u = JFactory::getUser($job->employer_id); echo ($employer_record->show_email == 'y')? "".$u->email : JText::_('JBJOBS_NOT_DISPLAYED');'</td> </td> </tr> </table>' ?>
  14. As a software engineer the candidate will be part of a team that builds scalable web applications using open source technologies such as PHP, Ruby and Python. The developer will be building applications in multiple verticals for mission critical systems with high precision providing them a challenging environment to work in. The developer will also have to be a fast learner to get acquainted to the rapid changes in the technology. A. Primary Skills: · 3+ Years of experience in open source development with PHP . · Good experience with Javascript and javascript libraries like jquery. · Good understanding of Object oriented concepts. · Good understanding of programming fundamentals and design patterns. · Experience with MVC framework, Open Source, CMS. (Wordpress, joomla, drupal etc) B.Secondary Skills: · Experience in any other additional open source server side programming language like ruby or python. · Experience with client side MVC frameworks will be a plus. · Good Communication Skills . Experience : 3+ years Job / Project Experience : Development Educational Background : BE(IT/CSc), B Tech, MCA Salary Range : As per Co.Norms (based on last drawn CTC) If you are interested,drop your profile at mdthanveer20392@gmail.com
  15. Hi all, I'm an outdated Classic ASP web developer finally making the switch to PHP and I'm still fairly new to it. Anyway, I need to develop a new website for small private school with about 100 students. The site will be mainly used for marketing purposes, posting news, events, etc. We will need to have a login for teachers so they can post homework, photos, and some downloadable files. We do not need to tie it into our school's database for things like updating and posting student grades. It will be a fairly light application I know I want to use PHP and mySQL and I was thinking about using something like Drupal, Joomla, etc, but I haven't used a CMS before. I've also looked online at quite a few sites and I haven't seen any school related website templates that might work with a CMS. Can someone recommend which CMS might be best for creating a small school website? Also, if anyone knows of any school website templates, please let me know. Thanks!
  16. Hello there, I use an element attached in this zip (assets file is missing due to the file size and i don't think its necessary for what i need to ask). Its actually a button with a pop up form, where the user fills in the name, lastname, e-mail and e-mail confirmation, telephone(optional), question/comment, send copy to my e-mail fields. Inside this, i need to add an extra field, where the user can upload his/her cv (doc, docx, txt, rtf, pdf file types) and when click on send the user will receive the CV file also along with the other information. I tried to add an Upload field called cv inside the code, but when i click on send, i have message: Invalid file type but the message is sent and at the e-mail i see all the info but i see the file name of cv, not the file. Any help with this please?A friend of mine that took a look told me that this form sends info via ajax and that i have to change the way that the information is being sent in order to be able to send the file. Thank you in advance contact-form.zip
  17. Hi All, Please anyone help me to write api for a portal sites. I am new to api services. Please anyone tell me how to use REST. Also i would like to know what is the difference between rest and soap. Why should not use soap ?. Please show me some examples to write api for a site. is it safe to write api in rest ?
  18. Hi folks, I have a project that im working on right now, I have developed it in joomla, on the index page, I have a menu which shows the year , I need to know how to code a php variable to get the active item name of this menu so I can show (echo) it where I want. I have attached a screenshot for better understanding, Any help would be much appreciated. thanks.
  19. Hello everyone I am not very familiar with Cron Job in Joomla. I have created custom component from http://www.component-creator.com/. I have created two field 1. Title and 2.Cron. Now i want to disable that title when Cron(Date field) and current date is match. I will thankful If anyone can help me. Thanks, Manan
  20. Hello everyone, Generally, I'm trying to build website that is more like a database of users (of lecturers) that after registation process everyone could upload their own picture and details about their lecture/show/workshop to his article/profile. In the file attached there is a picture of my website using some extension called "TZ PORTFOLIO". This extension helps me sorting my articles in an advanced and graphical design. But the problen is that this extension uses my article list and it does not allow me to restrict users to upload only one article. This is a link to my experimental website: http://www.hakatedra.co.il/index.php/2013-07-20-21-35-21.html Therefore my question is whether I have a way (like a PHP code) to limit new registered users to uploading only 1 article. (I'm using Joomla 3.1.1) Thank you very much for your time, Ofer Langer.
  21. Hi, Hoping someone can help me with a simple code change for my Joomla site. I have a line of php code set up to display a registered member's first name and last name on the profile page of my website. This is the code: <?php echo ucwords($agentdata[0]->cb_agentfirstname1.' '.$agentdata[0]->cb_lastnameagent1);?> It delivers the following result: Jan Brady So, my question is, how do I modify the code so that Jan Brady becomes a clickable link? The link should point to file name "agent1.php" Million thanks for anyone's help!!
  22. I'm still pretty new at this but I want to learn... I have a GPL plugin (for Joomla 1.6 / JomSocial 2.6) that I would like to use (w/ Joomla 2.5 & JomSocial 2.8 ) but it will need some fixing or updating. It should check for a default avatar and replace it with a random one. It installed but doesn't work. How can I verify it's getting the data it needs? I think one problem might be no file listed in the database is default. It looks like this plugin expects one to be there. The script is only about 100 lines so I hope someone can point out some obvious problems. Thanks for looking and any help you can offer. // no direct access defined('_JEXEC') or die('Restricted access'); jimport( 'joomla.plugin.plugin' ); require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php'); class plgUserMiniSocialGender extends JPlugin { function plgUserMiniSocialGender(& $subject, $config) { parent::__construct($subject, $config); } //function onLoginUser($user, $options) function onUserLogin($user, $options) { //$juser = $this->getJomSocialUser($user); $juser = CFactory::getUser($userid); //$curavatar = $juser->getAvatar(); $curavatar = $juser->getThumbAvatar(); $gender = $juser->getInfo($this->params->get( 'genderfield' , 'FIELD_GENDER' )); //$gender = $user->getInfo('FIELD_GENDER'); if($this->compareEnd("default.jpg", $curavatar) || $this->compareEnd("user.png", $curavatar) || ($this->contains('minisocialgender_images',$curavatar) && $this->params->get( 'reassign' , '0' ))) { if($gender) { $maleurl = JPATH_SITE . DS . 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . 'male' . DS; $femaleurl = JPATH_SITE . DS . 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . 'female' . DS; $usermodel =& CFactory::getModel('user'); if($this->params->get( 'maletype' , 'Male' ) == $gender) { if($this->contains("male", $curavatar)) return; } if($this->params->get( 'femaletype' , 'Female' ) == $gender) { if($this->contains("female", $curavatar)) return; } if($gender == $this->params->get( 'maletype' , 'Male' )) { $files = $this->getDirItems($maleurl); $random = rand ( 0 , (count( $files) - 1)); JFile::copy($maleurl . $files[$random], JPATH_SITE . DS . 'plugins' . DS . 'user' . DS .'minisocialgender' .DS . 'minisocialgender_images' . DS . $juser->id . 'male' . '.png'); JFile::copy($maleurl . 'thumb' . DS .$files[$random], JPATH_SITE . DS . 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . 'thumb' . $juser->id . 'male' . '.png'); $usermodel->setImage($juser->id, 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . $juser->id . 'male' . '.png', 'avatar'); $usermodel->setImage($juser->id, 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . 'thumb' . $juser->id . 'male' . '.png', 'thumb'); } elseif($gender == $this->params->get( 'femaletype' , 'Female' )) { $files = $this->getDirItems($femaleurl); $random= rand ( 0 , (count( $files) - 1) ); JFile::copy($femaleurl . $files[$random], JPATH_SITE . DS . 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . $juser->id . 'female' . '.png'); JFile::copy($femaleurl . 'thumb' . DS . $files[$random], JPATH_SITE . DS . 'plugins' . DS . 'minisocialgender' .DS . 'user' . DS . 'minisocialgender_images' . DS . 'thumb' . $juser->id . 'female' . '.png'); $usermodel->setImage($juser->id, 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . $juser->id . 'female' . '.png', 'avatar'); $usermodel->setImage($juser->id, 'plugins' . DS . 'user' . DS . 'minisocialgender' .DS . 'minisocialgender_images' . DS . 'thumb' . $juser->id . 'female' . '.png', 'thumb'); } if($this->params->get( 'warnuser' , 1 )) { JFactory::getApplication()->enqueueMessage( $this->params->get( 'warnmessage' )); } } } } function getDirItems($dir) { $files = array(); if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if(filetype($dir . $file) == "file") { $files[] = $file; } } closedir($dh); } } return $files; } function compareEnd($end, $fullstring) { $StrLen = strlen($end); $FullStrEnd = substr($fullstring, strlen($fullstring) - $StrLen); return ($end == $FullStrEnd); } function contains($needle, $haystack) { $pos = strpos($haystack,$needle); if($pos) return true; else return false; } //function getJomSocialUser($user) //{ // $user2 =& JFactory::getUser(); // $userid = $user2->id; // return CFactory::getUser($userid); //} }
  23. Hi, I wrote a simple php page and tested it locally via WAMP. It is OK. I decided to upload this code onto joomla. I set the menu items and add this page as a new artice as follows: <p>{jumi [test.php]}</p> Here is my sample test.php: <html> <head> <title>TEST</title> <style type="text/css"> table.imagetable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #999999; border-collapse: collapse; } table.imagetable th { background:#b5cfd2 url('cell-blue.jpg'); border-width: 1px; padding: 8px; border-style: solid; border-color: #999999; } table.imagetable td { background:#dcddc0 url('cell-grey.jpg'); border-width: 1px; padding: 8px; border-style: solid; border-color: #999999; } table.center { margin-left:auto; margin-right:auto; } </style> </head> <BODY > <br> <?php function form($imageURL536,$imageURL640,$drawNo){ echo " <form method='get'> <center><img border='0' src='contest_winner.jpg' alt='' width='452' height='384' class='center'></center> <table class='imagetable center'> <tr> <th>5/36</th> <th>6/40</th> </tr> <tr> <td> <select name='game1'> <option value='1'>$drawNo</option> </select> </td> <td> <select name='game2'> <option value='1'>$drawNo</option> </select> </td> </tr> <tr> <td> <center><input name='send536' type='submit' value='Check'></center> </td> <td> <center><input name='send640' type='submit' value='Check'></center> </td> </tr> <tr> <td> <center><img border='0' src='$imageURL536' width='24' height='24' ></center> </td> <td> <center><img border='0' src='$imageURL640' width='24' height='24' ></center> </td> </tr> </table> </form>"; } function sendEmail($msg){ //Send Mail. require_once("class.phpmailer.php"); $cbsmail = new phpmailer(); $cbsmail->IsSMTP (); $cbsmail->IsHTML(true); $cbsmail->SMTPAuth = "TRUE"; $cbsmail->Username = "info"; $cbsmail->Password = "info/"; $cbsmail->Hostname = "111.11.11.1"; $cbsmail->Host = "111.11.11.1"; $cbsmail->port = '25'; $cbsmail->From = "test@test.com.tr"; $cbsmail->FromName = "Information"; $cbsmail->Subject = 'TEST ' .date("d/m/Y"); $body = chr(13) ."Dear All, " ."<br>"."<br>"; $cbsmail->Body = $body; $cbsmail->AddAddress("test@test.com.tr"); $cbsmail->Send(); unset($cbsmail); } $imageURL536 = "FAQ-icon.png"; $imageURL640 = "FAQ-icon.png"; $drawNo = "123456"; if (isset($_GET['send536'])){ ConnectFTP($drawNo); $imageURL536 = "Circle-apply-icon.png"; } if (isset($_GET['send640'])){ ConnectFTP($drawNo); $imageURL640 = "Circle-remove-icon.png"; } //Prepare Markup form($imageURL536,$imageURL640,$drawNo); function ConnectFTP($drawNo) { $ftp_server = "111.11.111.111"; $ftp_user = "user"; $ftp_pass = "pass!!!"; $ftp_port = "21"; $path536 = "/536/RESULTS/"; $path640 = "/640/RESULTS/"; $check_file536_exist = $path536."test-wins_5-36-1006.txt"; $check_file640_exist = $path640."test-wins_6-40-1456.txt"; // Open connection $conn_id = ftp_connect($ftp_server,$ftp_port) or die( "$ftp_server sunucusuna bağlantı kurulamadı"); // Login if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) { // get the size of $file $res = ftp_size($conn_id, $check_file536_exist); if ($res != -1) { parseFile($check_file536_exist); } else { sendEmail("Couldn't find the file on FTP ".$check_file536_exist); } } else { sendEmail("Couldn't establish connection with $ftp_user "); } // Close connection ftp_close($conn_id); } function parseFile($check_file536_exist) { //Get Files to Parse $homepage = file_get_contents('ftp://user:pass!!!@111.11.111.1:21/640/RESULTS/test-wins_6-40-1010.txt'); $kw = explode("\n", $homepage); $totalNumRow = 0; $totalAmount = 0; // Loop the relevant records for($i=0;$i<count($kw);$i++){ if(substr($kw[$i], 0, 1) == "5" && substr($kw[$i], 1, 1) <> "/") { // echo $kw[$i]; $totalNumRow = $totalNumRow + 1; $originalstring = $kw[$i]; $delimiter = ","; if(strpos($originalstring,$delimiter) > 0){ $outarray = explode($delimiter,$originalstring); $amount = $outarray[1]; // echo $amount; $totalAmount = $totalAmount + $amount; } // echo "<br>"; } } } ?> The problem is, when I click the check buttons, the page becomes blank! But when I tried on local machine, after button click, page displays the table again. What is wrong with this? Best Regards.
  24. Hi, I would like to populate a drop down list box on my php page. How can I simply put a drop down on this php page? Best Regards.
  25. <form name="resume_search" method="get" action="index.php"> <input type="hidden" name="task" value="search_resume"> </form> if i changed it to post getting error actually it is a component inside having file like employer_Edit_job.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.