Jump to content

Search the Community

Showing results for tags 'PHP'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location


Interests

Found 7 results

  1. I have a DataPage that I am embedding in a Joomla article. I use Joomla ACLs, so I am not using Caspio's authentication. But I still want to get the user's Name and ID (from Joomla) to load into the Caspio database to track who created/updated the records. I uses a PHP snippet of code to get the user's information and put it into a variable. This works because I can echo it to the screen. I then want to pass the variable to the Caspio DataPage by modifying the embed code generated for the DataPage as follows: As generated by Caspio: <script type="text/javascript" src="https://c1abs817.caspio.com/dp/ec1d70004e69797b8ed24ca4ade4/emb"></script> <div class="cxkg"><a href="https://c1abs817.caspio.com/dp/ec1d70004e69797b8ed24ca4ade4">Click here</a> to load this Caspio <a href="http://www.caspio.com" target="_blank" title="Cloud Database">Cloud Database</a></div> <div id="cbec1d70004e69797b8ed24ca4ade4"><a href="https://www.caspio.com" target="_blank">Cloud Database</a> by Caspio</div> As modified by me: <script type="text/javascript" src="https://c1abs817.caspio.com/dp/ec1d70004e69797b8ed24ca4ade4/emb?joomuser=<?php echo $username; ?>"></script> <div class="cxkg"><a href="https://c1abs817.caspio.com/dp/ec1d70004e69797b8ed24ca4ade4?joomuser=<?php echo $username; ?>">Click here</a> to load this Caspio <a href="http://www.caspio.com" target="_blank" title="Cloud Database">Cloud Database</a></div> <div id="cbec1d70004e69797b8ed24ca4ade4><a href="https://www.caspio.com" target="_blank">Cloud Database</a> by Caspio</div> Notice that I have put my modification " ?joomuser=<?php echo $username; ?>" into the script in two places. Not really sure if it's needed in both places, but not knowing, I put it in both. When I press the SUBMIT button on the DataPage, the record ( a transaction header record) is written to the database and then a details DataPage is loaded. The record is written as expected and the 2nd DataPage is presented, but when I check the record written, the user name from JOOMUSER is not recorded. Here is a screenshot of how I have the field set up on the datapage: Clearly, I am doing something wrong or missing a step. Any help would be greatly appreciated.
  2. I recently used the SEO Deployment method on my web server. I followed the instructions to 'Use External Style' using PHP. The pre-defined search shows up just fine, but before the results are displayed I see the following messages (actual web server file paths and file names were changed to maintain privacy): Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/.../*.com/.../file.php:1) in /home/.../*.com/.../file.php(18) : eval()'d code on line 11Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.../*.com/.../file.php:1) in /home/.../*.com/.../file.php(18) : eval()'d code on line 11 I have attempted to load the page in Edge, Chrome, and Opera and I receive the error each time. I have also attempted to put the Caspio deployment code in a separate file and use <? php include filename.php ?> in my primary page to no avail. Any thoughts on what may be happening and what I can do to rectify? Thank you!
  3. This may be of use to people. This is pulled out of a project I'm working on. It's a PHP library that manages the low-level integration with the Caspio REST API. If I have time I'll pull more classes out of the project that might be helpful and integrate them into this library. But it demonstrates the basics of interacting with the Caspio REST API via PHP. https://github.com/moksamedia/caspio-rest-api-lib
  4. I'm working on a wordpress site and writing some custom PHP functions that access Caspio via the REST interface. I'm trying to figure out how to determine if the current user is logged in and get that user's info. I tried creating an HTML DataPage with the same authorization setup that simply echoed back the user info, hoping that if I logged into the website the REST request would be authenticated as well, but this didn't work. I also tried setting the PHPSESSID cookie in the request. Unfortunately, the REST request for the HTML datapage is always getting the login screen, regardless of if the user is logged in in the website. How does Caspio track user authentication? Is there a known solution to this? Thanks, Andrew
  5. Hello! I am trying to deploy a tabular report data page filtered by an external parameter on my wordpress webpage. I have downloaded the caspio plugin for wordpress, and I have had success embedding data pages in code blocks on "normal" wordpress pages built with the GUI web builder. However, the webpage I am modifying in this case is a custom .php file that is edited under Appearance->Editor in an Avada theme (I'm not sure exactly how to explain this). My report appears on this page if I use an iframe, however, this method prevents me from receiving parameters. Does anyone have advice for embedding a data page for wordpress directly into a customized wordpress file? I have tried the following and nothing showed up on the page: <?php do_shortcode('[caspio method="embed" subdomain="true" url="URL" appkey="APPKEY"]'); ?> I also tried the following, which appeared as text on my page [caspio method="embed" subdomain="true" url="URL" appkey="APPKEY"] Thanks in advance for your help!
  6. Hello Caspio Ninjas! I am trying to dynamically include signature images in emails sent from my Caspio App. Jan helped me figure out a friendly url for files hosted in Caspio: [@cbBridgeServer!]/dpImages.aspx?appkey=[@appkey]&file=[@field:FileName] However, this is too long to be emailed using PHP due to a 70 character limit per line. Does anybody have an idea on how to solve this problem? (Other than hosting signature images outside of Caspio) I can't use a URL shortener because then it's no longer dynamic. The [@field:FileName] at the end is very important. Thanks!
  7. Hello all, I've been able to access the Caspio API via PHP to update my tables from my external web server. Is it possible to do this from within a Caspio datapage? I mostly want to use caspio datapages as is, but I would like to occasionally add functionality via the API if possible. The solution I have found so far is to write the PHP code on our server and then open the page as an iFrame on the datapage, which is cumbersome. Any thoughts? Thanks! Piper
×
×
  • Create New...